使用hadoop和java命令执行map-reduce作业有什么区别 [英] what difference between execute a map-reduce job using hadoop and java command

查看:105
本文介绍了使用hadoop和java命令执行map-reduce作业有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找到运行map-reduce程序的许多选项。任何人都可以解释下面的命令之间的区别。如果有的话对Map-reduce作业有什么影响。

  java -jar MyMapReduce.jar [args] 

hadoop jar MyMapReduce.jar [args]

yarn jar MyMapReduce.jar [args]

在这些命令中哪一个是最好的或者是其他的?

可以使用Yarn和Job History显示有关作业的所有信息(例如显示Hadoop和纱线命令)Web服务正常使用端口的Web服务8088(YARN)下面的命令?

  java -jar MyMapReduce。 jar [args] 


解决方案

其他。当您执行 java -jar 命令时,它与执行非Hadoop应用程序相同。如果使用 hadoop jar yarn jar ,它将使用 / usr / bin / hadoop / usr / bin / yarn 脚本来设置环境。



除非您修改了任何脚本来设置其他变量,否则其中的三个脚本应该是一样的。


Find many option for run a map-reduce program. Can any one explain difference between theses below commands. And what impact on Map-reduce job if any.

     java -jar MyMapReduce.jar [args] 

     hadoop jar MyMapReduce.jar [args] 

     yarn jar MyMapReduce.jar [args] 

In these command which one best or other in any?

Can make configuration like display all information about job using Yarn and Job History (like as display Hadoop and yarn command) on Web service normal using port for web service 8088(YARN) on below command?

     java -jar MyMapReduce.jar [args] 

解决方案

None of them is better than the other. When you execute the java -jar command, it is just the same as executing a non Hadoop application. If you use hadoop jar or yarn jar, it will use the /usr/bin/hadoop and /usr/bin/yarn scripts to set up the environment.

Unless you have modified any of the scripts to set up additional variables, the three of them should work the same.

这篇关于使用hadoop和java命令执行map-reduce作业有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