hadoop集群启动报错,高手帮忙

likeUbuntu 发布于 2013/07/14 23:41
阅读 3K+
收藏 0

2013-07-14 11:36:59,161 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: STARTUP_MSG: 
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG:   host = hadoop_master/192.168.182.135
STARTUP_MSG:   args = []
STARTUP_MSG:   version = 1.0.2
STARTUP_MSG:   build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0.2 -r 1304954; compiled by 'hortonfo' on Sat Mar 24 23:58:21 UTC 2012
************************************************************/
2013-07-14 11:36:59,558 INFO org.apache.hadoop.metrics2.impl.MetricsConfig: loaded properties from hadoop-metrics2.properties
2013-07-14 11:36:59,596 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source MetricsSystem,sub=Stats registered.
2013-07-14 11:36:59,602 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
2013-07-14 11:36:59,602 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system started
2013-07-14 11:36:59,617 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: java.lang.IllegalArgumentException: Does not contain a valid host:port authority: hdfs://hadoop_master:9000
at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:162)
at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:198)
at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:228)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:262)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:496)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1279)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1288)


2013-07-14 11:36:59,620 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at hadoop_master/192.168.182.135
************************************************************/

2013-07-14 11:37:11,074 INFO org.apache.hadoop.mapred.JobTracker: STARTUP_MSG: 

/************************************************************
STARTUP_MSG: Starting JobTracker
STARTUP_MSG:   host = hadoop_master/192.168.182.135
STARTUP_MSG:   args = []
STARTUP_MSG:   version = 1.0.2
STARTUP_MSG:   build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0.2 -r 1304954; compiled by 'hortonfo' on Sat Mar 24 23:58:21 UTC 2012
************************************************************/
2013-07-14 11:37:11,168 INFO org.apache.hadoop.metrics2.impl.MetricsConfig: loaded properties from hadoop-metrics2.properties
2013-07-14 11:37:11,179 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source MetricsSystem,sub=Stats registered.
2013-07-14 11:37:11,180 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
2013-07-14 11:37:11,180 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: JobTracker metrics system started
2013-07-14 11:37:11,249 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source QueueMetrics,q=default registered.
2013-07-14 11:37:11,411 FATAL org.apache.hadoop.mapred.JobTracker: java.lang.IllegalArgumentException: Does not contain a valid host:port authority: hadoop_master:9001
at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:162)
at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:128)
at org.apache.hadoop.mapred.JobTracker.getAddress(JobTracker.java:2560)
at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:2200)
at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:2192)
at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:2186)
at org.apache.hadoop.mapred.JobTracker.startTracker(JobTracker.java:300)
at org.apache.hadoop.mapred.JobTracker.startTracker(JobTracker.java:291)
at org.apache.hadoop.mapred.JobTracker.main(JobTracker.java:4978)


2013-07-14 11:37:11,412 INFO org.apache.hadoop.mapred.JobTracker: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down JobTracker at hadoop_master/192.168.182.135
************************************************************/
加载中
0
震秦
震秦

根据错误

java.lang.IllegalArgumentException: Does not contain a valid host:port authority: hdfs://hadoop_master:9000

检查你的datanode的/etc/hosts文件是否有  hadoop_master和对应IP的配置

还有就是Ubuntu中 默认的机器名对应是127.0.1.1, 而应该改为127.0.0.0

likeUbuntu
likeUbuntu
我的/etc/hosts文件是: #127.0.0.1 localhost #127.0.1.1 hadoop_master 192.168.182.135 hadoop_master 192.168.182.13hadoop_slaver1 192.168.182.137 hadoop_slaver2 注释掉了127.0.1.1. 网上的资料说要注掉。莫非是要打开吗?
0
blacklovebear
blacklovebear
问题解决没
likeUbuntu
likeUbuntu
已经解决了,好久没有来oschina了,我很久没有做技术了
0
王牛牛
怎么解决的?可以分享一下吗?
0
r
rebo

主机别名不支持 _

返回顶部
顶部