hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-4705) HBase won't initialize if /hbase is not present
Date Mon, 31 Oct 2011 04:58:32 GMT

    [ https://issues.apache.org/jira/browse/HBASE-4705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139918#comment-13139918

Harsh J commented on HBASE-4705:

I apologize for missing the whole activity on HBASE-4680.

I think a better fix would have been, instead of the HBASE-4680, to just catch other exceptions
(which is something I missed despite commenting).

This change is fine too, but has lead to HBASE-4705 scenarios. Could we revert HBASE-4680
and instead add a:

catch (Safemode) {
 return true;
} catch (Others) {

Kinda block, while still operating on the only dir guaranteed to exist (/ - root)? This is
so cause safemode is always checked first on the server side before anything else is returned.
The superuser check is not client side.
> HBase won't initialize if /hbase is not present
> -----------------------------------------------
>                 Key: HBASE-4705
>                 URL: https://issues.apache.org/jira/browse/HBASE-4705
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Harsh J
> {code}
> 2011-10-31 00:09:09,549 FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception.
Starting shutdown.
> java.io.FileNotFoundException: File does not exist: hdfs://C3S31:9000/hbase
>         at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:731)
>         at org.apache.hadoop.hbase.util.FSUtils.isInSafeMode(FSUtils.java:163)
>         at org.apache.hadoop.hbase.util.FSUtils.waitOnSafeMode(FSUtils.java:458)
>         at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:301)
>         at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:127)
>         at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:112)
>         at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:426)
>         at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:309)
>         at java.lang.Thread.run(Thread.java:662)
> 2011-10-31 00:09:09,551 INFO org.apache.hadoop.hbase.master.HMaster: Aborting
> 2011-10-31 00:09:09,551 DEBUG org.apache.hadoop.hbase.master.HMaster: Stopping service
> {code}
> Trunk won't start HBase unless /hbase is already present, after HBASE-4680 (and the silly
error I made in HBASE-4510).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message