Skip to content

Instantly share code, notes, and snippets.

@l15k4

l15k4/task.json Secret

Created February 1, 2016 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save l15k4/1054f2a127b5050c33c0 to your computer and use it in GitHub Desktop.
Save l15k4/1054f2a127b5050c33c0 to your computer and use it in GitHub Desktop.
{
"type" : "index",
"spec" : {
"dataSchema" : {
"dataSource" : "sample",
"parser" : {
"type" : "string",
"parseSpec" : {
"format" : "json",
"timestampSpec" : {
"column" : "time",
"format" : "auto"
},
"dimensionsSpec" : {
"dimensions": ["country","section","purchase"],
"dimensionExclusions" : ["gwid"],
"spatialDimensions" : []
}
}
},
"metricsSpec" : [
{
"type" : "count",
"name" : "count"
},
{
"type": "hyperUnique",
"fieldName": "gwid",
"name": "gwidHll"
},
{
"type" : "doubleSum",
"name" : "priceSum",
"fieldName" : "price"
}
],
"granularitySpec" : {
"type" : "uniform",
"segmentGranularity" : "HOUR",
"queryGranularity" : "all",
"intervals" : [ "2015-01-01/2015-01-02" ]
}
},
"ioConfig" : {
"type" : "index",
"firehose" : {
"type" : "local",
"baseDir" : "/var/data/druid/events",
"filter" : "*.json"
}
},
"tuningConfig" : {
"type" : "index",
"targetPartitionSize" : -1,
"rowFlushBoundary" : 0,
"numShards": 1
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment