Skip to content

Commit

Permalink
Upgrade hail to the latest 0.2 build (#800)
Browse files Browse the repository at this point in the history
* Upgrade hail to the latest 0.2 build

* use different hail zip hash

* Hail zip is obsolete
  • Loading branch information
rtitle committed Mar 5, 2019
1 parent 1facf23 commit 1defa60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 6 additions & 8 deletions docker/jupyter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ RUN wget --header "Cookie: oraclelicense=accept-securebackup-cookie" $JAVA_URL \
ENV SPARK_VER 2.2.0
ENV SPARK_HOME=/usr/lib/spark

# result of `gsutil cat gs://hail-common/builds/devel/latest-hash-spark-2.2.0.txt` on 18 October 2018
ENV HAILHASH 17a988f2a628
ENV HAILJAR hail-devel-$HAILHASH-Spark-$SPARK_VER.jar
ENV HAILPYTHON hail-devel-$HAILHASH.zip
ENV HAILZIP Hail-devel-$HAILHASH-Spark-$SPARK_VER.zip
# result of `gsutil cat gs://hail-common/builds/0.2/latest-hash/cloudtools-3-spark-2.2.0.txt` on 05 March 2019
ENV HAILHASH bb21797a1f06
ENV HAILJAR hail-0.2-$HAILHASH-Spark-$SPARK_VER.jar
ENV HAILPYTHON hail-0.2-$HAILHASH.zip
ENV HAIL_HOME /etc/hail
ENV KERNELSPEC_HOME /usr/local/share/jupyter/kernels

Expand All @@ -108,9 +107,8 @@ RUN mkdir -p /etc/spark/conf.dist && mkdir -p /etc/hadoop/conf.empty && mkdir -p
&& update-alternatives --install /etc/hadoop/conf hadoop-conf /etc/hadoop/conf.empty 100 \
&& update-alternatives --install /etc/hive/conf hive-conf /etc/hive/conf.dist 100 \
&& mkdir $HAIL_HOME && cd $HAIL_HOME \
&& wget -nv http://storage.googleapis.com/hail-common/builds/devel/jars/$HAILJAR \
&& wget -nv http://storage.googleapis.com/hail-common/builds/devel/python/$HAILPYTHON \
&& wget -nv http://storage.googleapis.com/hail-common/distributions/devel/$HAILZIP \
&& wget -nv http://storage.googleapis.com/hail-common/builds/0.2/jars/$HAILJAR \
&& wget -nv http://storage.googleapis.com/hail-common/builds/0.2/python/$HAILPYTHON \
&& cd -

#######################
Expand Down
3 changes: 1 addition & 2 deletions docker/jupyter/scripts/hail/spark_install_hail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ echo "SPARK_HOME: ${SPARK_HOME}" >> $LOG
echo "HAIL_HOME: ${HAIL_HOME}" >> $LOG
echo "HAILJAR: ${HAILJAR}" >> $LOG
echo "HAILPYTHON: ${HAILPYTHON}" >> $LOG
echo "HAILZIP: ${HAILZIP}" >> $LOG

# Render our "extras" with the Hail configs
cat <<EOT >> ${SPARK_EXTRAS}
Expand All @@ -23,7 +22,7 @@ cat <<EOT >> ${SPARK_EXTRAS}
# Distributes from master node to the working directories of executors
spark.jars ${HAIL_HOME}/${HAILJAR}
spark.submit.pyFiles ${HAIL_HOME}/${HAILZIP},${HAIL_HOME}/${HAILPYTHON}
spark.submit.pyFiles ${HAIL_HOME}/${HAILPYTHON}
# Add JARs to Classpaths: driver can use absolute paths
spark.driver.extraClassPath ${HAIL_HOME}/${HAILJAR}
Expand Down

0 comments on commit 1defa60

Please sign in to comment.