Hey everybody, I am trying to setup elementary r...
# community-support
j
Hey everybody, I am trying to setup elementary report generation using databricks pipelines. although i am running into some problems and am wondering if anyone else has done this before? What i want to achieve is to generate the report after my dbt build command has run, and write the report to a databricks volume, the 2 ways i have tried are: • using a dbt-task https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/job-task-types#dbt-task i implemented this by adding an edr report command with the target path argument specified. This has the challenge of defining the profile settings because in a dbt task databricks generates this under the hood, but i am trying to solve this by defining a separate profiles.yml and adding the profiles-dir argument. But when i run this elementary generates an empty report and I get long errors which accumulate to:
Copy code
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/handlers.py", line 73, in emit
    if self.shouldRollover(record):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/logging/handlers.py", line 197, in shouldRollover
    self.stream.seek(0, 2)  #due to non-posix-compliant Windows feature
(i also tried a command i found in the other questions in this forum: edr report -p . -t elementary) but then i get the following error:
Copy code
elementary.exceptions.exceptions.DbtCommandError: Failed to run dbt command.
[Errno 13] Permission denied: 'dbt_packages'
the second solution I tried: • using a notebook-task (python file that executes the edr report command) https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/job-task-types#notebook-task I specified the same arguments, but this resulted in errors due to elementary wanting to install the dbt-packages.
Copy code
elementary.exceptions.exceptions.DbtCommandError: Failed to run dbt command.
[Errno 13] Permission denied: 'dbt_packages'
i am wondering if anyone else has achieved this? I am sure it should be possible