...
Info | ||
---|---|---|
Updates a saved query job. 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.
A simple web-based utility is available for updating jobs. |
Authentication
...
frequencyToRun (required)
How often the job should be ran, either: NONE, HOURLY, DAILY, WEEKLY, MONTHLY. This will cause the job to get resubmitted after running, use NONE if you only want the job to run once.
query (required)
The mongo query to use to get the jobs data. {} is a blank query or you can submit null. A typical place to get a query is by using the gui at infinite.ikanow.com and going to Advanced -> Save.The query JSON object to call.
inputcollection (required)
The mongo collection you want to use as input. You can submit DOC_METADATA to get the documents table or grab a previous map reduce results table in your communities by submitting its idis the only currently available option.
outputKey (required)
The classpath for the map reduce output format key usually org.apache.hadoop.io.TextCurrently set to "null" will be used in the future.
outputValue (required)
The classpath for the map reduce output format value usually org.apache.hadoop.io.IntWritablejson (optional)
Current you can pass a json object in containing any custom arguments you want passed in to the map reduce job at runtime, these arguments will be available in the config file in your mapper/reducer
format: { "arguments":"any string you want here" }Currently set to "null" will be used in the future.
Example
http://infinite.ikanow.com/api/custom/mapreducesavedquery/updatejob/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.IntWritablenull/DOC_METADATA/null/null - 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/null/null - this example will just reschedule a job to run as soon as possible
...