Skip to content

serfla/jdk-cluster-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

jdk-cluster-installer

A bash scripting for install a new JDK version on cluster using ssh.

Version

1.0

Requirements

  • open-ssh-client on local machine
  • open-ssh-server on remote machine
  • user with root privileges on cluster
  • the extracted JDK folder

Installation

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:.

How to use

Install JDK on master node

On master node run

$ sudo ./set-jdk-as-default.sh JDK_FOLDER

Install JDK on slave nodes

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

Conclusions

For checking if the installation was successful, run

$ java -version

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages