首页新闻找找看学习计划

HBASE中的master节点无法启动Hmaster

0
悬赏园豆:200 [待解决问题]

start-hbase.sh后jps情况如下:
master:
     15858 Jps
     3338 JobTracker
     3003 NameNode
     3230 SecondaryNameNode
     15615 HquorumPeer
slave:
     10666 HRegionServer
     14029 HQuorumPeer
     9965 TaskTracker
     14141 Jps
     9823 DataNode

执行start-hbase.sh后,HMaster未启动,但是在执行stop-hbase.sh后,HMaster又会突然出现,一段时间后,又会消失,查找了许多方法都没作用,希望各位帮帮忙!


hadoop版本1.2.1

hbase版本0.98.0-hadoop2

 

这是start-base.sh之后的日志文件:

2017-04-16 12:12:06,561 INFO  [main]
impl.MetricsSystemImpl: HBase metrics system started
2017-04-16 12:12:06,653 WARN  [main]
util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
2017-04-16 12:12:06,862 INFO  [main]
master.HMaster: hbase.rootdir=hdfs://192.168.135.211:9000/hbase,
hbase.cluster.distributed=true
2017-04-16 12:12:06,865 INFO  [main]
Configuration.deprecation: mapred.task.id is deprecated. Instead, use
mapreduce.task.attempt.id


2017-04-16 12:12:07,302 INFO 
[master:sdust-Lenovo:60000] Configuration.deprecation:
fs.default.name is deprecated. Instead, use fs.defaultFS
2017-04-16 12:12:07,305 DEBUG [main-EventThread]
master.ActiveMasterManager: A master is now available
2017-04-16 12:12:07,338 FATAL
[master:sdust-Lenovo:60000] master.HMaster: Unhandled exception.
Starting shutdown.
java.io.IOException: Failed on local exception:
java.io.EOFException; Host Details : local host is:
"sdust-Lenovo/192.168.135.211"; destination host is:
"sdust-Lenovo":9000; 
	at
org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:764)
	at
org.apache.hadoop.ipc.Client.call(Client.java:1351)
	at
org.apache.hadoop.ipc.Client.call(Client.java:1300)
	at
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
	at com.sun.proxy.$Proxy10.setSafeMode(Unknown
Source)
	at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at
java.lang.reflect.Method.invoke(Method.java:497)
	at
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:186)
	at
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
	at com.sun.proxy.$Proxy10.setSafeMode(Unknown
Source)
	at
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.setSafeMode(ClientNamenodeProtocolTranslatorPB.java:561)
	at
org.apache.hadoop.hdfs.DFSClient.setSafeMode(DFSClient.java:2146)
	at
org.apache.hadoop.hdfs.DistributedFileSystem.setSafeMode(DistributedFileSystem.java:983)
	at
org.apache.hadoop.hdfs.DistributedFileSystem.setSafeMode(DistributedFileSystem.java:967)
	at
org.apache.hadoop.hbase.util.FSUtils.isInSafeMode(FSUtils.java:433)
	at
org.apache.hadoop.hbase.util.FSUtils.waitOnSafeMode(FSUtils.java:850)
	at
org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:436)
	at
org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:147)
	at
org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:128)
	at
org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:789)
	at
org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:606)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.EOFException
	at
java.io.DataInputStream.readInt(DataInputStream.java:392)
	at
org.apache.hadoop.ipc.Client$Connection.receiveRpcResponse(Client.java:995)
	at
org.apache.hadoop.ipc.Client$Connection.run(Client.java:891)
2017-04-16 12:12:07,339 INFO 
[master:sdust-Lenovo:60000] master.HMaster: Aborting
2017-04-16 12:12:07,339 DEBUG
[master:sdust-Lenovo:60000] master.HMaster: Stopping service threads
2017-04-16 12:12:07,339 INFO 
[master:sdust-Lenovo:60000] ipc.RpcServer: Stopping server on 60000
2017-04-16 12:12:07,343 INFO 
[RpcServer.listener,port=60000] ipc.RpcServer:
RpcServer.listener,port=60000: stopping
2017-04-16 12:12:07,344 INFO 
[RpcServer.responder] ipc.RpcServer: RpcServer.responder: stopped
2017-04-16 12:12:07,344 INFO 
[RpcServer.responder] ipc.RpcServer: RpcServer.responder: stopping
2017-04-16 12:12:07,344 INFO 
[master:sdust-Lenovo:60000] master.HMaster: Stopping infoServer
2017-04-16 12:12:07,349 INFO 
[master:sdust-Lenovo:60000] mortbay.log: Stopped
SelectChannelConnector@0.0.0.0:60010
2017-04-16 12:12:07,384 INFO 
[master:sdust-Lenovo:60000] zookeeper.ZooKeeper: Session:
0x5b74f5eff10000 closed
2017-04-16 12:12:07,384 INFO 
[master:sdust-Lenovo:60000] master.HMaster: HMaster main thread
exiting
2017-04-16 12:12:07,384 INFO  [main-EventThread]
zookeeper.ClientCnxn: EventThread shut down
2017-04-16 12:12:07,384 ERROR [main]
master.HMasterCommandLine: Master exiting
java.lang.RuntimeException: HMaster Aborted
	at
