Please help Error in....Load Data in Druid from CSV file

“dataSchema” : {

“dataSource” : “/tmp/tp_magri_100_OBD_IVR_Users_20180423.csv”,

“parser” : {

“parseSpec”: {

“format” : “csv”,

“delimiter”: “,”,

“timestampSpec” : {

“column” : “dt”,

“format”: “yyyy-MM-dd”

},

“columns” : [“dt”,“id”,“cellno”,“unique_id”,“activity_type”,“duration”,“dtmf”,“context”,“sub_dt”,“province”,“district”,“tehsil”,“lat”,“lng”

],

“dimensionsSpec” : {

“dimensions” : [“id”,“cellno”,“unique_id”,“activity_type”,“duration”,“dtmf”,“context”,“sub_dt”,“province”,“district”,“tehsil”,“lat”,“lng”

]

}

}

}

}

Command -----> curl -X ‘POST’ -H ‘Content-Type:application/json’ -d @quickstart/test.json 192.168.1.16:8090/druid/indexer/v1/task

Result :

{“error”:“Unexpected token (VALUE_STRING), expected FIELD_NAME: missing property ‘type’ that is to contain type id (for class io.druid.indexing.common.task.Task)\n at [Source: HttpInputOverHTTP@77b85559[c=684,q=1,[0]=EOF,s=STREAM]; line: 1, column: 1]”}
root@ubuntu:~/druid-0.12.1#

I also try this but getting same error
“firehose” : {

“type” : “local”,

“baseDir” : “/tmp/”,

“filter” : “tp_magri_100_OBD_IVR_Users_20180423.csv”,

“parser” : {

“timestampSpec” : {

“column” : “dt”

},

“data” : {

“type” : “tsv”,

“columns” : [“dt”,“id”,“cellno”,“unique_id”,“activity_type”,“duration”,“dtmf”,“context”,“sub_dt”,“province”,“district”,“tehsil”,“lat”,“lng”

],

“dimensions” : [“staid”,“val”]

}

}

}

Hi Huzzefa,

You are providing individual pieces of the task, but you need to provide the whole thing. Try looking in the quickstart folder of the distribution for some examples.