我正在构建一个wordcounter程序,我想在hdfs中创建一个工作目录,但是当我执行 hdfs dfs -mkdir wordcount 或者其他来自hdfs dfs命令列表的命令 Error: Could not find or load main class org.apache.hadoop.fs.FsShell . 谷歌告诉我,也许这是一个路径变量的问题,但我检查了它,它是好的。谢谢您!
hdfs dfs -mkdir wordcount
Error: Could not find or load main class org.apache.hadoop.fs.FsShell
dwthyt8l1#
错误意味着 hadoop classpath 命令有问题,不是吗 PATH .您不需要hdfs来运行或学习mapreduce/spark wordcount代码。它在本地文件系统上也可以正常工作
hadoop classpath
PATH
1条答案
按热度按时间dwthyt8l1#
错误意味着
hadoop classpath
命令有问题,不是吗PATH
.您不需要hdfs来运行或学习mapreduce/spark wordcount代码。它在本地文件系统上也可以正常工作