How to submit MapRecude job with jar not by terminal? (programmatically) How to submit MapRecude job with jar not by terminal? (programmatically) hadoop hadoop

How to submit MapRecude job with jar not by terminal? (programmatically)


Doesn't exactly answers your question - but you can try running the job from a bash script, and implement whatever automatic logic you want to kick off the job, using bash.If using java is crucial, you can call the script you created (which runs the job) from java externally as you wanted.


I faced the same. Found that it's http request issue.Ensure that - you are using POST - and header has Accept: application/xml

Later, you may also need Content-Type: application/xml or Content-Type: application/json