Open devender-yadav opened 5 years ago
I cannot seem to reproduce this. Are you building from the latest master
?
@apetresc yes from the master? Did you try building the image again?
Yes, I just tried again with docker-compose build --no-cache spark
to make sure I didn't have some cached layer containing a different Java version, and it still worked fine:
Successfully built 9a115fae44fc
Successfully tagged jupyter/sparkmagic-livy:latest
Can you try with the cache disabled, just to try and rule that out?
@apetresc I'll try tomorrow. I am wondering if I can pull it from dockerhub directly. I am suggesting AWS to update sparkmagic version for EMR notebook. I just wanna try the latest version once at my side first.
@itamarst can we update sparkmagic image to dockerhub. I don't know why but I am still getting errors in spark code compilation in docker compose build step.
@devender-yadav which image are you referring to exactly? What name? (I'm new to the project, so don't know what images there are or how they're built).
This builds fine for me too when I do --no-cache
on master.
@itamarst It's failing while building Dockerfile.spark
in the below-mentioned step:
RUN mkdir -p /apps/build && \
cd /apps/build && \
git clone https://github.com/apache/spark.git spark && \
cd $SPARK_BUILD_PATH && \
git checkout v$SPARK_BUILD_VERSION && \
dev/make-distribution.sh --name spark-$SPARK_BUILD_VERSION -Phive -Phive-thriftserver -Pyarn && \
cp -r /apps/build/spark/dist $SPARK_HOME && \
rm -rf $SPARK_BUILD_PATH
Same issue: [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile (scala-compile-first) on project spark-graphx_2.11: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile failed. CompileFailed
when run docker build -t sparkmagic-livy -f ./Dockerfile.spark .
Fascinating.
@ragelo
git log -1
.@itamarst
commit ee092134588287436607d6c7197ba61b4e3856f3 (HEAD -> master, origin/master)
Merge: b771129 767c581
Author: Itamar Turner-Trauring <itamar@itamarst.org>
Date: Fri Jul 19 14:33:14 2019 -0400
Merge pull request #555 from jupyter-incubator/0.12.9
Prepare for 0.12.9.
Oh, I wonder if I couldn't reproduce it because I did --no-cache
but I didn't also do --pull
. Will investigate later this week.
So I just did:
$ sudo docker build --no-cache --pull -t jupyter/sparkmagic-livy -f Dockerfile.spark .
And it worked fine. So I have no idea what's up.
@devender-yadav you mentioned dockerhub, do you know of an official docker image? If not I can upload one.
@itamarst I don't see any official image at dockerhub. On searching sparkmagic, I found https://hub.docker.com/r/heliumdatacommons/sparkmagic but this is updated year back and not sure if it is reliable.
It's good to keep the latest image at dockerhub so that we can directly pull from there.
I am having this issue - but it seems to fail at a different step. This is the first time I've ever built this image on this machine.
git log -1
says
commit 12fc2a6dc49f21a93884ce3d0bd0f842118ad125 (HEAD -> master, origin/master, origin/HEAD)
Merge: 47aeb09 83dd808
Author: Itamar Turner-Trauring <itamar@itamarst.org>
Date: Thu Oct 3 20:03:32 2019 -0400
Merge pull request #577 from devstein/patch-1
Use JSON true instead of Python True in README Papermill Section
$ sudo docker build --no-cache --pull -t jupyter/sparkmagic-livy -f Dockerfile.spark .
with the message
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (python-api install) on project livy-python-api
I am attaching the log from that build command.
Relates to #756
Is there a plan to push sparkmagic image to some Docker registry?
Not able to build spark core.
Error logs: