Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(airflow): fix provider loading exception #8861

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Sep 19, 2023

Would previously see this from the plugin manager.

Exception: The package 'acryl-datahub' from setuptools and acryl-datahub-airflow-plugin do not match. Please make sure they are aligned

Also fixes + registers hook types for new Airflow versions.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

Would previously see this from the plugin manager.
```
Exception: The package 'acryl-datahub' from setuptools and acryl-datahub-airflow-plugin do not match. Please make sure they are aligned
```

Also fixes + registers hook types
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Sep 19, 2023
Comment on lines +83 to +84
"airflow.plugins": "acryl-datahub-airflow-plugin = datahub_airflow_plugin.datahub_plugin:DatahubPlugin",
"apache_airflow_provider": ["provider_info=datahub_provider:get_provider_info"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, what are each of these entrypoints doing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the airflow.plugins one lets airflow load our plugin without any other config

the provider one lets it discover our hooks and display a nice UI in the add connection section
image

@hsheth2
Copy link
Collaborator Author

hsheth2 commented Sep 20, 2023

Merging through unrelated cypress failure

@hsheth2 hsheth2 merged commit 6c6216a into datahub-project:master Sep 20, 2023
57 of 58 checks passed
@hsheth2 hsheth2 deleted the airflow-registration branch September 20, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants