Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HBase region servers not starting after Ambari upgrade from 2.0 to 2.1 with error - Caused by: java.lang.NumberFormatException: For input string

HBase region servers not starting after Ambari upgrade from 2.0 to 2.1 with error - Caused by: java.lang.NumberFormatException: For input string

Rising Star

Hi,

I have recently upgraded Ambari from 2.0.2 to 2.1

Region server started failing after restart with the below error

java.lang.RuntimeException: Failed construction of Regionserver: class org.apache.hadoop.hbase.regionserver.HRegionServer
        at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2486)
        at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:61)
        at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:85)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:2501)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2484)
        ... 5 more
Caused by: java.lang.NumberFormatException: For input string: "18432m"
        at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1250)
        at java.lang.Float.parseFloat(Float.java:452)
        at org.apache.hadoop.conf.Configuration.getFloat(Configuration.java:1257)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.instantiateBlockCache(CacheConfig.java:424)
        at org.apache.hadoop.hbase.io.hfile.CacheConfig.<init>(CacheConfig.java:192)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:649)
        ... 10 more

There were no changes done to HBase configurations except adding Hbase-Ranger-plugin-Enabled: yes.

I have never seen this error before.

I checked Zookeeper to see whta is the value for /hbase-secure/rs. I dont see anything there.

Please help

3 REPLIES 3
Highlighted

Re: HBase region servers not starting after Ambari upgrade from 2.0 to 2.1 with error - Caused by: java.lang.NumberFormatException: For input string

Rising Star

Check the value of hbase.bucketcache.size.

After upgrading Ambari to 2.1 , hbase.bucketcache.size value in habse-site.xmls has an "m" added to it preventing region servers from starting. Just check once.

Re: HBase region servers not starting after Ambari upgrade from 2.0 to 2.1 with error - Caused by: java.lang.NumberFormatException: For input string

Re: HBase region servers not starting after Ambari upgrade from 2.0 to 2.1 with error - Caused by: java.lang.NumberFormatException: For input string

Mentor

@Venkata Sridhar Gangavarapu are you still having issues with this? Can you accept best answer or provide your own solution?

Don't have an account?
Coming from Hortonworks? Activate your account here