I am trying to run the index_hadoop task on one of my datasource for reindexing. This job is getting success and segment is creating. But when I am trying to see the result by select query, I found all metrics value are 0. Could you please help me on this. Below are details I have used to run this task.
{
"type": "index_hadoop",
"spec": {
"dataSchema": {
"dataSource": "index_hadoop_test20",
"parser": {
"type": "string",
"parseSpec": {
"format" : "json",
"timestampSpec" : {
"format" : "auto",
"column" : "timestamp"
},
"columns" : [
"timestamp",
"dim1",
"metric1_sum"
],
"dimensionsSpec" : {
"dimensions" : []
}
}
},
"metricsSpec": [
{
"name" : "metric1_sum",
"type" : "doubleSum",
"fieldName" : "metric1"
}
],
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "DAY",
"queryGranularity": "NONE",
"intervals": ["2017-03-01T02:00:00/2017-03-02T02:00:00"]
}
},
"ioConfig": {
"type": "hadoop",
"inputSpec": {
"type":"dataSource",
"ingestionSpec": {
"dataSource":"arpan1",
"intervals" : ["2017-03-01T02:00:00/2017-03-02T02:00:00"]
}
}
},
"tuningConfig": {
"type": "hadoop",
"partitionsSpec" : {
"type" : "hashed",
"targetPartitionSize" : 5000000
},
"jobProperties" : {}
}
}
}
"timestamp": "2017-03-01T07:00:00.000Z",
"result": {
"pagingIdentifiers": {
"index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z": -11
},
"dimensions": [
"dim4",
"dim3",
"dim2",
"dim1"
],
"metrics": [
"metric1_sum"
],
"events": [
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -1,
"event": {
"timestamp": "2017-03-01T09:45:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
},
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -2,
"event": {
"timestamp": "2017-03-01T09:30:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
},
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -3,
"event": {
"timestamp": "2017-03-01T09:15:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
},
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -4,
"event": {
"timestamp": "2017-03-01T09:00:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
},
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -5,
"event": {
"timestamp": "2017-03-01T08:45:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
},
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -6,
"event": {
"timestamp": "2017-03-01T08:30:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
},
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -7,
"event": {
"timestamp": "2017-03-01T08:00:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
},
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -8,
"event": {
"timestamp": "2017-03-01T07:45:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
},
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -9,
"event": {
"timestamp": "2017-03-01T07:30:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
},
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -10,
"event": {
"timestamp": "2017-03-01T07:15:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
},
{
"segmentId": "index_hadoop_test20_2017-03-01T00:00:00.000Z_2017-03-02T00:00:00.000Z_2017-03-03T07:04:25.068Z",
"offset": -11,
"event": {
"timestamp": "2017-03-01T07:00:00.000Z",
"dim4": "dim4",
"dim3": "dim3",
"dim2": "dim2",
"dim1": "dim1",
"metric1_sum": 0
}
}
]
}
}
Please give some solution on this.