Next: Ubuntu installation hadoop1.x (pseudo-distributed)
1.x and 2.x in the installation of small differences, is the program directory is not the same.
hadoop1.x and 2.x part correspondence relationship
|
1.x |
2.x |
| Core-site.xml |
${hadoop_home}/conf/core-site.xml |
${hadoop_home}/etc/hadoop/core-site.xml |
| Hdfs-site.xml |
${hadoop_home}/conf/hdfs-site.xml |
${hadoop_home}/etc/hadoop/hdfs-site.xml |
| Namenode format |
${hadoop_home}/bin/hadoop Namenode-format |
${hadoop_home}/bin/hdfs Namenode-format |
| start-dfs.sh |
${hadoop_home}/bin/start-dfs.sh |
${hadoop_home}/sbin/start-dfs.sh |
| stop-dfs.sh |
${hadoop_home}/bin/stop-dfs.sh |
${hadoop_home}/sbin/star-dfs.sh |
| Example.jar |
${hadoop_home}/hadoop-examples-1.x.x.jar |
${hadoop_home}/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.x.x.jar |
| WordCount |
$ cd ${hadoop_home} $ bin/hadoop jar Hadoop-examples-1.2.1.jar wordcount Input Output
|
$ cd ${hadoop_home} $ bin/hadoop jar Share/hadoop/mapreduce/hadoop-mapreduce-examples-2.x.x.jar Org.apache.hadoop.examples.WordCount Input Output
|
| Mapreduce |
Pending additions |
Pending additions |
| Other |
Pending additions |
Pending additions |
Note
2.x after the installation is complete, the DFS command is reported as a warn
15/04/24 15:35:53 WARN util. nativecodeloader:unable to load Native-hadoop library for your platform ... using Builtin-java classes where applicable
This does not affect. There are also specific solutions on the Web.
Ubuntu Install hadoop2.x (pseudo-distributed)