average-vr-23088
02/27/2024, 8:56 PMpython setup.py build on the datahub-airflow-plugin. Is this the right approach? I’ve also tried to install the necessary python dependencies but i’m getting errors from Airflow when it tries to load the plugin.
I’m currently getting the following error:
File "/usr/local/airflow/plugins/datahub_airflow_plugin/datahub_listener.py", line 19, in <module>
aws-mwaa-local-runner-2_7-local-runner-1 | from datahub.sql_parsing.sqlglot_lineage import SqlParsingResult
aws-mwaa-local-runner-2_7-local-runner-1 | ModuleNotFoundError: No module named 'datahub.sql_parsing'
This is despite me installing the acryl-datahub[sql-parser]==0.12.1.5 package.
Any guidance would be much appreciated!gray-shoe-75895
02/27/2024, 9:30 PMaverage-vr-23088
02/27/2024, 9:30 PMaverage-vr-23088
02/27/2024, 9:30 PMaverage-vr-23088
02/27/2024, 11:08 PMgradlew :metadata-ingestion:buildWheel
3. Use the mwaa startup script to install the wheel
4. Build the airflow plugin via python setup.py build and copy the built plugin folder to the mwaa plugins directory.
5. Update the requirements.txt to include:
openlineage-airflow==1.2.0
gql
acryl-sqlglot==21.1.2.dev10average-vr-23088
02/29/2024, 5:42 PMon_task_instance_finish hook doesn’t show up in my single container airflow setup, using a SequentialExecutor. Only the dag run hooks have logs show up.
3. If i wanted to package up my changes to the plugin and run them on a production airflow setup (before making a potential PR), would the best way to do so be via building a wheel for it? I’m still a little confused why i had to install a locally built wheel for the datahub ingestion lib instead of just referencing one from pypi in order for my plugin to work on my local airflow instance.average-vr-23088
02/29/2024, 5:46 PMgray-shoe-75895
03/02/2024, 1:09 AM