在hadoop中找不到或加载主类错误 [英] Can't find or load main class error in hadoop
问题描述
这里是下面的教程。我得到错误,当我试图执行命令 bin / hadoop namenode -format
。
错误是:
错误:找不到或加载主类
org.apache.hadoop.util.PlatformName DEPRECATED:不推荐将此脚本用于
execute hdfs命令。而是使用hdfs命令为
it。
Error: Could not find or load main class org.apache.hadoop.util.PlatformName DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command for it.
错误:找不到或加载主类
org.apache.hadoop.util.PlatformName错误:找不到或加载main
类org.apache.hadoop.hdfs.server.namenode.NameNode
Error: Could not find or load main class org.apache.hadoop.util.PlatformName Error: Could not find or load main class org.apache.hadoop.hdfs.server.namenode.NameNode
任何帮助?
推荐答案
这是我的2美分。我有同样的问题,我重新安装hadoop在unix环境中,它工作正常。 Cygwin有一些奇怪的问题,hadoop加窗口不是hadoop的好平台。
Here is my 2 cents. I had the same issue, I re-installed hadoop in a unix environment and it worked fine. Cygwin has some weird issues with hadoop plus windows is not a good platform for hadoop.
这篇关于在hadoop中找不到或加载主类错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!