hadoop集群测试

master操作:

[ ~]$ start-all.sh

[ ~]$ jps

[ ~]$ hadoop fs -mkdir /input

[ ~]$ cd hadoop-3.0.0/
[ hadoop-3.0.0]$ ls

[ hadoop-3.0.0]$ hadoop fs -put LICENSE.txt /input
[ hadoop-3.0.0]$ hadoop fs -ls /input

[ hadoop-3.0.0]$ cd share/hadoop/mapreduce/
[ mapreduce]$ ls

[ mapreduce]$ hadoop jar hadoop-mapreduce-examples-3.0.0.jar wordcount /input /output

[ mapreduce]$ hadoop fs -cat /output/*

[ mapreduce]$ stop-all.sh

相关推荐