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.

java.lang.IndexOutOfBoundsException: Not enough readable bytes

Highlighted

java.lang.IndexOutOfBoundsException: Not enough readable bytes

Contributor

I checked that in hbase-site.xml we have a property of

<property>

<name>hbase.rpc.protection</name>

<value>privacy</value>

</property>

I am getting the new error.

2017-02-15 14:05:20,900 ERROR [AsyncHBase I/O Worker #1] RegionClient: Unexpected exception from downstream on [id: 0xa34c6fdf, /130.5.106.4:45943 => /130.5.106.11:16020] java.lang.IndexOutOfBoundsException: Not enough readable bytes - Need 132, maximum is 120 at org.jboss.netty.buffer.AbstractChannelBuffer.checkReadableBytes(AbstractChannelBuffer.java:668) ~[netty-3.9.4.Final.jar:na] at org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(AbstractChannelBuffer.java:338) ~[netty-3.9.4.Final.jar:na] at org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(AbstractChannelBuffer.java:344) ~[netty-3.9.4.Final.jar:na] at org.hbase.async.SecureRpcHelper.wrap(SecureRpcHelper.java:235) ~[asynchbase-1.7.2.jar:na] at org.hbase.async.RegionClient.encode(RegionClient.java:1385) ~[asynchbase-1.7.2.jar:na] at org.hbase.async.RegionClient.sendRpc(RegionClient.java:998) ~[asynchbase-1.7.2.jar:na] at org.hbase.async.RegionClient.sendQueuedRpcs(RegionClient.java:1141) ~[asynchbase-1.7.2.jar:na] at org.hbase.async.RegionClient.becomeReady(RegionClient.java:664) ~[asynchbase-1.7.2.jar:na] at org.hbase.async.SecureRpcHelper96.sendRPCHeader(SecureRpcHelper96.java:190) ~[asynchbase-1.7.2.jar:na] at org.hbase.async.SecureRpcHelper96.handleResponse(SecureRpcHelper96.java:148) ~[asynchbase-1.7.2.jar:na] at org.hbase.async.RegionClient.decode(RegionClient.java:1416) ~[asynchbase-1.7.2.jar:na] at org.hbase.async.RegionClient.decode(RegionClient.java:88) ~[asynchbase-1.7.2.jar:na] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) ~[netty-3.9.4.Final.jar:na] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) ~[netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.9.4.Final.jar:na] at org.hbase.async.RegionClient.handleUpstream(RegionClient.java:1223) ~[asynchbase-1.7.2.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88) [netty-3.9.4.Final.jar:na] at org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(IdleStateAwareChannelHandler.java:36) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.9.4.Final.jar:na] at org.jboss.netty.handler.timeout.IdleStateHandler.messageReceived(IdleStateHandler.java:294) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [netty-3.9.4.Final.jar:na] at org.hbase.async.HBaseClient$RegionClientPipeline.sendUpstream(HBaseClient.java:3121) [asynchbase-1.7.2.jar:na] at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [netty-3.9.4.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.9.4.Final.jar:na] at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.9.4.Final.jar:na] at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.9.4.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_111] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_111] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_111]

Please help me on this.

Thanks ℜgards

Shyam gurram

3 REPLIES 3

Re: java.lang.IndexOutOfBoundsException: Not enough readable bytes

Super Collaborator

Are you using OpenTSDB? There is a known issue:

https://github.com/OpenTSDB/asynchbase/issues/153

The only thing I can suggest at the moment is to switch to 'authentication' instead of privacy until the issue is not resolved.

Re: java.lang.IndexOutOfBoundsException: Not enough readable bytes

Rising Star

@shyam gurram Information you provided is insufficient. Plz share what operation you are trying? Is cluster secured? Mode of access ?

Re: java.lang.IndexOutOfBoundsException: Not enough readable bytes

Contributor

@Ajay

Thanks for your reply. Actually I am installing opentsdb on one of the cluster. This cluster is secured cluster. The hbase configuration in that cluster are secure. Please find the property which is present in hbase-site.xml . I have seen a article in Goolge forum, in that they said that it is bug and they come up with a solution.

https://groups.google.com/forum/#!searchin/opentsdb/java.lang.IndexOutOfBoundsException|sort:relevan...

[sg865w@blpd214 ~]$ cd /opt/app/opentsdb/opentsdb-2.3.0/build

[sg865w@blpd214 build]$ sudo -su zkeeper

[zkeeper@blpd214 build]$ ./tsdb tsd --config=/opt/app/opentsdb/opentsdb-2.3.0/src/opentsdb.conf --zkbasedir=/hbase-secure 2017-02-15 15:15:04,189 INFO [main] TSDMain: Starting

2017-02-15 15:15:04,192 INFO [main] TSDMain: net.opentsdb.tools 2.3.0 built at revision cac608a (MINT)

2017-02-15 15:15:04,192 INFO [main] TSDMain: Built on 2016/12/29 13:57:15 +0000 by root@centos.localhost:/home/hobbes/opentsdb_OFFICIAL/build

2017-02-15 15:15:04,196 INFO [main] Config: Successfully loaded configuration file: /opt/app/opentsdb/opentsdb-2.3.0/src/opentsdb.conf

2017-02-15 15:15:04,250 INFO [main] Config: Successfully loaded configuration file: /opt/app/opentsdb/opentsdb-2.3.0/src/opentsdb.conf

2017-02-15 15:15:04,344 WARN [main] PluginLoader: Unable to locate any plugins of the type: net.opentsdb.query.filter.TagVFilter

2017-02-15 15:15:04,360 INFO [main] ZooKeeper: Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT

2017-02-15 15:15:04,360 INFO [main] ZooKeeper: Client environment:host.name=blpd214.bhdc.att.com

2017-02-15 15:15:04,360 INFO [main] ZooKeeper: Client environment:java.version=1.7.0_111 2017-02-15 15:15:04,360 INFO [main] ZooKeeper: Client environment:java.vendor=Oracle Corporation

2017-02-15 15:15:04,360 INFO [main] ZooKeeper: Client environment:java.home=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/jre

2017-02-15 15:15:04,360 INFO [main] ZooKeeper: Client environment:java.class.path=/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jexl/commons-logging-1.1.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/guava/guava-18.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/slf4j/log4j-over-slf4j-1.7.7.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/logback/logback-classic-1.0.13.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/logback/logback-core-1.0.13.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jackson/jackson-annotations-2.4.3.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jackson/jackson-core-2.4.3.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jackson/jackson-databind-2.4.3.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/javacc/javacc-6.1.2.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jexl/commons-jexl-2.1.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jgrapht/jgrapht-core-0.9.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/netty/netty-3.9.4.Final.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/slf4j/slf4j-api-1.7.7.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/suasync/async-1.4.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/apache/commons-math3-3.4.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/hbase/asynchbase-1.7.2.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/protobuf/protobuf-java-2.5.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/zookeeper/zookeeper-3.4.6.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/tsdb-2.3.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/../src

2017-02-15 15:15:04,360 INFO [main] ZooKeeper: Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

2017-02-15 15:15:04,361 INFO [main] ZooKeeper: Client environment:java.io.tmpdir=/tmp

2017-02-15 15:15:04,361 INFO [main] ZooKeeper: Client environment:java.compiler=<NA>

2017-02-15 15:15:04,361 INFO [main] ZooKeeper: Client environment:os.name=Linux

2017-02-15 15:15:04,361 INFO [main] ZooKeeper: Client environment:os.arch=amd64

2017-02-15 15:15:04,361 INFO [main] ZooKeeper: Client environment:os.version=2.6.32-642.6.2.el6.x86_64

2017-02-15 15:15:04,361 INFO [main] ZooKeeper: Client environment:user.name=zkeeper

2017-02-15 15:15:04,361 INFO [main] ZooKeeper: Client environment:user.home=/home/zkeeper

2017-02-15 15:15:04,361 INFO [main] ZooKeeper: Client environment:user.dir=/opt/app/opentsdb/opentsdb-2.3.0/build 2017-02-15 15:15:04,361 INFO [main] ZooKeeper: Initiating client connection, connectString=blpd214.bhdc.att.com:2181 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@53cd7dc7

2017-02-15 15:15:04,372 INFO [main] HBaseClient: Need to find the -ROOT- region

2017-02-15 15:15:04,394 INFO [main-SendThread(blpd214.bhdc.att.com:2181)] Login: successfully logged in.

2017-02-15 15:15:04,395 INFO [Thread-1] Login: TGT refresh thread started.

2017-02-15 15:15:04,399 INFO [main-SendThread(blpd214.bhdc.att.com:2181)] ZooKeeperSaslClient: Client will use GSSAPI as SASL mechanism.

2017-02-15 15:15:04,405 INFO [Thread-1] Login: TGT valid starting at: Wed Feb 15 13:24:23 CST

2017-02-15 15:15:04,405 INFO [Thread-1] Login: TGT expires: Thu Feb 16 13:24:23 CST 2017 2017-02-15 15:15:04,406 INFO [Thread-1] Login: TGT refresh sleeping until: Thu Feb 16 08:55:02 CST 2017 2017-02-15 2017-02-15 15:15:04,635 ERROR [AsyncHBase I/O Worker #1] RegionClient: Unexpected exception from downstream on [id: 0xa673b30d, /130.5.106.4:52229 => /130.5.106.11:16020] java.lang.IndexOutOfBoundsException: Not enough readable bytes - Need 132, maximum is 120 at org.jboss.netty.buffer.AbstractChannelBuffer.checkReadableBytes(AbstractChannelBuffer.java:668) ~[netty-3.9.4.Final.jar:na] at org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(AbstractChannelBuffer.java:338) ~[netty-

I can't submit the entore error. The remaining error is show in the above comment. Please help me on this

Thanks & Regards

Shyam Gurram

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