bitter-lawyer-49179
02/17/2023, 8:24 AMdatahub_rest_default while using datahub_kafka connection type. Obviously this caused issues while emitting metadata towards the end of my job. I noticed this and corrected the connection id to datahub_kafka_default . However, either airflow or the datahub plugin is not picking up on this change and is continuously looking for datahub_rest_default connection id instead of the corrected one.
I deleted the connection and set it up again from scratch, but no luck.
[2023-02-17, 08:12:03 UTC] {{logging_mixin.py:109}} INFO - Exception: Traceback (most recent call last):
File "/usr/local/airflow/.local/lib/python3.7/site-packages/datahub_provider/_plugin.py", line 284, in custom_on_success_callback
datahub_task_status_callback(context, status=InstanceRunResult.SUCCESS)
File "/usr/local/airflow/.local/lib/python3.7/site-packages/datahub_provider/_plugin.py", line 136, in datahub_task_status_callback
DatahubGenericHook(context["_datahub_config"].datahub_conn_id)
File "/usr/local/airflow/.local/lib/python3.7/site-packages/datahub_provider/hooks/datahub.py", line 189, in get_underlying_hook
conn = self.get_connection(self.datahub_conn_id)
File "/usr/local/airflow/.local/lib/python3.7/site-packages/airflow/hooks/base.py", line 68, in get_connection
conn = Connection.get_connection_from_secrets(conn_id)
File "/usr/local/airflow/.local/lib/python3.7/site-packages/airflow/models/connection.py", line 410, in get_connection_from_secrets
raise AirflowNotFoundException(f"The conn_id `{conn_id}` isn't defined")
airflow.exceptions.AirflowNotFoundException: The conn_id `datahub_rest_default` isn't defined
Any help with this much appreciated.
PS: I tested this whole setup on a local instance of airflow first before I set it up on AWS MWAA. I did not face this issue on my local setup. It picked up kafka default connection and emitted metadata. (But I did not make the mistakes I did while configuring the connection id in my local)bitter-lawyer-49179
02/17/2023, 8:27 AMbitter-lawyer-49179
02/17/2023, 8:28 AMdazzling-judge-80093
02/17/2023, 8:58 AMbitter-lawyer-49179
02/17/2023, 9:00 AMbitter-lawyer-49179
02/17/2023, 9:01 AMcore.lazy_load_plugins - ? If yes, then its set to false.bitter-lawyer-49179
02/17/2023, 9:01 AMbitter-lawyer-49179
02/17/2023, 9:05 AMdazzling-judge-80093
02/17/2023, 9:08 AMAirflow configuration options can you add this on the mwaa ui?
datahub.conn_id: datahub_kafka_defaultbitter-lawyer-49179
02/17/2023, 9:08 AMbitter-lawyer-49179
02/17/2023, 9:09 AMdazzling-judge-80093
02/17/2023, 9:09 AMbitter-lawyer-49179
02/17/2023, 11:01 AMbitter-lawyer-49179
02/17/2023, 11:02 AMdatahub_rest_default.bitter-lawyer-49179
02/17/2023, 11:07 AMbitter-lawyer-49179
02/17/2023, 11:07 AMbitter-lawyer-49179
02/22/2023, 2:23 PMacryl-datahub-airflow-plugin in airflow (MWAA), on 17th Feb, something went wrong with aiflow scheduler and many of our jobs did not run. AWS Support is looking into it to see what errors / what caused it.
Reverting this change / uninstalling this plugin fixed our issues. FYI. Not sure if anyone else has also reported this issue.bitter-lawyer-49179
02/22/2023, 2:27 PMdocker-compose-without-neo4j-quickstart.yml file and used datahub docker quickstart --quickstart-compose-file <path to compose file> command to start the service.