Error while queryng

when i used the same query file for querying on the single machine, it has worked well, but when I’m using different machines, I’m getting the following error

curl -X ‘POST’ -H ‘Content-Type:application/json’ -d @query_aggr_2.json xxxxxxxxxxx:8090/druid/indexer/v1/task

{“error”:“Unexpected token (END_OBJECT), expected FIELD_NAME: missing property ‘type’ that is to contain type id (for class io.druid.indexing.common.task.Task)\n at [Source: HttpInputOverHTTP@4b179e38[c=263,q=1,[0]=EOF,s=STREAM]; line: 1, column: 263]”}

I’m running coordinator, overlord and middlemngr on the same node

and historical and broker on two different nodes.

i have also attached my query file

org_query.json (575 Bytes)

Queries need to be sent to http://:/druid/v2/, this endpoint xxxxxxxxxxx:8090/druid/indexer/v1/task is for submitting tasks to the overlord

you need to give your queries to brokers node, not overlord, the http queries like that :curl -X POST ‘<queryable_host>:/druid/v2/?pretty’ -H ‘Content-Type:application/json’ -d @<query_json_file>
your curl -X ‘POST’ -H ‘Content-Type:application/json’ -d @query_aggr_2.json xxxxxxxxxxx:8090/druid/indexer/v1/task, is used to submit tasks, such as ingesting batch job data

dm diliptechno@gmail.com 于2018年7月14日周六 上午8:05写道: