2018-08-09 16:37:52 -04:00
|
|
|
{
|
|
|
|
"type" : "index",
|
|
|
|
"spec" : {
|
|
|
|
"dataSchema" : {
|
|
|
|
"dataSource" : "updates-tutorial",
|
|
|
|
"parser" : {
|
|
|
|
"type" : "string",
|
|
|
|
"parseSpec" : {
|
|
|
|
"format" : "json",
|
|
|
|
"dimensionsSpec" : {
|
|
|
|
"dimensions" : [
|
|
|
|
"animal"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"timestampSpec": {
|
|
|
|
"column": "timestamp",
|
|
|
|
"format": "iso"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"metricsSpec" : [
|
|
|
|
{ "type" : "count", "name" : "count" },
|
|
|
|
{ "type" : "longSum", "name" : "number", "fieldName" : "number" }
|
|
|
|
],
|
|
|
|
"granularitySpec" : {
|
|
|
|
"type" : "uniform",
|
|
|
|
"segmentGranularity" : "week",
|
|
|
|
"queryGranularity" : "minute",
|
|
|
|
"intervals" : ["2018-01-01/2018-01-03"],
|
|
|
|
"rollup" : true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"ioConfig" : {
|
|
|
|
"type" : "index",
|
|
|
|
"firehose" : {
|
|
|
|
"type": "combining",
|
|
|
|
"delegates": [
|
|
|
|
{
|
|
|
|
"type" : "ingestSegment",
|
|
|
|
"dataSource" : "updates-tutorial",
|
|
|
|
"interval" : "2018-01-01/2018-01-03"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "local",
|
|
|
|
"baseDir" : "quickstart/tutorial",
|
|
|
|
"filter" : "updates-data3.json"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"appendToExisting" : false
|
|
|
|
},
|
|
|
|
"tuningConfig" : {
|
|
|
|
"type" : "index",
|
2019-01-10 12:50:14 -05:00
|
|
|
"maxRowsPerSegment" : 5000000,
|
2019-03-16 02:29:25 -04:00
|
|
|
"maxRowsInMemory" : 25000
|
2018-08-09 16:37:52 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|