Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Schedules 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.

Authentication

Required, see Auth - Login.

...

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

Example

http://infinite.ikanow.com/api/knowledge/sources/approve/4e2eaeef99f86403e991b9ec/4e258f8a64b46403c55095ce/custom/mapreduce/schedulejob/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

Example Response
Info
Code Block
{
    "response": {
        action: "Approve Source"
        success: true
        message: "Source approved successfully."
        time: 10
    }
{"action":"Schedule MapReduce Job","success":true,"message":"Job scheduled successfully, will run on: Wed Dec 31 19:00:00 EST 1969","time":246},"data":"4f2007dd8196fe53a52c25a1"}
Error Response
Info
Code Block
{
    "response": {
        action: "Approve Source"
        success: false
        message: "Error approving source. You must be a community owner or moderator to approve a source"
        time: 10
    }
{"action":"Schedule MapReduce Job","success":false,"message":"You are not allowed to use the given input collection.","time":142}}