You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (Created) (JIRA)" <ji...@apache.org> on 2011/12/03 22:20:39 UTC

[jira] [Created] (HBASE-4942) HMaster is unable to start of HFile V1 is used

HMaster is unable to start of HFile V1 is used
----------------------------------------------

                 Key: HBASE-4942
                 URL: https://issues.apache.org/jira/browse/HBASE-4942
             Project: HBase
          Issue Type: Bug
          Components: io
    Affects Versions: 0.92.0
            Reporter: Ted Yu
             Fix For: 0.92.0, 0.94.0


This was reported by HH Zhu (zhh200910@gmail.com)
If the following is specified in hbase-site.xml:
{code}
    <property>
        <name>hfile.format.version</name>
        <value>1</value>
    </property>
{code}
Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
You would see:
{code}
java.lang.NullPointerException
    at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
    at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
    at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
    at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
    at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
    at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
    at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
    at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
    at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
    at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
    at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
    at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
    at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
    at java.lang.Thread.run(Thread.java:619)
{code}
The above exception would lead to:
{code}
java.lang.RuntimeException: HMaster Aborted
    at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
    at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
    at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
{code}

In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
{code}
this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
{code}
When CacheConfig is instantiated, the following is called:
{code}
org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
{code}
Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.

The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
{code}
if (evictOnClose && cacheConf.isBlockCacheEnabled())
{code}

--
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

       

[jira] [Commented] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162657#comment-13162657 ] 

Hudson commented on HBASE-4942:
-------------------------------

Integrated in HBase-TRUNK-security #22 (See [https://builds.apache.org/job/HBase-TRUNK-security/22/])
    HBASE-4942  HMaster is unable to start of HFile V1 is used (Honghua Zhu)

tedyu : 
Files : 
* /hbase/trunk/CHANGES.txt
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderV1.java

                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942, HBase_0.94.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Updated] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "honghua zhu (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

honghua zhu updated HBASE-4942:
-------------------------------

    Attachment: HBase_0.94.0_HBASE-4942

HBASE-4942 patch for hbase-0.94.0(trunk)
                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942, HBase_0.94.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Commented] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Andrew Purtell (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162296#comment-13162296 ] 

Andrew Purtell commented on HBASE-4942:
---------------------------------------

+1
                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942, HBase_0.94.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Updated] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "honghua zhu (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

honghua zhu updated HBASE-4942:
-------------------------------

    Attachment: HBase_0.92.0_HBASE-4942

HBASE-4942 patch for hbase-0.92.0
                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Updated] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "honghua zhu (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

honghua zhu updated HBASE-4942:
-------------------------------

    Status: Patch Available  (was: In Progress)
    
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942, HBase_0.94.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Updated] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Ted Yu (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu updated HBASE-4942:
--------------------------

      Resolution: Fixed
    Hadoop Flags: Reviewed
          Status: Resolved  (was: Patch Available)
    
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942, HBase_0.94.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Commented] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Hadoop QA (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162297#comment-13162297 ] 

Hadoop QA commented on HBASE-4942:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12506021/HBase_0.94.0_HBASE-4942
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    -1 javadoc.  The javadoc tool appears to have generated -160 warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    -1 findbugs.  The patch appears to introduce 71 new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

     -1 core tests.  The patch failed these unit tests:
                       org.apache.hadoop.hbase.TestDrainingServer
                  org.apache.hadoop.hbase.TestFullLogReconstruction

Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/439//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/439//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/439//console

This message is automatically generated.
                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942, HBase_0.94.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Commented] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162766#comment-13162766 ] 

Hudson commented on HBASE-4942:
-------------------------------

Integrated in HBase-0.92-security #30 (See [https://builds.apache.org/job/HBase-0.92-security/30/])
    HBASE-4942  HMaster is unable to start of HFile V1 is used (honghua Zhu)

tedyu : 
Files : 
* /hbase/branches/0.92/CHANGES.txt
* /hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderV1.java

                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942, HBase_0.94.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Commented] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162591#comment-13162591 ] 

