gpt4 book ai didi

hadoop - 线程 “main” java.lang.NoClassDefFoundError中的异常:org/apache/hadoop/fs/FSDataInputStream

转载 作者:行者123 更新时间:2023-12-02 21:01:50 26 4
gpt4 key购买 nike

我正在将远程Spark作业提交到Hadoop集群。但是出现以下错误消息可以帮助我解决此问题。

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream
at org.apache.spark.Logging$.<init>(Logging.scala:162)
at org.apache.spark.Logging$.<clinit>(Logging.scala)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:103)
at org.apache.spark.Logging$class.log(Logging.scala:50)
at org.apache.spark.deploy.yarn.ApplicationMaster$.log(ApplicationMaster.scala:635)
at org.apache.spark.deploy.yarn.ApplicationMaster$.main(ApplicationMaster.scala:649)
at org.apache.spark.deploy.yarn.ExecutorLauncher$.main(ApplicationMaster.scala:674)
at org.apache.spark.deploy.yarn.ExecutorLauncher.main(ApplicationMaster.scala)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.FSDataInputStream
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 8 more

最佳答案

看起来您正在使用为用户提供的Hadoop预先构建的Spark发行版。尝试下载显示“针对Hadoop 2.x或更高版本预构建”的发行版,其中x是您现有的Hadoop群集版本,然后查看它是否适用。

关于hadoop - 线程 “main” java.lang.NoClassDefFoundError中的异常:org/apache/hadoop/fs/FSDataInputStream,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43042891/

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