hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Y. SREENIVASULU REDDY (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-13320) 'hbase.bucketcache.size' configuration value is not correct in hbase-default.xml
Date Fri, 27 Mar 2015 16:12:55 GMT

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

Y. SREENIVASULU REDDY commented on HBASE-13320:
-----------------------------------------------

[~ram_krish]

*hbase.bucketcache.size* this configuration will use when we configured this *hbase.bucketcache.ioengine*

In my case  *hbase.bucketcache.ioengine=heap*
then if configure *hbase.bucketcache.size=0*
then regionserver is failing with the following exception.
{noformat}
2015-03-27 20:45:57,470 INFO  [regionserver/VM1:16040] regionserver.HRegionServer: STOPPED:
Failed initialization
2015-03-27 20:45:57,470 ERROR [regionserver/VM1:16040] regionserver.HRegionServer: Failed
init
java.lang.IllegalStateException: bucketCacheSize <= 0; Check hbase.bucketcache.size setting
and/or server java heap size
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.getL2(CacheConfig.java:491)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(CacheConfig.java:536)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.<init>(CacheConfig.java:213)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1318)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:874)
        at java.lang.Thread.run(Thread.java:745)
2015-03-27 20:45:57,473 FATAL [regionserver/VM1:16040] regionserver.HRegionServer: ABORTING
region server VM1,16040,1427469355207: Unhandled: Region server startup failed
java.io.IOException: Region server startup failed
        at org.apache.hadoop.hbase.regionserver.HRegionServer.convertThrowableToIOE(HRegionServer.java:2879)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1337)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:874)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: bucketCacheSize <= 0; Check hbase.bucketcache.size
setting and/or server java heap size
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.getL2(CacheConfig.java:491)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(CacheConfig.java:536)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.<init>(CacheConfig.java:213)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1318)
        ... 2 more
2015-03-27 20:45:57,473 FATAL [regionserver/VM1:16040] regionserver.HRegionServer: RegionServer
abort: loaded coprocessors are: []
{noformat}

if configure *hbase.bucketcache.size=1*
then regionserver is failing with the following exception.
{noformat}
2015-03-27 20:50:14,469 ERROR [regionserver/VM1:16040] hfile.CacheConfig: Can't instantiate
bucket cache
org.apache.hadoop.hbase.io.hfile.bucket.BucketAllocatorException: Bucket allocator size too
small - must have room for at least 14 buckets
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketAllocator.<init>(BucketAllocator.java:309)
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.<init>(BucketCache.java:231)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.getL2(CacheConfig.java:513)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(CacheConfig.java:536)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.<init>(CacheConfig.java:213)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1318)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:874)
        at java.lang.Thread.run(Thread.java:745)
2015-03-27 20:50:14,471 INFO  [regionserver/VM1:16040] regionserver.HRegionServer: STOPPED:
Failed initialization
2015-03-27 20:50:14,471 ERROR [regionserver/VM1:16040] regionserver.HRegionServer: Failed
init
java.lang.RuntimeException: org.apache.hadoop.hbase.io.hfile.bucket.BucketAllocatorException:
Bucket allocator size too small - must have room for at least 14 buckets
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.getL2(CacheConfig.java:517)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(CacheConfig.java:536)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.<init>(CacheConfig.java:213)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:1318)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:874)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.hadoop.hbase.io.hfile.bucket.BucketAllocatorException: Bucket allocator
size too small - must have room for at least 14 buckets
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketAllocator.<init>(BucketAllocator.java:309)
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.<init>(BucketCache.java:231)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.getL2(CacheConfig.java:513)
        ... 5 more
2015-03-27 20:50:14,472 FATAL [regionserver/VM1:16040] regionserver.HRegionServer: ABORTING
region server VM1,16040,1427469612267: Unhandled: Region server startup failed
java.io.IOException: Region server startup failed
{noformat}

> 'hbase.bucketcache.size' configuration value is not correct in hbase-default.xml 
> ---------------------------------------------------------------------------------
>
>                 Key: HBASE-13320
>                 URL: https://issues.apache.org/jira/browse/HBASE-13320
>             Project: HBase
>          Issue Type: Bug
>          Components: hbase
>    Affects Versions: 2.0.0
>            Reporter: Y. SREENIVASULU REDDY
>            Assignee: Y. SREENIVASULU REDDY
>             Fix For: 2.0.0
>
>         Attachments: HBASE-13320.patch, HBASE-v2-13320.patch
>
>
> In  hbase-default.xml  file 
> * 'hbase.bucketcache.size' is not correct
> We either specify it as a float or in MB's and the default value that is mentioned is
never used
> {code}
> <property>
> <name>hbase.bucketcache.size</name>
> <value>65536</value>
> <source>hbase-default.xml</source>
> </property>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message