gpt4 book ai didi

java - 需要安装 hadoop 的帮助

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

我是 Hadoop 新手,正在尝试使用 cygwin 在我的 Windows 7 (x64) PC 上安装它。我按照本教程安装了 http://alans.se/blog/2010/hadoop-hbase-cygwin-windows-7-x64/#software

在此步骤之前一切正常 -

Only Hadoop 0.21.0: Next, one line has to be added to the hadoop-config.sh file in hadoop-0.21.-0/bin

CLASSPATH=`cygpath -wp "$CLASSPATH"`

Add this line before the line containing

JAVA_LIBRARY_PATH=''

这条线 CLASSPATH=cygpath -wp "$CLASSPATH" 需要原样复制吗?

因为当我尝试运行下面的命令时。

    $ bin/hadoop namenode -format

我从 cygwin 收到这样的错误

/usr/local/hadoop-0.21.0/bin/hadoop-config.sh: line 15: $'\r': command not found
/usr/local/hadoop-0.21.0/bin/hadoop-config.sh: line 19: $'\r': command not found
/usr/local/hadoop-0.21.0/bin/hadoop-config.sh: line 21: $'\r': command not found
/usr/local/hadoop-0.21.0/bin/hadoop-config.sh: line 75: syntax error near unexpected token `$'in\r''
'usr/local/hadoop-0.21.0/bin/hadoop-config.sh: line 75: `case "`uname`" in
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

HDFS not found.

谁能解释一下哪里出了问题?

最佳答案

您正在使用已弃用的命令。要获取 hadoop 命令列表,请在您的控制台上输入 hadoop。我相信命令是 hadoop namenode -format

关于java - 需要安装 hadoop 的帮助,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9165370/

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