Error while ingesting a JSON file using CURL

I am trying to load a JSON file through command line using following command:

curl -X ‘POST’ -H ‘Content-Type:application/json’ -d @quickstart/center_metric_spec.json http://localhost:8081/druid/indexer/v1/task

I got the following error:

{“error”:“Instantiation of [simple type, class org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask] value failed: null”}

I don’t understand which field is missing in the ingestion spec. Is there anything missing in command?

Thanks

Can you show me the logs of middlemanager and coordinator and also show the ingestion spec.

Hi Hemant,

The issue is with the JSON ingestion file(center_metric_spec.json) file. You can try to copy the context and paste in druid console -> tasks -> submit tasks and will still see the same error.

The spec property in the file might be incorrect. Kindly check the file.

Thanks,

Hemanth