I've adjusted the jvm xmx in hbase-env.xml, now in hbase shell, count runs well.
But java client still crashes because : Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message was too large. May be malicious. Use CodedInputStream.setSizeLimit() to increase the size limit. I've browsed apache's jira, but still don't know how to call CodedInputStream.setSizeLimit() in client side. 在 16/10/19 下午6:38, Jean-Marc Spaggiari 写道: > Interesting. Can you bump the client heap size? How much do you have for > the client? > > JMS > > 2016-10-19 3:50 GMT-04:00 big data <[email protected]>: > >> Dear all, >> >> I've a hbase table, one row has a huge keyvalue, about 100M size. >> >> When I execute count table in hbase shell, hbase crash to bash, and >> display error like this: >> >> hbase(main):005:0> count 'table', CACHE=>10000 >> java.lang.OutOfMemoryError: Java heap space >> Dumping heap to java_pid17735.hprof ... >> Unable to create java_pid17735.hprof: 权限不够 >> # >> # java.lang.OutOfMemoryError: Java heap space >> # -XX:OnOutOfMemoryError="kill -9 %p" >> # Executing /bin/sh -c "kill -9 17735"... >> 已杀死 >> >> Meanwhile, my java client execute get operation from this table, it >> hangs for a long time. >> >> How can I adjust some parameters to support huge keyvalue? >> >> >> >>
