Error: Could not find or load main class org.apache.hadoop.fs.FsShell

Posted xuezhisdc

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: Could not find or load main class org.apache.hadoop.fs.FsShell相关的知识,希望对你有一定的参考价值。

博客新址: http://blog.xuezhisd.top
邮箱:xuezhisd@126.com


错误:

  • Error: Could not find or load main class org.apache.hadoop.fs.FsShell

解决方法

  • ~/.bashrc中添加以下内容:
export HADOOP_CLASSPATH=$(hadoop classpath):$HADOOP_CLASSPATH
  • 在命令行中执行以下命令,使上面操作生效。
source ~/.bashrc

以上是关于Error: Could not find or load main class org.apache.hadoop.fs.FsShell的主要内容,如果未能解决你的问题,请参考以下文章

CentOS下运行Java文件Error: Could not find or load main class

Error: Could not find or load main class org.apache.hadoop.fs.FsShell

Error: Could not find or load main class org.apache.hadoop.fs.FsShell

cmd运行Java中文乱码,无法加载主类Error: Could not find or load main class

解决Zookeeper出现Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerM

Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster