OpenMetadata
OpenMetadata copied to clipboard
Ingestion: Usage Agent dump_data_to_file failure
Affected module Ingestion
Describe the bug
When running Usage Agent:
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.10/site-packages/metadata/ingestion/api/step.py", line 167, in run
for result in self._run(record):
File "/home/airflow/.local/lib/python3.10/site-packages/metadata/ingestion/stage/table_usage.py", line 218, in _run
self.dump_data_to_file()
File "/home/airflow/.local/lib/python3.10/site-packages/metadata/ingestion/stage/table_usage.py", line 228, in dump_data_to_file
with open(
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/query_log/*******_1745798400000'
To Reproduce
Not sure.
This line init_staging_dir(self.config.filename) in table_stage.py should create the directory. So not exactly sure whats causing the issue.
Expected behavior A clear and concise description of what you expected to happen.
Version:
- OS: [e.g. iOS]
- Python version: 3.10
- OpenMetadata version: 1.7
- OpenMetadata Ingestion package version:1.7
@willwooten where are you running the usage workflow?