If HMaster is started after NN without starting DN in Hbase 090.2 then HMaster
is not able to start due to AlreadyCreatedException for /hbase/hbase.version
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Key: HBASE-3800
URL: https://issues.apache.org/jira/browse/HBASE-3800
Project: HBase
Issue Type: Bug
Components: master
Affects Versions: 0.90.2
Reporter: gaojinchao
It reproduces when HMaster is started for the first time and NN is started
without starting DN
Hmaster logs:
2011-04-19 16:49:09,208 DEBUG
org.apache.hadoop.hbase.master.ActiveMasterManager: A master is now available
2011-04-19 16:49:09,400 WARN org.apache.hadoop.hbase.util.FSUtils: Version file
was empty, odd, will try to set it.
2011-04-19 16:51:09,674 WARN org.apache.hadoop.hdfs.DFSClient: DataStreamer
Exception: org.apache.hadoop.ipc.RemoteException: java.io.IOException: File
/hbase/hbase.version could only be replicated to 0 nodes, instead of 1
...........
2011-04-19 16:51:09,674 WARN org.apache.hadoop.hdfs.DFSClient: Error Recovery
for block null bad datanode[0] nodes == null
2011-04-19 16:51:09,674 WARN org.apache.hadoop.hdfs.DFSClient: Could not get
block locations. Source file "/hbase/hbase.version" - Aborting...
2011-04-19 16:51:09,674 WARN org.apache.hadoop.hbase.util.FSUtils: Unable to
create version file at hdfs://C4C1:9000/hbase, retrying:
org.apache.hadoop.ipc.RemoteException: java.io.IOException: File
/hbase/hbase.version could only be replicated to 0 nodes, instead of 1
...........
2011-04-19 16:56:19,695 WARN org.apache.hadoop.hbase.util.FSUtils: Unable to
create version file at hdfs://C4C1:9000/hbase, retrying:
org.apache.hadoop.ipc.RemoteException:
org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException: failed to create
file /hbase/hbase.version for DFSClient_hb_m_C4C1.site:60000_1303202948768 on
client 157.5.100.1 because current leaseholder is trying to recreate file.
org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException: failed to create
file /hbase/hbase.version for DFSClient_hb_m_C4C1.site:60000_1303202948768 on
client 157.5.100.1 because current leaseholder is trying to recreate file.
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal(FSNamesystem.java:1068)
....
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira