You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Matteo Bertozzi (JIRA)" <ji...@apache.org> on 2013/02/01 00:07:15 UTC

[jira] [Commented] (HBASE-7723) Remove NN URI from ZK splitlogs.

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

Matteo Bertozzi commented on HBASE-7723:
----------------------------------------

{code}int indexOfLogsDir = lf.getPath().toString().indexOf(HConstants.HREGION_LOGDIR_NAME){code}
I bet this will not work in the tests, where there's no .logs directory but just a /test/abcdef-test-root-dir, also I can immagine strange cases where the server name is called something like srv.logs.something.xyz and similar...

something like new Path(FSUtils.getRootDir(conf), HConstants.HREGION_LOGDIR_NAME) maybe is better (even if some test can fail, since everyone can specify a path but not set a rootdir)

other ideas?
                
> Remove NN URI from ZK splitlogs.
> --------------------------------
>
>                 Key: HBASE-7723
>                 URL: https://issues.apache.org/jira/browse/HBASE-7723
>             Project: HBase
>          Issue Type: Bug
>          Components: hadoop2, master
>    Affects Versions: 0.92.0
>            Reporter: Kevin Odell
>            Assignee: Himanshu Vashishtha
>         Attachments: HBASE-7723-94.patch
>
>
> When moving to HDFS HA or removing HA we end up changing the NN namespace.  This can cause the HMaster not to start up fully due to trying to split phantom HLogs pointing to the wrong FS - java.lang.IllegalArgumentException: Wrong FS: error messages.  The HLogs in question might not even be on HDFS anymore.  You have to go in a manually clear out the ZK splitlogs directory to get HBase to properly boot up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira