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