最近R通过thrift连接hbase经常报出如下错误,该问题一般是连接超时引起的,可通过修改配置文件解决。
2016-10-09 14:33:58,573 WARN [thrift-worker-13] thrift.ThriftServerRunner$HBaseHandler: Can't get the location
org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the location
at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:308)
at org.apache.hadoop.hbase.client.Scanne

R语言使用thrift连接HBase时遇到连接超时问题,这通常由配置不当引起。解决方案是修改hbase-site.xml,将连接超时时间设置为5小时。重启thrift和regionserver服务后,问题仍然存在,可能需要进一步增加超时时间。
最低0.47元/天 解锁文章
2579

被折叠的 条评论
为什么被折叠?



