Skip to content

Instantly share code, notes, and snippets.

@sgonyea
Created June 15, 2010 22:01
Show Gist options
  • Save sgonyea/439809 to your computer and use it in GitHub Desktop.
Save sgonyea/439809 to your computer and use it in GitHub Desktop.
curl -X POST -H "content-type: application/json" http://localhost:8098/mapred --data @-
{"inputs":"stats-Ev::AssetCreation", "query":[{"map": {"keep":true,"language":"javascript", "source":"function(v) {return [1];}"}}]}
curl -X POST -H "content-type: application/json" http://localhost:8098/mapred --data @-
{"inputs":"stats-Ev::AssetCreation","query":[{"map":{"language":"javascript","keep":true,"source":"function(v){ return [1]; }"}}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment