Skip to content

Instantly share code, notes, and snippets.

@l15k4
Last active Jan 21, 2016
Embed
What would you like to do?
{
"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