Hi,
I am trying to post an index task, but getting the following error, please help me to understand why.
curl -X ‘POST’ -H ‘Content-Type:application/json’ -d @sample-merge.json ‘druid_overlord_ip:8090/druid/indexer/v1/task’
Error 500HTTP ERROR: 500
Problem accessing /druid/indexer/v1/task. Reason:
javax.servlet.ServletException: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'firehose1': was expecting 'null', 'true', 'false' or NaN at [Source: HttpInputOverHTTP@1810f0ea[c=14,q=1,[0]=EOF,s=STREAM]; line: 1, column: 11]
Powered by Jetty:// 9.3.19.v20170502
Here is my task payload:
{
"type": "index",
"spec": {
"dataSchema": {
"dataSource": "test",
"parser": {
"type": "string",
"parseSpec": {
"timestampSpec": {
"column": "timestamp",
"format": "auto"
},
"dimensionsSpec": {
"dimensions": [],
"dimensionExclusions": []
},
"format": "json"
}
},
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "hour",
"queryGranularity": "hour"
},
"metricsSpec": [{
"type": "count",
"name": "count"
},
{
"name": "value_sum",
"type": "doubleSum",
"fieldName": "value"
},
{
"type": "hyperUnique",
"name": "uniqe_users",
"fieldName": "userid",
"isInputHyperUnique": false,
"round": false
}
]
},
"ioConfig": {
"type": "index",
"firehose": {
"type": "ingestSegment",
"dataSource": "events",
"interval": "2018-02-03/2018-02-04"
}
}
}
}
Thanks
Hong