Skip to content

Instantly share code, notes, and snippets.

@l15k4
Last active January 21, 2016 18:40
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/93eeb47382598ef4cd45 to your computer and use it in GitHub Desktop.
Save l15k4/93eeb47382598ef4cd45 to your computer and use it in GitHub Desktop.
{
"type" : "index",
"spec" : {
"dataSchema" : {
"dataSource" : "foo",
"parser" : {
"type" : "string",
"parseSpec":{
"format" : "tsv",
"timestampSpec" : {
"column" : "time"
},
"columns" : ["time","gwid","country","purchase","section", "price"],
"dimensionsSpec" : {
"dimensions" : ["time","gwid","country","purchase","section"]
}
}
},
"metricsSpec" : [
{
"type" : "count",
"name" : "count"
},
{
"type" : "doubleSum",
"name" : "priceSum",
"fieldName" : "price"
}
],
"granularitySpec" : {
"type" : "uniform",
"segmentGranularity" : "HOUR",
"queryGranularity" : "NONE",
"intervals" : [ "2016-01-19/2016-01-30" ]
}
},
"ioConfig" : {
"type" : "index",
"firehose" : {
"type" : "local",
"baseDir" : "/tmp/test/",
"filter" : "*"
}
},
"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