2016-09-26 61 views
0

最近在下面的鏈接中安裝了VM,並試圖運行命令sudo hdfs dfs -mkdir /user/vagrant作爲HDFS用戶。但是,Hadoop正在向我拋出以下錯誤消息。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返回命令沒有找到錯誤),但我不確定如何解決這個問題。另外,我甚至沒有在/ usr或/ usr/local下看到/ hadoop文件夾。

我希望通過使用流浪摧毀 - >流浪漢來解決這個問題,但無濟於事。

回答

0

注意到的行尾是windows格式。銷燬VM,正確配置git for unix行尾git config --global core.autocrlf false,並重新制作。完美的作品。