我安装了java和hadoop,但是当我运行namenode格式化命令和start-all.sh
时,我收到以下错误:
:~$ hadoop namenode -format
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