Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

difference in running the program with the below two commands yarn jar and hadoop jar?

difference in running the program with the below two commands yarn jar and hadoop jar?

New Contributor

I am novice to hadoop. what is the difference in running the mapreduce applications in running these 2 commands::

1.hadoop jar Weather.jar WeatherDriver /input /output

2.yarn jar Weather.jar WeatherDriver /input /output

3 REPLIES 3

Re: difference in running the program with the below two commands yarn jar and hadoop jar?

Super Mentor

@Kiran Kumar

I see a good explanation for your query in the following link: https://stackoverflow.com/questions/22769129/differences-between-hadoop-jar-and-yarn-jar

The /usr/bin/yarn script sets up the execution environment so that all of the yarn commands can be run. The /usr/bin/hadoop script isn't quite as concerned about yarn specific functionality. 

However, if you have your cluster set up to use yarn as the default implementation of mapreduce (MRv2), then hadoop jar will probably act the same as yarn jar for a mapreduce job.

.

Re: difference in running the program with the below two commands yarn jar and hadoop jar?

New Contributor

Thanks @Jay Kumar SenSharma

so in hadoop 2 since, it is by default yarn cluster computing,so it will be same if i run mapreduce job with hadoop jar command right?

Re: difference in running the program with the below two commands yarn jar and hadoop jar?

Super Mentor

@Kiran Kumar

Correct.

Don't have an account?
Coming from Hortonworks? Activate your account here