-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup-container-tools.sh
48 lines (48 loc) · 1.38 KB
/
setup-container-tools.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
#
# git clone https://github.com/jpacerqueira/Jupyter_Spark_H2O_Kafka_Client_Setup.git
#
#cd ; cp library_tools/*.sh . ; bash -x anaconda_setup.sh
#####################################################
######### INSTALL MISSING BASIC TOOLS ###############
#sudo apt-get update
#sudo apt install curl
#sudo apt install wget
#sudo apt install zip
#sudo apt install unzip
#####################################################
#####################################################
#
cd $HOME
#
pwd
ls -laR
#
echo 'export JAVA_HOME=/usr/lib/jvm/default-java' >> $HOME/.bashrc
#
#nohup bash -x anaconda_setup.sh > $HOME/knode_ds.out 2> $HOME/knode_ds.err
bash -x anaconda_setup.sh > $HOME/knode_ds.out 2> $HOME/knode_ds.err
#
#echo 'Sleep for 4 minutes'
#sleep 241
#
#
echo 'knode_ds.out'
cat $HOME/knode_ds.out
echo 'knote_ds.err'
cat $HOME/knode_ds.err
#
sleep 1
#
cp $HOME/library_tools/start-jupyter.sh $HOME
cp $HOME/library_tools/stop-jupyter.sh $HOME
cp $HOME/library_tools/install-jupyter-support-packs.sh $HOME
echo 'export JAVA_HOME=/usr/lib/jvm/default-java' >> $HOME/.bashrc
#
# Open alternative port for Jupyter and h2o.ai in Docker image via iptable definition
sudo iptables -I INPUT 1 -p tcp --dport 54321 -j ACCEPT
sudo iptables -I INPUT 1 -p tcp --dport 9003 -j ACCEPT
#
echo " Jupyter - SparkML - H2o.ai - Delta.io - pyArrow "
echo " Installation done! "
#