зеркало из https://github.com/dotnet/spark.git
Fix HDI Notebook SparkDotnet installation script (#415)
This commit is contained in:
Родитель
46e4effc06
Коммит
ee95ca25aa
|
@ -10,6 +10,14 @@ set -e
|
||||||
|
|
||||||
if [[ $HOSTNAME == hn* ]] ;
|
if [[ $HOSTNAME == hn* ]] ;
|
||||||
then
|
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
|
# Update Livy Jars
|
||||||
sudo wget https://sparkdotnetrepl.blob.core.windows.net/notebooks/livy_jar.zip
|
sudo wget https://sparkdotnetrepl.blob.core.windows.net/notebooks/livy_jar.zip
|
||||||
sudo unzip -o livy_jar.zip
|
sudo unzip -o livy_jar.zip
|
||||||
|
|
Загрузка…
Ссылка в новой задаче