1.cd到hadoop-x.x.x/share/hadoop/mapreduce下

2.执行:hadoop jar hadoop-mapreduce-examples-x.x.x.jar wordcount / /wc

jar:运行jar文件

/:是指hdfs的根目录下所有文件

/wc:是指结果保存路径,如图2

wordcount:单词统计,可以根据需要换成其他(如下图)

运行本地模式MapReduce

图2.

运行本地模式MapReduce

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2021-05-07
  • 2022-12-23
  • 2021-12-26
  • 2021-12-13
  • 2022-01-01
猜你喜欢
  • 2022-01-17
  • 2021-10-27
  • 2022-12-23
  • 2021-07-24
  • 2018-12-01
  • 2022-12-23
  • 2021-11-02
相关资源
相似解决方案