mirror of https://github.com/apache/druid.git
Update native-batch.md (#12478)
Fixed indent on the Granularity Spec section and removed some superfluous tabbings.
This commit is contained in:
parent
4781af9921
commit
b47316b844
|
@ -136,49 +136,51 @@ The following example illustrates the configuration for a parallel indexing task
|
||||||
"metricsSpec": [
|
"metricsSpec": [
|
||||||
{
|
{
|
||||||
"type": "count",
|
"type": "count",
|
||||||
"name": "count"
|
"name": "count"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "doubleSum",
|
"type": "doubleSum",
|
||||||
"name": "added",
|
"name": "added",
|
||||||
"fieldName": "added"
|
"fieldName": "added"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "doubleSum",
|
"type": "doubleSum",
|
||||||
"name": "deleted",
|
"name": "deleted",
|
||||||
"fieldName": "deleted"
|
"fieldName": "deleted"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "doubleSum",
|
"type": "doubleSum",
|
||||||
"name": "delta",
|
"name": "delta",
|
||||||
"fieldName": "delta"
|
"fieldName": "delta"
|
||||||
}
|
|
||||||
],
|
|
||||||
"granularitySpec": {
|
|
||||||
"segmentGranularity": "DAY",
|
|
||||||
"queryGranularity": "second",
|
|
||||||
"intervals" : [ "2013-08-31/2013-09-02" ]
|
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"granularitySpec": {
|
||||||
|
"segmentGranularity": "DAY",
|
||||||
|
"queryGranularity": "second",
|
||||||
|
"intervals": [
|
||||||
|
"2013-08-31/2013-09-02"
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"ioConfig": {
|
"ioConfig": {
|
||||||
"type": "index_parallel",
|
"type": "index_parallel",
|
||||||
"inputSource": {
|
"inputSource": {
|
||||||
"type": "local",
|
"type": "local",
|
||||||
"baseDir": "examples/indexing/",
|
"baseDir": "examples/indexing/",
|
||||||
"filter": "wikipedia_index_data*"
|
"filter": "wikipedia_index_data*"
|
||||||
},
|
},
|
||||||
"inputFormat": {
|
"inputFormat": {
|
||||||
"type": "json"
|
"type": "json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tuningConfig": {
|
"tuningConfig": {
|
||||||
"type": "index_parallel",
|
"type": "index_parallel",
|
||||||
"partitionsSpec": {
|
"partitionsSpec": {
|
||||||
"type": "single_dim",
|
"type": "single_dim",
|
||||||
"partitionDimension": "country",
|
"partitionDimension": "country",
|
||||||
"targetRowsPerSegment": 5000000
|
"targetRowsPerSegment": 5000000
|
||||||
},
|
},
|
||||||
"maxNumConcurrentSubTasks": 2
|
"maxNumConcurrentSubTasks": 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue