hadoop配置错误

k4emjkb1  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(434)

我正在尝试启动我的hadoop应用程序,但是在启动时我在日志文件中看到了这一点,有人知道问题是什么吗?
正在为创建文件系统hdfs://10.170.4.141:9000 java.io.ioexception:config(),位于org.apache.hadoop.conf.configuration.(配置。java:229)在org.apache.hadoop.conf.configuration上。java:216)在org.apache.hadoop.security.securityutil。java:60)在org.apache.hadoop.net.netutils.makesocketaddr(netutils。java:188)在org.apache.hadoop.net.netutils.createsocketaddr(netutils。java:168)在org.apache.hadoop.hdfs.server.namenode.namenode.getaddress(namenode。java:198)位于org.apache.hadoop.hdfs.distributedfilesystem.initialize(distributedfilesystem)。java:88)在org.apache.hadoop.fs.filesystem.createfilesystem(filesystem。java:1413)在org.apache.hadoop.fs.filesystem.access$200(文件系统)。java:68)在org.apache.hadoop.fs.filesystem$cache.get(filesystem。java:1431)在org.apache.hadoop.fs.filesystem.get(filesystem。java:256)在org.apache.hadoop.fs.filesystem.get(filesystem。java:125)在org.apache.hadoop.fs.filesystem.get(filesystem。java:240)在org.apache.hadoop.fs.path.getfilesystem(路径。java:187)位于org.apache.hadoop.mapreduce.lib.input.fileinputformat.addinputpath(fileinputformat)。java:372)在org.blismedia.volumereportgenerateupdates.main(volumereportgenerateupdates。java:156)位于sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl。java:39)在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:25)在java.lang.reflect.method.invoke(方法。java:597)在org.apache.hadoop.util.runjar.main(runjar。java:187)

ejk8hzay

ejk8hzay1#

我想你遇到了hadoop-2851。这个“错误”完全可以忽略。
显然,配置的构造函数会将异常记录到调试日志中,尽管实际上没有抛出异常。为什么?你的猜测和我的一样好。但这个问题在他们的项目中得到了解决,因为他们无法解决。”这是一个功能,不是一个bug。”

public Configuration(boolean loadDefaults) {
  if (LOG.isDebugEnabled()) {
    LOG.debug(StringUtils.stringifyException(new IOException("config()")));
  }
  // ...
}

相关问题