我已经配置了hadoop 1.0.4,并在没有任何问题的情况下启动了以下程序:
1. $ start-dfs.sh : -Works fine
2. $ start-mapred.sh : - Work fine
3. $ jps (Output is below)
输出:
rahul@rahul-Inspiron-N4010:/usr/local/hadoop-1.0.4/bin$ jps
6964 DataNode
7147 SecondaryNameNode
6808 NameNode
7836 Jps
7254 JobTracker
7418 TaskTracker
但面临的问题是:在发出命令时
rahul@rahul-Inspiron-N4010:/usr/local/hadoop-1.0.4/bin$ hadoop -mkdir /user
获取以下错误
Unrecognized option: -mkdir
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
我应用了补丁:hdfs-1943.patch,但没有完全使用
2条答案
按热度按时间kqlmhetl1#
应该是:
hdfs dfs -mkdir /user
查阅文档http://hadoop.apache.org/docs/r1.0.4/file_system_shell.html9rbhqvlz2#
缺少fs选项
hadoop fs -mkdir /user