java.lang.NullPointerExceptio

Hi Guys,

i have recently installed druid 0.9.1.1 (upgrade from 0.8.0), and as part of testing i am trying to ingest the sample json file but i get below error ? Has anyone seen this before? i am not able to determine the issue. In some previous threads in this group, i was able to see that it pointed out to unparsable time but not in my case.

Error: com.metamx.common.RE: Failure on row[{“time”: “2015-09-01”, “url”: “/foo/bar”, “user”: “alice”, “latencyMs”: 32}]

at io.druid.indexer.HadoopDruidIndexerMapper.map(HadoopDruidIndexerMapper.java:88)

at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)

at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)

at org.apache.hadoop.mapred.MapTask.run(MapTask.java:340)

at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.Subject.doAs(Subject.java:415)

at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1548)

at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163)

Caused by: java.lang.NullPointerException

at io.druid.indexer.HadoopDruidIndexerConfig.getBucket(HadoopDruidIndexerConfig.java:402)

at io.druid.indexer.IndexGeneratorJob$IndexGeneratorMapper.innerMap(IndexGeneratorJob.java:270)

at io.druid.indexer.HadoopDruidIndexerMapper.map(HadoopDruidIndexerMapper.java:84)

… 8 more

karteek

Could you also share your task spec for more info.

Nishant,

Here is my index spec

{

    "type": "index_hadoop",

“hadoopDependencyCoordinates”: [“org.apache.hadoop:hadoop-client:2.6.0”],

    "spec": {

            "dataSchema": {

                    "dataSource": "pageviewshdp",

                    "parser": {

                            "type": "string",

                            "parseSpec": {

                                    "format": "json",

                                    "timestampSpec": {

                                            "format": "auto",

                                            "column": "time"

                                    },

                                    "dimensionsSpec": {

                                            "dimensions": [

                                                    "url",

                                                    "user"

                                            ],

                                            "dimensionExclusions": [],

                                            "spatialDimensions": []

                                    },

                                    "columns": [

                                            "time",

                                            "url",

                                            "user",

                                            "latencyMs"

                                    ]

                            }

                    },

                    "metricsSpec": [{

                            "name": "views",

                            "type": "count"

                    }, {

                            "name": "latencyMs",

                            "type": "doubleSum",

                            "fieldName": "latencyMs"

                    }],

                    "granularitySpec": {

                            "type": "uniform",

                            "segmentGranularity": "DAY",

                            "queryGranularity": "NONE",

                            "intervals": ["2015-09-01/2015-09-02"]

                    }

            },

            "ioConfig": {

                    "type": "hadoop",

                    "inputSpec": {

                            "type": "static",

                            "paths": "hdfs://inputtpath/druid_input1.json"

                    }

            },

            "tuningConfig": {

                    "type": "hadoop",

                    "jobProperties": {

                            "mapreduce.job.user.classpath.first" : "true"

                    }

            }

    }

}