Loading file from local returns java.lang.NullPointerException

{

“type” : “index”,

“spec” : {

“ioConfig” : {

“type” : “index”,

“inputSpec” : {

“type” : “static”,

“paths” : “/user/node1/wikiticker-index.json”

}

},

“dataSchema” : {

“dataSource” : “wikiticker”,

“granularitySpec” : {

“type” : “uniform”,

“segmentGranularity” : “day”,

“queryGranularity” : “none”,

“intervals” : [“2015-09-12/2015-09-13”]

},

“parser” : {

“type” : “String”,

“parseSpec” : {

“format” : “json”,

“dimensionsSpec” : {

“dimensions” : [

“channel”,

“cityName”,

“comment”,

“countryIsoCode”,

“countryName”,

“isAnonymous”,

“isMinor”,

“isNew”,

“isRobot”,

“isUnpatrolled”,

“metroCode”,

“namespace”,

“page”,

“regionIsoCode”,

“regionName”,

“user”

]

},

“timestampSpec” : {

“format” : “auto”,

“column” : “time”

}

}

},

“metricsSpec” : [

{

“name” : “count”,

“type” : “count”

},

{

“name” : “added”,

“type” : “longSum”,

“fieldName” : “added”

},

{

“name” : “deleted”,

“type” : “longSum”,

“fieldName” : “deleted”

},

{

“name” : “delta”,

“type” : “longSum”,

“fieldName” : “delta”

},

{

“name” : “user_unique”,

“type” : “hyperUnique”,

“fieldName” : “user”

}

]

},

“tuningConfig” : {

“type” : “index”

}

}

}

Hi ,

Trying using firehose , it should work

“type” : “index”,

“spec” : {

“ioConfig” : {

“type” : “index”,

“firehose”: {

“type”: “local”,

“baseDir”: “”,

“filter”: “”

}

Hi Atul,

Thanks for your response. It worked but now showing error as of snapshot

2018-02-07T14:58:54,142 ERROR [task-runner-0-priority-0] io.druid.indexing.overlord.ThreadPoolTaskRunner - Exception while running task[IndexTask{id=index_wikiticker_2018-02-07T14:58:50.149Z, type=index, dataSource=wikiticker}]
com.metamx.common.ISE: **Found no files to ingest! Check your schema**.
	at io.druid.segment.realtime.firehose.LocalFirehoseFactory.connect(LocalFirehoseFactory.java:100) ~[druid-server-0.9.2.2.6.1.0-129.jar:0.9.2.2.6.1.0-129]
	at io.druid.segment.realtime.firehose.LocalFirehoseFactory.connect(LocalFirehoseFactory.java:46) ~[druid-server-0.9.2.2.6.1.0-129.jar:0.9.2.2.6.1.0-129]
	at io.druid.indexing.common.task.IndexTask.getDataIntervals(IndexTask.java:255) ~[druid-indexing-service-0.9.2.2.6.1.0-129.jar:0.9.2.2.6.1.0-129]
	at io.druid.indexing.common.task.IndexTask.run(IndexTask.java:201) ~[druid-indexing-service-0.9.2.2.6.1.0-129.jar:0.9.2.2.6.1.0-129]
	at io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:436) [druid-indexing-service-0.9.2.2.6.1.0-129.jar:0.9.2.2.6.1.0-129]
	at io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:408) [druid-indexing-service-0.9.2.2.6.1.0-129.jar:0.9.2.2.6.1.0-129]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_79]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_79]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_79]
	at java.lang.Thread.run(Thread.java:745) [?:1.7.0_79]
2018-02-07T14:58:54,142 INFO [task-runner-0-priority-0] io.druid.indexing.overlord.TaskRunnerUtils - Task [index_wikiticker_2018-02-07T14:58:50.149Z] status changed to [FAILED].
2018-02-07T14:58:54,143 INFO [task-runner-0-priority-0] io.druid.indexing.worker.executor.ExecutorLifecycle - Task completed with status: {
  "id" : "index_wikiticker_2018-02-07T14:58:50.149Z",
  "status" : "FAILED",
  "duration" : 58
}

Hi Sudarshan,

What does your local firehose spec currently look like, and what files/directory are you trying to load data from?

Hi Jonathan,

firehose spec look like as snapshot

{

“type” : “index”,

“spec” : {

“ioConfig” : {

“type” : “index”,

“firehose” : {

“type” : “local”,

“baseDir”: “/root”,

“filter”: “wikiticker.json”

}

},