gpt4 book ai didi

java - start.dfs.sh期间的异常

转载 作者:行者123 更新时间:2023-12-02 21:58:13 24 4
gpt4 key购买 nike

我使用hadoop设置了两个节点的集群。

当我运行start-dfs.sh时,出现此错误:

starting namenode, logging to /usr/local/hadoop/bin/../logs/hadoop-hadoop-namenode-mohit-ubuntu.out
slave: starting datanode, logging to /usr/local/hadoop/bin/../logs/hadoop-hadoop-datanode-balaji-ubuntu.out
slave: Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName
slave: Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.PlatformName
slave: at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
slave: at java.security.AccessController.doPrivileged(Native Method)
slave: at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
slave: at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
slave: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
slave: at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
slave: Could not find the main class: org.apache.hadoop.util.PlatformName. Program will exit.
slave: Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/hdfs/server/datanode/DataNode
master: starting datanode, logging to /usr/local/hadoop/bin/../logs/hadoop-hadoop-datanode-mohit-ubuntu.out
master: starting secondarynamenode, logging to /usr/local/hadoop/bin/../logs/hadoop-hadoop-secondarynamenode-mohit-ubuntu.out

收到此错误后,我将 HADOOP_CLASSPATH更改为 export HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:$HADOOP_HOME/lib/commons*.jar:$HADOOP_HOME:$HADDOP_HOME/hadoop-core-0.20.203.0.jar:$HADOOP_HOME/conf
但这没有帮助。

最佳答案

从属节点上似乎不存在jar文件。从站的安装或配置可能不正确。

关于java - start.dfs.sh期间的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6352969/

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