OS-X Yosemite上的Hadoop 2.6.0

时间:2015-02-06 05:39:14

标签: hadoop hadoop2

我跟随此tutorial在我的OS-X Yosemite上安装hadoop。 启动服务器时,我收到以下消息:

Starting namenodes on [localhost]
Starting secondary namenodes [0.0.0.0]
15/02/06 10:59:20 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
starting yarn daemons
starting resourcemanager, logging to /usr/local/Cellar/hadoop/2.6.0/libexec/logs/yarn-sverma-resourcemanager-Ban-1sverma-m.local.out

但是,在运行任何示例时,我都会遇到以下异常:

java.net.ConnectException: Call From Ban-1sverma-m.local/10.177.55.82 to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:791)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:731)
        at org.apache.hadoop.ipc.Client.call(Client.java:1472)
        at org.apache.hadoop.ipc.Client.call(Client.java:1399)

在做telnet localhost 9000时,我看到了:

Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host

有人可以告诉我为什么我的服务器没有运行吗?

编辑: 这是在-sverma-resourcemanager-Ban-1sverma-m.local.log中的日志:

2015-02-05 16:41:07,723 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: STARTUP_MSG: 
/************************************************************
STARTUP_MSG: Starting ResourceManager
STARTUP_MSG:   host = Ban-1sverma-m.local/10.177.55.82
STARTUP_MSG:   args = [] 
STARTUP_MSG:   version = 2.6.0

1 个答案:

答案 0 :(得分:0)

尝试手动启动服务并检查日志文件。

当配置文件包含外部主机名或IP地址时,我看到连接拒绝消息,但客户端尝试连接到localhost,后者解析为环回地址。这answer可能会有所帮助。

相关问题