gpt4 book ai didi

Hadoop-mkdir : - Could not create the Java Virtual Machine

转载 作者:可可西里 更新时间:2023-11-01 14:25:22 24 4
gpt4 key购买 nike

我已经配置了 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 但没有使用完整的补丁

最佳答案

应该是:hdfs dfs -mkdir/user

http://hadoop.apache.org/docs/r1.0.4/file_system_shell.html 查阅文档

关于Hadoop-mkdir : - Could not create the Java Virtual Machine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24980177/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com