进入/hadoop/share/hadoop/mapreduce
根据你的路径来进入
root@kali:/usr/local/hadoop/share/hadoop/mapreduce# ls
hadoop-mapreduce-client-app-2.8.5.jar
hadoop-mapreduce-client-common-2.8.5.jar
hadoop-mapreduce-client-core-2.8.5.jar
hadoop-mapreduce-client-hs-2.8.5.jar
hadoop-mapreduce-client-hs-plugins-2.8.5.jar
hadoop-mapreduce-client-jobclient-2.8.5.jar
hadoop-mapreduce-client-jobclient-2.8.5-tests.jar
hadoop-mapreduce-client-shuffle-2.8.5.jar
hadoop-mapreduce-examples-2.8.5.jar
jdiff
lib
lib-examples
sources
自带的examples就在hadoop-mapreduce-examples-2.8.5.jar里
然后输入hadoop jar hadoop-mapreduce-examples-2.8.5.jar
root@kali:/usr/local/hadoop/share/hadoop/mapreduce# hadoop jar hadoop-mapreduce-examples-2.8.5.jar
An example program must be given as the first argument.
Valid program names are:
aggregatewordcount: An Aggregate based map/reduce program that counts the words in the input files.
aggregatewordh