Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
/custom/mapreduce/getjobs
/custom/mapreduce/getjobs/{list-of-ids-or-titles}
Info

Returns a list of jobs the current user has access to. Filtering can be performed by passing a comma-separated list of jobtitles or ids into the URL.

Authentication

Required, see Auth - Login.

Arguments

list-of-ids-or-titles (optional)
A comma-separated list of ids or titles to return (the list must contain either all ids or all titles, not a mixture of both)

Parameters

project_id (optional): the id of a share of type "infinite_project_config", this will filter the search to only communities active in this project. See projects documentation for more information

Example

http://infinite.ikanow.com/api/custom/mapreduce/getjobs

http://infinite.ikanow.com/api/custom/mapreduce/getjobs/twitterSentiment

http://infinite.ikanow.com/api/custom/mapreduce/getjobs/twitterSentiment,geoClustering

http://infinite.ikanow.com/api/custom/mapreduce/getjobs/4fe48dfe8c56e75b5fde868a,4f8d9a19f0c62dcba3281a7f

cURL Example

Example Response
Info
Code Block

{
    "response": {
        "action": "Custom Map Reduce Get Jobs",
        "success": true,
        "message": "succesfully returned jobs",
        "time": 3897
    },
    "data": [
        {
            "_id": ObjectId("4e98381e153b86ab3704d05c")": "4fb245bfe4b0cc1eda8bd229",
            "jobtitle": "twitterSentiment",
            "jobdesc": "test",
            "combinersubmitterID": "xmlpackage.WordCountXML$IntSumReducer4d88d0f1f9a624a4b0c8bd71",
            "communityIDscommunityIds": [
                ObjectId("4c927585d591d31d7b37097a4e1f545315c1b0b2c4d4f4a3")
            ],
            "firstSchedulejarURL": "Tue Jan -2147483647 584556020 04:25:52 GMT-0500 (Eastern Standard Time)"$infinite/share/get/4f8c7abde4b09c2c0a50189a",
            "inputCollection": "doc_metadata.metadata",
            "inputCollectionoutputCollection": "harvester.feeds4fb245bfe4b0cc1eda8bd229",
            "jarURLlastCompletionTime": "$infininteshare/share/get/4e78d4ec05da052fd69a2332May 16, 2012 8:12:02 PM",
            "jobdescnextRunTime": "somedesc"9223372036854776000,
            "jobidN": 0,
            "jobtitlescheduleFreq": "title1NONE",
            "mapperfirstSchedule": "xmlpackage.WordCountXML$TokenizerMapperDec 31, 1969 7:00:00 PM",
            "nextRunTime"timesRan": 10,
            "isCustomTable": 0false,
            "outputCollectionmapper": "4e98381e153b86ab3704d05cgeographic.GenericGeographicSentiment$TokenizerMapper",
            "queryreducer": "geographic.GenericGeographicSentiment$IntSumReducer",
            "reducercombiner": "xmlpackagegeographic.WordCountXML$IntSumReducerGenericGeographicSentiment$IntSumReducer",
            "query": "scheduleFreq"{\"sourceKey\" : \"twitter.com.statuses.public_timeline.atom\", \"docGeo\": "NONE{\"$ne\" : null}}",
            "submitterIDoutputKey": ObjectId("4ca4a7c5b94b6296f2469d36"),"org.apache.hadoop.io.Text",
             "timesRan": 0"outputValue": "org.apache.hadoop.io.IntWritable",
			"lastRunTime": "May 16, 2012 7:12:02 PM"
        }
    ]
}
Error Response
Info
Code Block

There aren't any, will just return an empty data section if user cannot access any jobs.