Sunday, 17 April 2016

How to download Hadoop for ubuntu Linux ?


Download Hadoop tarball hadoop-2.7.1.tar.gz in home dir (Exmaple : /home/shahnawaz/ ) from http://www.us.apache.org/dist/hadoop/common/hadoop-2.7.1/
OR
Directly using command : 
# wget http://www.us.apache.org/dist/hadoop/common/hadoop-2.7.1/hadoop-2.7.1.tar.gz

Extract Hadoop tarball
# cd /home/shahnawaz
# sudo mv hadoop-2.7.1.tar.gz /usr/local/
# cd /usr/local/
# tar -xvf hadoop-2.7.1.tar.gz
# sudo mv hadoop-2.7.1 hadoop
# chown -R hduser:hadoop hadoop

Test Hadoop working
# bin/hadoop

Edit ownership (using root)
# cd /usr/local
# chown -R hduser:hadoop hadoop

No comments:

Post a Comment

Note: only a member of this blog may post a comment.