2018-08-09 16:37:52 -04:00
|
|
|
{
|
2020-09-15 19:25:35 -04:00
|
|
|
"type": "index_parallel",
|
|
|
|
"spec": {
|
|
|
|
"dataSchema": {
|
|
|
|
"dataSource": "updates-tutorial",
|
|
|
|
"dimensionsSpec": {
|
|
|
|
"dimensions": [
|
|
|
|
"animal"
|
|
|
|
]
|
2018-08-09 16:37:52 -04:00
|
|
|
},
|
2020-09-15 19:25:35 -04:00
|
|
|
"timestampSpec": {
|
|
|
|
"column": "timestamp",
|
|
|
|
"format": "iso"
|
|
|
|
},
|
|
|
|
"metricsSpec": [
|
|
|
|
{ "type": "count", "name": "count"},
|
|
|
|
{ "type": "longSum", "name": "number", "fieldName": "number"}
|
2018-08-09 16:37:52 -04:00
|
|
|
],
|
2020-09-15 19:25:35 -04:00
|
|
|
"granularitySpec": {
|
|
|
|
"type": "uniform",
|
|
|
|
"segmentGranularity": "week",
|
|
|
|
"queryGranularity": "minute",
|
|
|
|
"intervals": ["2018-01-01/2018-01-03"],
|
|
|
|
"rollup": true
|
2018-08-09 16:37:52 -04:00
|
|
|
}
|
|
|
|
},
|
2020-09-15 19:25:35 -04:00
|
|
|
"ioConfig": {
|
|
|
|
"type": "index_parallel",
|
|
|
|
"inputSource": {
|
2018-08-09 16:37:52 -04:00
|
|
|
"type": "combining",
|
|
|
|
"delegates": [
|
|
|
|
{
|
2020-09-15 19:25:35 -04:00
|
|
|
"type": "druid",
|
|
|
|
"dataSource": "updates-tutorial",
|
|
|
|
"interval": "2018-01-01/2018-01-03"
|
2018-08-09 16:37:52 -04:00
|
|
|
},
|
|
|
|
{
|
2020-09-15 19:25:35 -04:00
|
|
|
"type": "local",
|
|
|
|
"baseDir": "quickstart/tutorial",
|
|
|
|
"filter": "updates-data3.json"
|
2018-08-09 16:37:52 -04:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-09-15 19:25:35 -04:00
|
|
|
"inputFormat": {
|
|
|
|
"type": "json"
|
|
|
|
},
|
|
|
|
"appendToExisting": false
|
2018-08-09 16:37:52 -04:00
|
|
|
},
|
2020-09-15 19:25:35 -04:00
|
|
|
"tuningConfig": {
|
|
|
|
"type": "index_parallel",
|
|
|
|
"maxRowsPerSegment": 5000000,
|
|
|
|
"maxRowsInMemory": 25000,
|
|
|
|
"maxNumConcurrentSubTasks": 2,
|
|
|
|
"forceGuaranteedRollup": true,
|
|
|
|
"partitionsSpec": {
|
|
|
|
"type": "hashed",
|
|
|
|
"numShards": 1
|
|
|
|
}
|
2018-08-09 16:37:52 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|