From ee95ca25aad9d7fd1daeefaa768faa8b49ca1149 Mon Sep 17 00:00:00 2001 From: elvaliuliuliu <47404285+elvaliuliuliu@users.noreply.github.com> Date: Thu, 6 Feb 2020 11:53:42 -0800 Subject: [PATCH] Fix HDI Notebook SparkDotnet installation script (#415) --- .../HDI-Spark/Notebooks/install-interactive-notebook.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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