我遵循这个教程在我的os-xyosemite上安装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
有人能告诉我为什么我的服务器没有运行吗?
编辑:这是warn-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条答案
按热度按时间a64a0gku1#
尝试手动启动服务并检查日志文件。
当配置文件包含外部主机名或ip地址,但客户机试图连接到本地主机(解析为环回地址)时,我看到了连接被拒绝的消息。这个答案可能有用。