无法在我的本地计算机上设置hadoop

时间:2018-01-22 08:30:41

标签: java macos hadoop

我正在尝试在我的macbook上安装Hadoop作为伪独立应用程序,我一直看到错误。

当我尝试执行sbin/start-dfs.sh时,我收到以下错误。

$ sbin/start-dfs.sh
Starting namenodes on [localhost]
localhost: Connection closed by ::1 port 22
Starting datanodes
localhost: Connection closed by ::1 port 22
Starting secondary namenodes [Kartiks-MacBook-Pro.local]
Kartiks-MacBook-Pro.local: Connection closed by 100.110.189.236 port 22
2018-01-22 00:20:19,441 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

我使用以下页面作为参考

1)http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/

2)https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html#Pseudo-Distributed_Operation

3)http://zhongyaonan.com/hadoop-tutorial/setting-up-hadoop-2-6-on-mac-osx-yosemite.html

无法查看为我添加的namenode

的网址

1)http://localhost:9870/(来自Hadoop的网站)

2)http://localhost:50070/(来自http://zhongyaonan.com/hadoop-tutorial/setting-up-hadoop-2-6-on-mac-osx-yosemite.html

我正在使用Macbook上的个人登录ID。

1 个答案:

答案 0 :(得分:0)

删除所有已安装的文件并尝试在自制程序中运行

1)按Command + Space键入Terminal,然后按enter / return键。

2)在终端中运行:

ruby​​ -e" $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < / dev / null 2>的/ dev / null的

3)brew install hadoop

完成!你现在可以使用hadoop。