-
Notifications
You must be signed in to change notification settings - Fork 0
/
postBuild
32 lines (22 loc) · 890 Bytes
/
postBuild
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
#########################
# jupyterlab extensions #
#########################
# Table of contents Jupyter Lab Extension
jupyter labextension install @jupyterlab/toc --no-build
# building jupyterlab extensions
jupyter lab build --dev
###########################
# hadoop related commands #
###########################
# creating ssh-related folders
mkdir .ssh/etc/ssh -p
# setup passphraseless ssh (forcing the adding to know hosts)
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa && cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys && chmod 0600 ~/.ssh/authorized_keys
# generating keys for sshd server
ssh-keygen -A -f .ssh
chmod 600 .ssh/etc/ssh/* -R
# set env var for java
echo "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 " >> ~/.bashrc
echo "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 " >> ~/.profile
# hadoop 3.*.*
echo "export PDSH_RCMD_TYPE=ssh" >> ~/.bashrc