我正在关注this tutorial在我的Windows 10上设置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.
我认为这样做是因为我的用户名&#34; Azfar Faizan&#34;包含空格,但在设置过程中我没有使用任何包含我的用户名文件夹的路径。任何人都可以指导我究竟是什么问题,或者我完全错了吗?