我试图使用HBase shell。为此,我只需启动命令列表。当我这样做时,它出现了:
ERROR: org.apache.hadoop.hbase.MasterNotRunningException: null
我检查了hbase-ubuntu-master-localdomain.log并说:
mer 2014年3月26日,11.03.23 ,CET在ubuntu-linux ulimit上启动大师 -n 10000 2014-03-26 11:03:24,932 INFO org.apache.zookeeper.server.ZooKeeperServer:Server 环境:zookeeper.version = 3.3.2-1031432,建于11/05/2010 05:32 GMT
2014-03-26 11:03:24,932 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:host.name =本地主机
2014-03-26 11:03:24,932 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:java.version = 1.7.0_25
2014-03-26 11:03:24,932 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 environment:java.vendor = Oracle Corporation
2014-03-26 11:03:24,932 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:java.home = / usr / lib中/ JVM / JAVA -7-的openjdk-AMD64 / JRE
2014-03-26 11:03:24,932 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:java.class.path = /家庭/ ubuntu的...........继续
2014-03-26 11:03:24,933 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:的java.library.path =的/ usr /爪哇/包/ LIB / AMD64:/ usr / lib中/ JNI:/ lib中:/ usr / lib中
2014-03-26 11:03:24,933 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:java.io.tmpdir = / TMP
2014-03-26 11:03:24,933 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:java.compiler =
2014-03-26 11:03:24,933 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:os.name = Linux的
2014-03-26 11:03:24,933 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:os.arch = AMD64
2014-03-26 11:03:24,933 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:os.version = 3.8.0-19泛型
2014-03-26 11:03:24,933 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:user.name = ubuntu的
2014-03-26 11:03:24,933 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:的user.home = /家庭/ ubuntu的
2014-03-26 11:03:24,933 INFO org.apache.zookeeper.server.ZooKeeperServer:服务器 环境:user.dir来= /家庭/ ubuntu的/计划/ HBase的-0.90.0
2014-03-26 11:03:24,951 INFO org.apache.zookeeper.server.ZooKeeperServer:创建的服务器 tickTime 2000 minSessionTimeout 4000 maxSessionTimeout 40000 datadir / home / ubuntu / hbaseStore / zookeeper / zookeeper / version-2 snapdir /家庭/ ubuntu的/ hbaseStore /动物园管理员/动物园管理员/版本-2
2014-03-26 11:03:25,103 INFO org.apache.zookeeper.server.NIOServerCnxn:绑定到端口 0.0.0.0/0.0.0.0:2181
2014-03-26 11:03:26,746 INFO org.apache.zookeeper.server.persistence.FileSnap:读取快照 /home/ubuntu/hbaseStore/zookeeper/zookeeper/version-2/snapshot.77c034
2014-03-26 11:03:27,430 错误 org.apache.hadoop.hbase.master.HMasterCommandLine:无法启动 master java.io.IOException:CRC check failed
在 org.apache.zookeeper.server.persistence.FileTxnLog $ FileTxnIterator.next(FileTxnLog.java:561)
在 org.apache.zookeeper.server.persistence.FileTxnLog $ FileTxnIterator.init(FileTxnLog.java:479)
在 org.apache.zookeeper.server.persistence.FileTxnLog $ FileTxnIterator。(FileTxnLog.java:454)
在 org.apache.zookeeper.server.persistence.FileTxnLog.read(FileTxnLog.java:325)
在 org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:126)
在 org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:197)
在 org.apache.zookeeper.server.ZooKeeperServer.loadData(ZooKeeperServer.java:239)
在 org.apache.zookeeper.server.ZooKeeperServer.startdata(ZooKeeperServer.java:366)
在 org.apache.zookeeper.server.NIOServerCnxn $ Factory.startup(NIOServerCnxn.java:160)
在 org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster.startup(MiniZooKeeperCluster.java:118)
在 org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:125)
在 org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:102)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
在 org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1071)
任何人都知道这里的问题是什么? PS。我只是在我的电脑上使用HBase + zookeeper独立
答案 0 :(得分:0)
Jps没有显示HMaster。它只显示了一些与HBase或ZooKeeper无关的进程。 这是我的hbase-site.xml:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///home/giovanni/HBase_store/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/giovanni/HBase_store/hbase</value>
</property>
</configuration>