gpt4 book ai didi

org.apache.hadoop.conf.Configuration.getLocalpath(配置)中的 java.lang.NullPointerException

转载 作者:可可西里 更新时间:2023-11-01 16:18:30 24 4
gpt4 key购买 nike

有没有人遇到过这个问题?

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)

最佳答案

我认为问题出在您的路径上。

file file-path 要添加的资源,直接检查本地文件系统来查找资源,而不引用类路径。

关于org.apache.hadoop.conf.Configuration.getLocalpath(配置)中的 java.lang.NullPointerException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14253341/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com