2016-03-28 03:51:36 -04:00
|
|
|
{
|
|
|
|
"type": "index_hadoop",
|
|
|
|
"spec": {
|
|
|
|
"ioConfig": {
|
|
|
|
"type": "hadoop",
|
|
|
|
"inputSpec": {
|
|
|
|
"type": "static",
|
2018-11-06 00:33:42 -05:00
|
|
|
"inputFormat": "%s",
|
|
|
|
"paths": "example/timestamps/int96_timestamp.parquet"
|
2016-03-28 03:51:36 -04:00
|
|
|
},
|
|
|
|
"metadataUpdateSpec": {
|
|
|
|
"type": "postgresql",
|
|
|
|
"connectURI": "jdbc:postgresql://localhost/druid",
|
2018-11-06 00:33:42 -05:00
|
|
|
"user": "druid",
|
|
|
|
"password": "asdf",
|
2016-03-28 03:51:36 -04:00
|
|
|
"segmentTable": "druid_segments"
|
|
|
|
},
|
2017-06-22 16:56:08 -04:00
|
|
|
"segmentOutputPath": "/tmp/segments"
|
2016-03-28 03:51:36 -04:00
|
|
|
},
|
|
|
|
"dataSchema": {
|
2018-11-06 00:33:42 -05:00
|
|
|
"dataSource": "nest",
|
2016-03-28 03:51:36 -04:00
|
|
|
"parser": {
|
2018-11-06 00:33:42 -05:00
|
|
|
"type": "%s",
|
2016-03-28 03:51:36 -04:00
|
|
|
"parseSpec": {
|
2018-11-06 00:33:42 -05:00
|
|
|
"format": "%s",
|
|
|
|
"flattenSpec": {
|
|
|
|
"useFieldDiscovery": true
|
2016-03-28 03:51:36 -04:00
|
|
|
},
|
2018-11-06 00:33:42 -05:00
|
|
|
"timestampSpec": {
|
|
|
|
"column": "ts",
|
|
|
|
"format": "auto"
|
2016-03-28 03:51:36 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2018-11-06 00:33:42 -05:00
|
|
|
"metricsSpec": [
|
|
|
|
{
|
|
|
|
"type": "count",
|
|
|
|
"name": "count"
|
|
|
|
}
|
|
|
|
],
|
2016-03-28 03:51:36 -04:00
|
|
|
"granularitySpec": {
|
|
|
|
"type": "uniform",
|
|
|
|
"segmentGranularity": "DAY",
|
2017-06-22 16:56:08 -04:00
|
|
|
"queryGranularity": "NONE",
|
2018-11-06 00:33:42 -05:00
|
|
|
"intervals": [
|
|
|
|
"2018-08-30/2020-09-02"
|
|
|
|
]
|
2016-03-28 03:51:36 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tuningConfig": {
|
|
|
|
"type": "hadoop",
|
|
|
|
"workingPath": "tmp/working_path",
|
|
|
|
"partitionsSpec": {
|
|
|
|
"targetPartitionSize": 5000000
|
|
|
|
},
|
2018-11-06 00:33:42 -05:00
|
|
|
"jobProperties": {
|
2016-03-28 03:51:36 -04:00
|
|
|
"mapreduce.map.java.opts": "-server -Duser.timezone=UTC -Dfile.encoding=UTF-8 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps",
|
|
|
|
"mapreduce.reduce.java.opts": "-server -Duser.timezone=UTC -Dfile.encoding=UTF-8 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps",
|
|
|
|
"mapred.child.java.opts": "-server -XX:+PrintGCDetails -XX:+PrintGCTimeStamps"
|
|
|
|
},
|
|
|
|
"leaveIntermediate": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|