Skip to content

Commit

Permalink
Fix HDI Notebook SparkDotnet installation script (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
elvaliuliuliu authored Feb 6, 2020
1 parent 46e4eff commit ee95ca2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee95ca2

Please sign in to comment.