本帖最后由 夏洛特猫 于 2015-5-8 16:39 编辑
在这先谢谢大家了,忙活了两天问题还是没解决,望大家能帮忙解决,
实验环境:
节点数:2个 1主1从
hadoop:hadoop-2.2.0 zookeeper:zookeeper-3.4.5 Hbase: hbase-0.98.5-hadoop2
对应参数:
Hbase:
hbase-env.sh:
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
export JAVA_HOME=/usr/java/jdk1.7.0
export HBASE_HOME=/home/hbase-0.98.5-hadoop2
export HADOOP_HOME=/home/hadoop-2.2.0
export HBASE_CLASSPATH=/home/hadoop-2.2.0/etc/hadoop
export PATH=$PATH:$HBASE_HOME/bin
export HBASE_MANAGES_ZK=false
hbase-site:
<property>
<name>hbase.rootdir</name>
<value>hdfs://172.18.11.1:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.tmp.dir</name>
<value>file:/usr/hbase/tmp</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>file:/usr/hbase/zookeeper</value>
</property>
<property>
<name>hbase.zookeeper.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.master</name>
<value>hdfs://172.18.11.1:60000</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>172.18.11.1,172.18.11.5</value>
</property>
在本地对应的/usr 路径下 已经建立了hbase目录,并在其中建立了zookeeper和tmp目录
启动情况:
hadoop可以正常启动
zookeeper可以正常启动
Hbases 启动后主节点HMaster自动消失,并且./stop-hbase.sh时发现 从节点的HRegionServer并不能关闭
主节点报错信息如下:
org.apache.hadoop.hbase.catalog.CatalogTracker@25f7d3f2013-12-12 09:16:59,827 FATAL [master:master:60000] master.HMaster: Unhandled exception. Starting shutdown.
java.lang.IllegalArgumentException: .META. no longer exists. The table has been renamed to hbase:meta
at org.apache.hadoop.hbase.TableName.valueOf(TableName.java:292)
at org.apache.hadoop.hbase.zookeeper.ZKTable.populateTableStates(ZKTable.java:82)
at org.apache.hadoop.hbase.zookeeper.ZKTable.<init>(ZKTable.java:69)
at org.apache.hadoop.hbase.master.AssignmentManager.<init>(AssignmentManager.java:281)
at org.apache.hadoop.hbase.master.HMaster.initializeZKBasedSystemTrackers(HMaster.java:677)
at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:809)
at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:603)
at java.lang.Thread.run(Thread.java:662)
INFO [master:master:60000] master.HMaster: HMaster main thread exiting
2013-12-12 09:16:59,878 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:2787)
这个错误信息在贴吧已经看到了解决方法:
1.清除tmp目录,不知道什么原因我的/usr/hbase/ 下面的zookeeper和tmp中在启动后并没有内容存储进去,同时也做不了清楚zookeeper的data这一步
2.确定版本,我的这些版本应该是正确的
3.执行权限 权限是root的高级用户应该没问题
4.时间,各个节点的时间已经同步5.hadoop 安全模式已经关闭
希望大家能够帮忙解决下,特别感谢
|
|