转载自 http://www.cnblogs.com/Leo_wl/p/4862820.html

六:新建WordCountEx类

  在src/main/java下新建WordCountEx类

hadoop eclipse 导出jar

   将我们上篇编写的WordCountEx类的内容替换进来,记得package的名字别换了,测试的时候方便测试。

hadoop eclipse 导出jar

 

七:导出Jar包

  点击工程,右键->Export,如下:

hadoop eclipse 导出jar

八:执行

  将导出的jar包放到H31的/var/tmp下

  执行命令,发现很顺利的就成功了。

yarn jar first.jar first.WordCountEx /tmp/input/words_01.txt /tmp/output/1007_05

 hadoop eclipse 导出jar

九:结果

  我们看下输出的结果,和上一篇我们的输出结果是一致的。

hadoop eclipse 导出jar

相关文章:

  • 2021-11-28
  • 2021-11-28
  • 2021-04-23
  • 2021-12-25
  • 2021-03-26
  • 2021-12-04
  • 2021-07-18
猜你喜欢
  • 2021-06-16
  • 2021-11-23
  • 2021-11-28
  • 2021-09-01
相关资源
相似解决方案