Hudson commented on HBASE-4942:
-------------------------------

Integrated in HBase-0.92 #170 (See [https://builds.apache.org/job/HBase-0.92/170/])
    HBASE-4942  HMaster is unable to start of HFile V1 is used (honghua Zhu)

tedyu : 
Files : 
* /hbase/branches/0.92/CHANGES.txt
* /hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderV1.java

                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942, HBase_0.94.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Commented] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162619#comment-13162619 ] 

Hudson commented on HBASE-4942:
-------------------------------

Integrated in HBase-TRUNK #2516 (See [https://builds.apache.org/job/HBase-TRUNK/2516/])
    HBASE-4942  HMaster is unable to start of HFile V1 is used (Honghua Zhu)

tedyu : 
Files : 
* /hbase/trunk/CHANGES.txt
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderV1.java

                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942, HBase_0.94.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Commented] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Ted Yu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162270#comment-13162270 ] 

Ted Yu commented on HBASE-4942:
-------------------------------

You're right Lars.
                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Assigned] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Ted Yu (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu reassigned HBASE-4942:
-----------------------------

    Assignee: honghua zhu
    
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Commented] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Ted Yu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162546#comment-13162546 ] 

Ted Yu commented on HBASE-4942:
-------------------------------

Integrated to 0.92 branch and TRUNK.

Thanks for the patch, Honghua.

Thanks for the review Andy.
                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: HBase_0.92.0_HBASE-4942, HBase_0.94.0_HBASE-4942
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Work started] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "honghua zhu (Work started) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on HBASE-4942 started by honghua zhu.

> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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

       

[jira] [Commented] (HBASE-4942) HMaster is unable to start of HFile V1 is used

Posted by "Lars Hofhansl (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162269#comment-13162269 ] 

Lars Hofhansl commented on HBASE-4942:
--------------------------------------

Similar to HBASE-4673 (but for v1)?
                
> HMaster is unable to start of HFile V1 is used
> ----------------------------------------------
>
>                 Key: HBASE-4942
>                 URL: https://issues.apache.org/jira/browse/HBASE-4942
>             Project: HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: honghua zhu
>             Fix For: 0.92.0, 0.94.0
>
>
> This was reported by HH Zhu (zhh200910@gmail.com)
> If the following is specified in hbase-site.xml:
> {code}
>     <property>
>         <name>hfile.format.version</name>
>         <value>1</value>
>     </property>
> {code}
> Clear the hdfs directory "hbase.rootdir" so that MasterFileSystem.bootstrap() is executed.
> You would see:
> {code}
> java.lang.NullPointerException
>     at org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(HFileReaderV1.java:358)
>     at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.close(StoreFile.java:1083)
>     at org.apache.hadoop.hbase.regionserver.StoreFile.closeReader(StoreFile.java:570)
>     at org.apache.hadoop.hbase.regionserver.Store.close(Store.java:441)
>     at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:782)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:717)
>     at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:688)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:390)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:356)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:128)
>     at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:113)
>     at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:435)
>     at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:314)
>     at java.lang.Thread.run(Thread.java:619)
> {code}
> The above exception would lead to:
> {code}
> java.lang.RuntimeException: HMaster Aborted
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
>     at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
>     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1512)
> {code}
> In org.apache.hadoop.hbase.master.HMaster.HMaster(Configuration conf), we have:
> {code}
> this.conf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f);
> {code}
> When CacheConfig is instantiated, the following is called:
> {code}
> org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(Configuration conf)
> {code}
> Since "hfile.block.cache.size" is 0.0, instantiateBlockCache() would return null, resulting in blockCache field of CacheConfig to be null.
> When master closes Root region, org.apache.hadoop.hbase.io.hfile.HFileReaderV1.close(boolean evictOnClose) would be called. cacheConf.getBlockCache() returns null, leading to master abort.
> The following should be called in HFileReaderV1.close(), similar to the code in HFileReaderV2.close():
> {code}
> if (evictOnClose && cacheConf.isBlockCacheEnabled())
> {code}

--
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