java.lang.NullPointerException位于org.apache.hadoop.conf.Configuration.getLocalpath(;配置);
以前有人有过这个问题吗java.lang.NullPointerException位于org.apache.hadoop.conf.Configuration.getLocalpath(;配置);,java,hadoop,mapreduce,Java,Hadoop,Mapreduce,以前有人有过这个问题吗 The following are the error information when I run the job: 13/01/10 15:53:19 INFO mapred.JobClient: Task Id : attempt_201301101540_0001_m_000010_0, Status : FAILED java.lang.NullPointerException at org.apache.hadoop.conf.Configuratio
The following are the error information when I run the job:
13/01/10 15:53:19 INFO mapred.JobClient: Task Id : attempt_201301101540_0001_m_000010_0, Status : FAILED
java.lang.NullPointerException
at org.apache.hadoop.conf.Configuration.getLocalPath(Configuration.java:934)
at nfs.iscas.sil.hcir.index.ImageIndexWriter.<init>(Unknown Source)
at nfs.iscas.sil.hcir.index.ImageIndexOutputFormat.getRecordWriter(Unknown Source)
at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.<init>(MapTask.java:627)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:752)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:369)
at org.apache.hadoop.mapred.Child$4.run(Child.java:259)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059)
at org.apache.hadoop.mapred.Child.main(Child.java:253)
以下是我运行作业时的错误信息:
2010年1月13日15:53:19信息映射。作业客户端:任务Id:尝试\u 2013011540\u 0001\u m\u 000010\u 0,状态:失败
java.lang.NullPointerException
位于org.apache.hadoop.conf.Configuration.getLocalPath(Configuration.java:934)
位于nfs.iscas.sil.hcir.index.ImageIndexWriter。(未知来源)
位于nfs.iscas.sil.hcir.index.ImageIndexOutputFormat.getRecordWriter(未知源)
位于org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector。(MapTask.java:627)
位于org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:752)
位于org.apache.hadoop.mapred.MapTask.run(MapTask.java:369)
位于org.apache.hadoop.mapred.Child$4.run(Child.java:259)
位于java.security.AccessController.doPrivileged(本机方法)
位于javax.security.auth.Subject.doAs(Subject.java:396)
位于org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059)
位于org.apache.hadoop.mapred.Child.main(Child.java:253)
我认为问题在你的道路上
要添加的资源的文件路径,直接检查本地文件系统以查找资源,而不参考类路径。