A bash scripting for install a new JDK version on cluster using ssh.
1.0
- open-ssh-client on local machine
- open-ssh-server on remote machine
- user with root privileges on cluster
- the extracted JDK folder
Download the scripts and make them executable
$ chmod +x jdk-cluster-installer.sh set-jdk-as-default.sh
After download and extract the JDK which you want to install, you need just to copy both scripts and the JDK folder on cluster master node in $HOME directory.
$ scp jdk-cluster-installer.sh set-jdk-as-default.sh host@server:.
$ scp -r JDK_FOLDER host@server:.
On master node run
$ sudo ./set-jdk-as-default.sh JDK_FOLDER
From master node easly run
$ ./jdk-cluster-installer.sh -j JDK_FOLDER -h "slave1 slave2 ...."
Arguments:
- j
The JDK folder to install - h
A slaves node list which on install the JDK
For checking if the installation was successful, run
$ java -version