Wednesday, February 26, 2014

Clush Installation/Importance

Clush is a program for executing commands in parallel on a cluster and for gathering their results.Clush executes commands interactively or can be used within shell scripts and other applications.

Links to download

https://github.com/cea-hpc/clustershell/downloads
or
https://github.com/jbenninghoff/cluster-validation

Look for below link and click and unzip the master.zip and look for Clustershell rpm and install it.

https://github.com/jbenninghoff/cluster-validation/archive/master.zip

Go to /etc/clustershell/groups and update the files accordingly

Ex:
[root@ebdp-wc-d01d mapr_dump]# cat /etc/clustershell/groups
all: ebdp-wc-d0[1-5]d
zk: ebdp-wc-d01d ebdp-wc-d02d ebdp-wc-d03d
cldb: ebdp-wc-d01d
jobt: ebdp-wc-d02d
ws: ebdp-wc-d03d
mysql: ebdp-wc-d04d
hive: ebdp-wc-d05d
[root@ebdp-wc-d01d mapr_dump]# 

Important Commands:
     To copy to all the nodes
clush -a -c /home/clduser/mprrepo_bkp/jdk-7u51-linux-x64.rpm

To remove the files from the nodes
clush -g all rm -rf /home/clduser/mprrepo_bkp/jdk-7u51-linux-x64.rpm

If you want to install CLDB
clush -g cldb <mapr cldb rpm>
Use below command if you have any manual intervention to press YES
clush -g all yum -y install ganglia-gmond

To copy from one to another directory
clush -g all -c /etc/ganglia/gmond.conf --dest /etc/ganglia/

Uninstall all the rpm files from all the nodes
clush -g all yum -y remove mapr-core-3.1.0.23703.GA-1.x86_64

Command To erase the java
Clush –g all yum –y erase java

Command To delete the files
Clush –g all rm /test/test.txt

To Remove JAVA
Clush –g all -yum -y erase jdk

clush -g all yum -y install /home/clduser/jdk-7u51-linux-x64.rpm

To Check Clush

clush -a data or clush -ab date

To append teradatahost names to our /etc/hosts file
clush -g all cat '/etc/terahosts >> /etc/hosts' ( Single quotes are important here)

Where the Extract Files wants to place:
clush -g all tar -xf /usr/lib64/python2.6/numpy-1.9.1.tar.gz -C /usr/lib64/python2.6/






No comments:

Post a Comment