{
"type": "index_hadoop",
"id" : "THIS_WILL_BE_REPLACED_RUNTIME",
"spec": {
"dataSchema": {
"dataSource": "druid_ingest",
"parser": {
"type": "hadoopyString",
"parseSpec": {
"format": "jsonLowercase",
"timestampSpec": {
"column": "timestamp",
"format": "auto"
},
"dimensionsSpec": {
"dimensions": [
"dim_1",
"dim_2",
...... "dim_n",
],
"dimensionExclusions": [
"timestamp"
]
}
}
},
"metricsSpec": [
{
"type": "count",
"name": "records"
},
{
"type": "doubleSum",
"name": "metric_1",
"fieldName": "m1"
},
......... {
"type": "doubleSum",
"name": "metric_n",
"fieldName": "m_n"
}
],
"granularitySpec" : {
"type" : "uniform",
"segmentGranularity" : "HOUR",
"queryGranularity" : "NONE",
"intervals" : [ "2016-09-24T22:00:00.000-07:00/2016-09-24T23:00:00.000-07:00" ]
}
},
"ioConfig" : {
"type" : "hadoop",
"inputSpec" : {
"type" : "static",
"paths" : <location where the files are located>
}
},
"tuningConfig" : {
"type": "hadoop",
"jobProperties" : {
"hdp.version": "2.2.9.0-3393",
"mapreduce.job.user.classpath.first": "true",
"mapreduce.map.memory.mb" : 2048,
"mapreduce.map.java.opts" : "-server -Xmx1536m -Duser.timezone=UTC -Dfile.encoding=UTF-8",
"mapreduce.reduce.memory.mb" : 6144,
"mapreduce.reduce.java.opts" : "-server -Xmx2560m -Duser.timezone=UTC -Dfile.encoding=UTF-8",
"mapreduce.job.reduces" : 21,
"mapreduce.job.jvm.numtasks" : 20,
"mapreduce.reduce.shuffle.parallelcopies" : 50,
"mapreduce.reduce.shuffle.input.buffer.percent" : 0.5,
"mapreduce.task.io.sort.mb" : 250,
"mapreduce.task.io.sort.factor" : 100,
"mapreduce.jobtracker.handler.count" : 64,
"mapreduce.tasktracker.http.threads" : 20,
"mapreduce.output.fileoutputformat.compress" : false,
"mapreduce.output.fileoutputformat.compress.type" : "BLOCK",
"mapreduce.output.fileoutputformat.compress.codec" : "org.apache.hadoop.io.compress.DefaultCodec",
"mapreduce.map.output.compress" : true,
"mapreduce.map.output.compress.codec" : "org.apache.hadoop.io.compress.DefaultCodec",
"mapreduce.map.speculative" : false,
"mapreduce.reduce.speculative" : false,
"mapreduce.task.timeout" : 1800000
}
}
},
"hadoopDependencyCoordinates": ["org.apache.hadoop:hadoop-client:2.6.0.2.2.9.9-2"]
}