hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Klinger" ...@web-computing.de>
Subject Start MapReduce job with jar and arguments programatically
Date Wed, 27 Apr 2016 10:14:46 GMT
Hi,

 

i know i can start hadoop jobs like this:

 

hadoop jar myJob.jar org.foo.bar.MainClass --arg1 foo --arg2 bar

 

Now I would like to do this by JAVA-Code. My App is running within the
cluster and is started including the whole Hadoop-classpath. How can I start
the job by jar (found something with setJar but no explanation) and
especially how can I pass arguments like I would do in the console?

 

 

Kind regards 

Daniel

 


Mime
View raw message