NullPointerException at at io.druid.indexing.common.task.IndexTask.getDataIntervals

My data ingestion script fails with below message:

2016-10-31T13:48:26,381 ERROR [task-runner-0-priority-0] io.druid.indexing.overlord.ThreadPoolTaskRunner - Exception while running task[IndexTask{id=index_lookups_2016-10-31T13:48:23.462Z, type=index, dataSource=lookups}]
java.lang.NullPointerException
	at io.druid.indexing.common.task.IndexTask.getDataIntervals(IndexTask.java:242) ~[druid-indexing-service-0.9.1.1.jar:0.9.1.1]
	at io.druid.indexing.common.task.IndexTask.run(IndexTask.java:200) ~[druid-indexing-service-0.9.1.1.jar:0.9.1.1]
	at io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:436) [druid-indexing-service-0.9.1.1.jar:0.9.1.1]
	at io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:408) [druid-indexing-service-0.9.1.1.jar:0.9.1.1]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_40]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_40]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_40]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_40]



Ingestion script looks like this:

{
    "type": "index",
    "spec": {
        "ioConfig": {
            "type": "index",
            "inputSpec": {
                "type": "static-s3",
                "paths": [
                    "s3://word-lookup/7b5607893470/2016/10/09-46-31_l2.json.gz"
                ]
            }
        },
        "dataSchema": {
            "dataSource": "lookups",
            "granularitySpec": {
                "type": "uniform",
                "segmentGranularity": "day",
                "queryGranularity": "none",
                "intervals": [
                    "2015-09-12/2017-09-13"
                ]
            },
            "parser": {
                "type": "string",
                "parseSpec": {
                    "format": "json",
                    "dimensionsSpec": {
                        "dimensions": [
                            "word",
                            "is_mwu",
                            "host",
                            "ref"
                        ]
                    },
                    "timestampSpec": {
                        "format": "auto",
                        "column": "timestamp"
                    }
                }
            },
            "metricsSpec": [
                {
                    "name": "count",
                    "type": "count"
                }
            ]
        }
    }
}



Data that is being ingested look like this:
{"timestamp":"2016-10-31T09:45:53-04:00","word":"red","is_mwu":"no","host":"7b5607893470","ref":"dictionary"}
{"timestamp":"2016-10-31T09:45:58-04:00","word":"dog","is_mwu":"no","host":"7b5607893470","ref":"dictionary"}



I can't figure out what could be the problem.
Does anyone have any ideas?

thx


can you replace “inputSpec" by “firehose"

I’ve changed to this:

{

"type": "index",

"spec": {

    "ioConfig": {

        "type": "index",

        "firehose": {

            "type": "static-s3",

            "paths": [

                "s3:\/\/word-lookup\/7b5607893470\/2016\/10\/14-28-09_l2.json.gz"

            ]

        }

    },

    "dataSchema": {

        "dataSource": "lookups",

        "granularitySpec": {

            "type": "uniform",

            "segmentGranularity": "day",

            "queryGranularity": "none",

            "intervals": [

                "2015-09-12\/2017-09-13"

            ]

        },

        "parser": {

            "type": "string",

            "parseSpec": {

                "format": "json",

                "dimensionsSpec": {

                    "dimensions": [

                        "word",

                        "is_mwu",

                        "host",

                        "ref"

                    ]

                },

                "timestampSpec": {

                    "format": "auto",

                    "column": "timestamp"

                }

            }

        },

        "metricsSpec": [

            {

                "name": "count",

                "type": "count"

            }

        ]

    }

}

}

Now i’m getting this error:

{“error”:“Instantiation of [simple type, class io.druid.firehose.s3.StaticS3FirehoseFactory] value failed: null”}

Change paths with uris

Yes! YEs yes yes yes ye!!! OMgOMGOMG. That did it!
after 1.5 weeks of a struggle druid finally ingests! hullleluya.

today was a great day! Thank u sir!