diff --git a/deployment/HDI-Spark/Notebooks/install-interactive-notebook.sh b/deployment/HDI-Spark/Notebooks/install-interactive-notebook.sh index 0ca036e6..27e72a2d 100644 --- a/deployment/HDI-Spark/Notebooks/install-interactive-notebook.sh +++ b/deployment/HDI-Spark/Notebooks/install-interactive-notebook.sh @@ -10,6 +10,14 @@ set -e if [[ $HOSTNAME == hn* ]] ; then + # The Livy Jars path on the head nodes. + LIVY_JARS_PATH=/usr/hdp/current/livy2-server + + # Back up Livy Jars + sudo bash -c "mkdir -p $LIVY_JARS_PATH/jars/old; mv -f $LIVY_JARS_PATH/jars/*.jar $LIVY_JARS_PATH/jars/old" + sudo bash -c "mkdir -p $LIVY_JARS_PATH/rsc-jars/old; mv -f $LIVY_JARS_PATH/rsc-jars/*.jar $LIVY_JARS_PATH/rsc-jars/old" + sudo bash -c "mkdir -p $LIVY_JARS_PATH/repl_2.11-jars/old; mv -f $LIVY_JARS_PATH/repl_2.11-jars/*.jar $LIVY_JARS_PATH/repl_2.11-jars/old" + # Update Livy Jars sudo wget https://sparkdotnetrepl.blob.core.windows.net/notebooks/livy_jar.zip sudo unzip -o livy_jar.zip