Hadoop Tools v0.6 (for RHEL/CentOS 6.x)
RPM Install (hadoop-tools-0.6-1.x86_64.rpm)
Sourcing /etc/profile.d/bash_completion.sh
activates bash completion for the current bash session, alternatively you can just log out and log in again.
$ yum install hadoop-tools-0.6-1.x86_64.rpm
$ source /etc/profile.d/bash_completion.sh
Manual Install (hh-0.6.tar.gz)
Contains hh
compiled for RHEL/CentOS 6.x as well as bash completion.
You will need to install libgmp
before hh
will work:
$ yum install gmp
If you want bash completion, you need to install that too:
$ yum install bash-completion
One way to install this would be to unpack the tarball to /usr/local
which would install:
/usr/local/hh-0.6/bin/hh
/usr/local/hh-0.6/etc/bash_completion.d/hh-completion.bash
You would then need to create symlinks:
$ ln -s /usr/local/hh-0.6/bin/hh /usr/local/bin/
$ ln -s /usr/local/hh-0.6/etc/bash_completion.d/hh-completion.bash /etc/bash_completion.d/
You can also install it in your home directory as long as you source the bash completion script in your .bashrc
or .bash_profile
and put the hh
executable in your PATH
.
Known Issues
On a cluster with a HA namenode setup, you may find the primary namenode switching back and forth. Currently we only attempt to contact the first namenode found in hdfs-site.xml
, if you get a standby exception or something like that, you can work around the issue by creating a ~/.hh
config file and overriding the namenode host:
namenode {
host = "<alternate namenode ip or hostname>"
}