org.apache.zookeeper.KeeperException$DataInconsistencyException: KeeperErrorCode = DataInconsistency
at org.apache.hadoop.hbase.zookeeper.ZKUtil.convert(ZKUtil.java:1853)
at org.apache.hadoop.hbase.zookeeper.ZKTableReadOnly.getTableState(ZKTableReadOnly.java:164)
at org.apache.hadoop.hbase.zookeeper.ZKTable.populateTableStates(ZKTable.java:83)
at org.apache.hadoop.hbase.zookeeper.ZKTable.<init>(ZKTable.java:69)
at org.apache.hadoop.hbase.master.AssignmentManager.<init>(AssignmentManager.java:286)
at org.apache.hadoop.hbase.master.HMaster.initializeZKBasedSystemTrackers(HMaster.java:681)
at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:813)
at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:607)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.hadoop.hbase.exceptions.DeserializationException: Missing pb magic PBUF prefix
at org.apache.hadoop.hbase.protobuf.ProtobufUtil.expectPBMagicPrefix(ProtobufUtil.java:252)
at org.apache.hadoop.hbase.zookeeper.ZKTableReadOnly.getTableState(ZKTableReadOnly.java:154)
... 7 more
2014-07-22 12:14:32,747 INFO [master:node1:60000] master.HMaster: Aborting
2014-07-22 12:14:32,748 DEBUG [master:node1:60000] catalog.CatalogTracker: Stopping catalog tracker org.apache.hadoop.hbase.catalog.CatalogTracker@4e4f54
2014-07-22 12:14:32,748 DEBUG [master:node1:60000] master.HMaster: Stopping service threads
at org.apache.hadoop.hbase.zookeeper.ZKUtil.convert(ZKUtil.java:1853)
at org.apache.hadoop.hbase.zookeeper.ZKTableReadOnly.getTableState(ZKTableReadOnly.java:164)
at org.apache.hadoop.hbase.zookeeper.ZKTable.populateTableStates(ZKTable.java:83)
at org.apache.hadoop.hbase.zookeeper.ZKTable.<init>(ZKTable.java:69)
at org.apache.hadoop.hbase.master.AssignmentManager.<init>(AssignmentManager.java:286)
at org.apache.hadoop.hbase.master.HMaster.initializeZKBasedSystemTrackers(HMaster.java:681)
at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:813)
at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:607)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.hadoop.hbase.exceptions.DeserializationException: Missing pb magic PBUF prefix
at org.apache.hadoop.hbase.protobuf.ProtobufUtil.expectPBMagicPrefix(ProtobufUtil.java:252)
at org.apache.hadoop.hbase.zookeeper.ZKTableReadOnly.getTableState(ZKTableReadOnly.java:154)
... 7 more
2014-07-22 12:14:32,747 INFO [master:node1:60000] master.HMaster: Aborting
2014-07-22 12:14:32,748 DEBUG [master:node1:60000] catalog.CatalogTracker: Stopping catalog tracker org.apache.hadoop.hbase.catalog.CatalogTracker@4e4f54
2014-07-22 12:14:32,748 DEBUG [master:node1:60000] master.HMaster: Stopping service threads
2014-07-22 12:14:32,748 INFO [master:node1:60000] ipc.RpcServer: Stopping server on 60000
解决办法:由于数据不一致导致HMaster启动失败。原先机器上安装了一个Hbase,把原先的Hbase上这个配置hbase.zookeeper.property.dataDir = /opt/app/data/zookeeper 数据删除重启就行了。