Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 micheal noll 教程设置单节点 Hadoop 集群noll。
但是当我运行命令时
hadoop dfs -copyFromLocal /home/proton/Desktop/tmp/gutenberg /user/hduser/gutenberg
我得到错误:
/usr/bin/hadoop:4:执行:/usr/lib/hadoop-0.20/bin/hadoop:未找到
任何人都可以建议任何解决此错误的方法吗?
这意味着软链接/usr/bin/hadoop没有指向正确的位置检查hadoop命令是否存在于/usr/lib/hadoop-0.20/bin/hadoop,并/usr/bin/hadoop指向正确的位置,即您的hadoop安装目录的位置
/usr/bin/hadoop
hadoop
/usr/lib/hadoop-0.20/bin/hadoop