最近在下面的链接上安装了vm,并正在尝试运行该命令 sudo hdfs dfs -mkdir /user/vagrant
作为hdfs用户。但是,hadoop向我抛出了下面的错误消息。
https://atlas.hashicorp.com/puppetlabs/boxes/centos-6.6-64-nocm
-bash-4.1$ hdfs dfs -mkdir /user/vagrant
: command not founddoop-env.sh: line 15:
: command not founddoop-env.sh: line 16:
: command not founddoop-env.sh: line 21:
: command not founddoop-env.sh: line 26:
: command not founddoop-env.sh: line 29:
: command not founddoop-env.sh: line 32:
: command not founddoop-env.sh: line 35:
: command not founddoop-env.sh: line 38:
: command not founddoop-env.sh: line 46:
: command not founddoop-env.sh: line 49:
: command not founddoop-env.sh: line 52:
: command not founddoop-env.sh: line 55:
: command not founddoop-env.sh: line 58:
: command not founddoop-env.sh: line 61:
: command not founddoop-env.sh: line 66:
: command not founddoop-env.sh: line 69:
: command not founddoop-env.sh: line 72:
: command not founddoop-env.sh: line 75:
: command not founddoop-env.sh: line 77:
: command not founddoop-env.sh: line 78:
mkdir: Call From bigtop1.vagrant/127.0.0.1 to bigtop1.vagrant:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
我相信这意味着没有一个hadoop服务正在运行(即使运行hadoop-fs也会返回命令NotFound错误),但是我不确定如何解决这个问题。另外,我甚至没有在/usr或/usr/local下看到/hadoop文件夹。
我本想用“流浪者毁灭”->“流浪者起来”来解决这个问题,但没有用。
1条答案
按热度按时间1aaf6o9v1#
注意到行尾是windows格式的。销毁的vm,正确配置的git for unix行结束符
git config --global core.autocrlf false
,并重新制作。效果很好。