在Windows10上设置hadoop时出错

ozxc1zmp  于 2021-05-29  发布在  Hadoop
关注(0)|答案(0)|浏览(204)

我按照这个教程在Windows10上安装hadoop。我成功地按照教程一直到第5页,在把所有的东西都放进去之后,我试着检查一下 hadoop version 在命令行上。但它返回以下错误:

D:\hadoop-2.6.0\bin>hadoop version
Error: Could not find or load main class Azfar

相反,如果我使用以下命令,它会以某种方式工作:

D:\hadoop-2.6.0\bin>hadoop
Usage: hadoop [--config confdir] COMMAND
where COMMAND is one of:
  fs                   run a generic filesystem user client
  version              print the version
  jar <jar>            run a jar file
  checknative [-a|-h]  check native hadoop and compression libraries availability
  distcp <srcurl> <desturl> copy file or directories recursively
  archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive
  classpath            prints the class path needed to get the
                       Hadoop jar and the required libraries
  credential           interact with credential providers
  key                  manage keys via the KeyProvider
  daemonlog            get/set the log level for each daemon
 or
  CLASSNAME            run the class named CLASSNAME

Most commands print help when invoked w/o parameters.

我认为这样做是因为我的用户名“azfar faizan”包含一个空格,但在设置过程中我没有使用任何包含用户名文件夹的路径。有没有人能告诉我到底哪里出了问题,或者我做错了什么?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题