Professional Documents
Culture Documents
Hadoop
Hadoop
$ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
IN GUI MODE:
Copy the hadoop-2.7.0.tar.gz, hadoop core.tar, fscat / fcsat.jar file to Desktop/batchno folder
$ cd etc/<hadoop>
$vim hadoop-env.sh
$vim core-site.xml
$ vi hdfs-site.xml
$ cp mapred-site.xml.template mapred-site.xml
$ vi mapred-site.xml
Add the following inside <configuration> tag
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
$ vi yarn-site.xml
Add the following inside <configuration> tag
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
<property>
<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property>
$ hadoop version
student@RV-ANDROID16:~/Desktop/rr/hadoop-2.7.0/etc/hadoop$ hadoop version
Hadoop 2.6.0-cdh5.7.1
Subversion http://github.com/cloudera/hadoop -r ae44a8970a3f0da58d82e0fc65275fff8deabffd
Compiled by jenkins on 2016-06-01T23:27Z
Compiled with protoc 2.5.0
From source with checksum 298b68dc3b308983f04cb37e8416f13
This command was run using /usr/lib/hadoop/hadoop-common-2.6.0-cdh5.7.1.jar
student@RV-ANDROID16:~/Desktop/rr/hadoop-2.7.0/etc/hadoop$
$hadoop
-- check all the options
$ hadoop trace
....
$ ls
student@RV-ANDROID16:~/Desktop/rr/hadoop-2.7.0/sbin$ ./start-all.sh
finally
$ jps
27168 Jps
27027 NodeManager
25908 DataNode
26101 SecondaryNameNode
26711 ResourceManager
student@RV-ANDROID16:~/Desktop/rr/hadoop-2.7.0/sbin$
$./stop-all.sh
$jps