0
我正在关注这个tutorial在我的OS-X Yosemite上安装hadoop。 在启动我碰到下面的信息服务器:在OS-X优胜美地Hadoop 2.6.0
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朋-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
检查位于日志文件夹中的namenode守护进程日志以了解发生了什么? – Ashrith 2015-02-06 05:56:20
附上日志 - 虽然 – 2015-02-06 06:16:36
可以检查守护进程的'.out'或'.log'文件,但信息量不大。另外,您是否尝试过运行'jps'来查看哪些进程正在运行,哪些不是? – Ashrith 2015-02-06 06:19:18