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

Updates Spark dockerfile #914

Merged
merged 9 commits into from Dec 12, 2022
Merged

Updates Spark dockerfile #914

merged 9 commits into from Dec 12, 2022

Conversation

samhita-alla
Copy link
Contributor

Signed-off-by: Samhita Alla aallasamhita@gmail.com

@samhita-alla samhita-alla marked this pull request as ready for review October 25, 2022 04:10
ENV SPARK_VERSION 3.2.1
ENV PYSPARK_PYTHON ${VENV}/bin/python3
ENV PYSPARK_DRIVER_PYTHON ${VENV}/bin/python3

# Copy the makefile targets to expose on the container. This makes it easier to register.
# Delete this after we update CI
COPY in_container.mk /root/Makefile
Copy link
Contributor

Choose a reason for hiding this comment

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

When can we get rid of this stuff

Copy link
Contributor Author

Choose a reason for hiding this comment

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

EngHabu
EngHabu previously approved these changes Oct 25, 2022
Copy link
Contributor

@EngHabu EngHabu left a comment

Choose a reason for hiding this comment

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

Thank you for taking over this work! one comment

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
@samhita-alla samhita-alla changed the title Update Spark dockerfile Updates Spark dockerfile Dec 7, 2022
@samhita-alla samhita-alla enabled auto-merge (squash) December 8, 2022 05:56
Copy link
Contributor

@EngHabu EngHabu left a comment

Choose a reason for hiding this comment

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

Thank you! one comment and it's probably more because I'm forgetting...

Comment on lines +36 to +37
RUN wget https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/3.2.2/hadoop-aws-3.2.2.jar -P /opt/spark/jars && \
wget https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/1.11.563/aws-java-sdk-bundle-1.11.563.jar -P /opt/spark/jars
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need this? I thought we managed to make it work without further customizations, did we not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is required if say, a spark dataframe needs to be passed between the Flyte tasks. If these libraries aren't installed, we'll be receiving UnsupportedFileSystemException: No FileSystem for scheme "s3" error. These libraries are required to read from or write to s3 in a spark setup.

@samhita-alla samhita-alla merged commit bb18802 into master Dec 12, 2022
@samhita-alla samhita-alla deleted the fix-spark-dockerfile branch December 12, 2022 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants