Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
/custom/mapreduce/

...

updatejob/{jobid}/{jobtitle}/{jobdesc}/{communityIds}/{jarURL}/{timeToRun}/{frequencyToRun}/{mapperClass}/{reducerClass}/{combinerClass}/{query}/{inputcollection}/{outputKey}/{outputValue}
Info

Schedules Updates a hadoop map reduce job to be ran in the future. Returns the output collection id in the data field of the response if successfully queued to run. If you change the timeToRun a job can be rescheduled.

 

Note

Return the word "null" for any of the update fields to not change a field, it will remain whatever the field was previously.

 

A simple web-based utility is available for uploading JARs (and other files).

...

Required, see Auth - Login.

Arguments

jobid (required)
The id of the job you want to update

jobtitle (required)
A descriptive name of the job being submitted.

...

outputValue (required)
The classpath for the map reduce output format value usually org.apache.hadoop.io.IntWritable

Example

http://infinite.ikanow.com/api/custom/mapreduce/schedulejobupdatejob/4f2007dd8196fe53a52c25a1/TestJob/Testing%20map%20reduce/4e9c77ef17ef3523b657a890/%24infinite%2Fshare%2Fget%2F4eafed58233558b98055c872/0/NONE/com.ikanow.infinit.e.core.mapreduce.examplejars.Test%24TokenizerMapper/com.ikanow.infinit.e.core.mapreduce.examplejars.Test%24IntSumReducer/com.ikanow.infinit.e.core.mapreduce.examplejars.Test%24IntSumReducer/null/doc_metadata/org.apache.hadoop.io.Text/org.apache.hadoop.io.IntWritable - this example is the same as the schedule job, it would change a jobs fields to all these new settings (or the same settings)
http://infinite.ikanow.com/api/custom/mapreduce/updatejob/4f2007dd8196fe53a52c25a1/null/null/null/0/null/null/null/null/null/null/null - this example will just reschedule a job to run as soon as possible

cURL - Login, Get Map Reduce Jobs, Get Map Reduce Job Results, LogoutJava Example

...

Info
Code Block
{"response":{"action":"ScheduleUpdate MapReduce Job","success":true,"message":"Job scheduledupdated successfully, will run on: Wed Dec 31 19:00:00 EST 1969","time":246},"data":"4f2007dd8196fe53a52c25a1"}

...