org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:192)
	at
org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:134)
	at
org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
	at
org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
at
org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2785)


这是stop-hbase.sh之后的日志文件
2017-04-16 13:08:00,648 INFO  [main]
util.VersionInfo: HBase 0.98.0-hadoop2
2017-04-16 13:08:00,649 INFO  [main]
util.VersionInfo: Subversion
https://svn.apache.org/repos/asf/hbase/tags/0.98.0RC2 -r 1565492
2017-04-16 13:08:00,649 INFO  [main]
util.VersionInfo: Compiled by apurtell on Thu Feb  6 16:46:57 PST
2014
2017-04-16 13:08:00,909 WARN  [main]
util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable

2017-04-16 13:08:01,050 INFO 
[main-SendThread(sdust-Lenovo:2181)] zookeeper.ClientCnxn: Opening
socket connection to server sdust-Lenovo/192.168.135.211:2181. Will
not attempt to authenticate using SASL (unknown error)
2017-04-16 13:08:01,092 INFO  [main]
client.ZooKeeperRegistry: ClusterId read in ZooKeeper is null
client.HConnectionManager$HConnectionImplementation:
clusterid came back null, using default default-cluster
2017-04-16 13:08:01,123 INFO  [main]
client.HConnectionManager$HConnectionImplementation: getMaster
attempt 1 of 1 failed; no more retrying.
java.io.IOException: Can't get master address
from ZooKeeper; znode data == null
	at
org.apache.hadoop.hbase.zookeeper.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:108)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$StubMaker.makeStubNoRetries(HConnectionManager.java:1577)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$StubMaker.makeStub(HConnectionManager.java:1622)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$MasterServiceStubMaker.makeStub(HConnectionManager.java:1676)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getKeepAliveMasterService(HConnectionManager.java:1884)
	at
org.apache.hadoop.hbase.client.HBaseAdmin$MasterCallable.prepare(HBaseAdmin.java:3184)
	at
org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:120)
	at
org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:97)
	at
org.apache.hadoop.hbase.client.HBaseAdmin.executeCallable(HBaseAdmin.java:3211)
	at
org.apache.hadoop.hbase.client.HBaseAdmin.shutdown(HBaseAdmin.java:2091)
	at
org.apache.hadoop.hbase.master.HMasterCommandLine.stopMaster(HMasterCommandLine.java:219)
	at
org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:136)
	at
org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
	at
org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
	at
org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2785)
2017-04-16 13:08:01,128 ERROR [main]
master.HMasterCommandLine: Failed to stop master
org.apache.hadoop.hbase.client.RetriesExhaustedException:
Failed after attempts=1, exceptions:
Sun Apr 16 13:08:01 CST 2017,
org.apache.hadoop.hbase.client.RpcRetryingCaller@17275fc,
org.apache.hadoop.hbase.MasterNotRunningException:
java.io.IOException: Can't get master address from ZooKeeper; znode
data == null
	at
org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:136)
	at
org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:97)
	at
org.apache.hadoop.hbase.client.HBaseAdmin.executeCallable(HBaseAdmin.java:3211)
	at
org.apache.hadoop.hbase.client.HBaseAdmin.shutdown(HBaseAdmin.java:2091)
	at
org.apache.hadoop.hbase.master.HMasterCommandLine.stopMaster(HMasterCommandLine.java:219)
	at
org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:136)
	at
org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
	at
org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
	at
org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2785)
Caused by:
org.apache.hadoop.hbase.MasterNotRunningException:
java.io.IOException: Can't get master address from ZooKeeper; znode
data == null
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$StubMaker.makeStub(HConnectionManager.java:1650)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$MasterServiceStubMaker.makeStub(HConnectionManager.java:1676)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getKeepAliveMasterService(HConnectionManager.java:1884)
	at
org.apache.hadoop.hbase.client.HBaseAdmin$MasterCallable.prepare(HBaseAdmin.java:3184)
	at
org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:120)
	... 8 more
Caused by: java.io.IOException: Can't get master
address from ZooKeeper; znode data == null
	at
org.apache.hadoop.hbase.zookeeper.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:108)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$StubMaker.makeStubNoRetries(HConnectionManager.java:1577)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$StubMaker.makeStub(HConnectionManager.java:1622)
	... 12 more
alearningboy的主页 alearningboy | 初学一级 | 园豆:2
提问于:2017-04-16 13:17
< >
分享
所有回答(1)
0

估计是32位的问题,重新下载编译一个64位的。

或者重新找一个64位的。

狼爷 | 园豆:1192 (小虾三级) | 2017-04-20 13:45
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册