Hi,
I am trying to run Druid-0.9.0 for a POC.
My issue is getting a HTTP error : 500 when i try to run the index task.
Mu Ingestion Spec file is:
{
"type" : "index",
"spec" : {
"ioConfig" : {
"type" : "index",
"firehose" : {
"type" : "local",
"baseDir" : "/home/centos/"
"filter" : "abc.csv"
}
},
"dataSchema" : {
"dataSource" : "abc",
"granularitySpec" : {
"type" : "uniform",
"segmentGranularity" : "day",
"queryGranularity" : "none",
"intervals" : ["2000-01-01/2000-01-02"]
},
"parser" : {
"type" : "string",
"parseSpec" : {
"format" : "csv",
"columns" : [
"timestamp",
"household_id",
"network_group_id",
"quarter_hour_of_the_day_offset",
"broadcast_month_id",
"ad_zone",
"region",
"region_all",
"party",
"party_all",
"duration",
"ethnic_group",
"age_range",
"income_range",
"gender"
]
"dimensionsSpec" : {
"dimensions" : [
"household_id",
"network_group_id",
"quarter_hour_of_the_day_offset",
"broadcast_month_id",
"ad_zone",
"region",
"region_all",
"party",
"party_all",
"duration",
"ethnic_group",
"age_range",
"income_range",
"gender"
]
},
"timestampSpec" : {
"format" : "auto",
"column" : "time"
}
}
},
"metricsSpec" : [
{
"name" : "household_id",
"type" : "count"
},
{
"name" : "duration",
"type" : "longSum",
"fieldName" : "duration"
}
]
},
"tuningConfig" : {
"type" : "index",
"targetPartitionSize" : 0
"rowFlushBoundary": 0
}
}
}
The error i am getting:
Warning: Couldn't read data from file "abc.json", this makes an empty
Warning: POST.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /druid/indexer/v1/task. Reason:
<pre> java.lang.NullPointerException: task</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
I am stuck at this and would really appreciate some help.
Thanks.