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

Fixed EMR container operator import #400

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

arthi-j
Copy link
Contributor

@arthi-j arthi-j commented Jan 23, 2024

What does this PR do?

The EMR containers demo dag emr_eks_pi_job does not load on MWAA with the error below. This is even before adding the emr_eks connection.

Error when trying to pre-import module 'airflow.providers.amazon.aws.operators.emr_containers' found in /usr/local/airflow/dags/example_emr_eks_new.py: No module named 'airflow.providers.amazon.aws.operators.emr_containers'

This is because the import does not follow package structure for AWS provider version 7.1.0 which is the one installed with Airflow v2.5.1 on MWAA.

This fix updates the EMR container operator import and instance in the DAG code

Motivation

Building on top of this code for my own project.

More

  • Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Mandatory for new blueprints. Yes, I have added a example to support my blueprint PR
  • Mandatory for new blueprints. Yes, I have updated the website/docs or website/blog section for this feature
  • Yes, I ran pre-commit run -a with this PR. Link for installing pre-commit locally

For Moderators

  • E2E Test successfully complete before merge?

Additional Notes

Copy link
Collaborator

@vara-bonthu vara-bonthu left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@vara-bonthu vara-bonthu merged commit 3906c65 into awslabs:main Jan 23, 2024
18 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants