1、CallTimeoutException

Caused by: java.net.SocketTimeoutException: callTimeout=60000, callDuration=60101: Call to host:60020 failed on local exception: org.apache.hadoop.hbase.ipc.CallTimeoutException: Call id=51265499, waitTime=60001, operationTimeout=60000 expired. row 'Z1WS3398372561KFTXBJVK' on table 'xxxx:xxxx_execution_result' at region=xxxx:xxxx_execution_result,Z1SQ6815381751HDPMHXES:099017,1593659782440.33ab884014275eaca0493eef8155c7e4., hostname=host,60020,1650769247022, seqNum=40219287

,at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:171)
,at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:65)
,... 4 more

Caused by: java.io.IOException: Call to host:60020 failed on local exception: org.apache.hadoop.hbase.ipc.CallTimeoutException: Call id=51265499, waitTime=60001, operationTimeout=60000 expired.

定位:

内网环境中有hbase机器性能,机器反应慢,导致超时,因为在使用过程当中由于超时致使了一些操做失败。

所以需调整超时时间,默认为60秒,在配置文件 hbase-site.xml中:、

<property>
   <name>hbase.rpc.timeout</name>
   <value>600000</value>
</property>
<property>
   <name>hbase.client.operation.timeout</name>
   <value>600000</value>
</property>
<property>
   <name>hbase.client.scanner.timeout.period</name>
   <value>600000</value>
</property>
<property>
   <name>hbase.regionserver.lease.period</name>
   <value>600000</value>
</property>
<property>
   <name>phoenix.query.timeoutMs</name>
   <value>600000</value>
</property>
<property>
   <name>phoenix.query.keepAliveMs</name>
   <value>600000</value>
</property>
<property>
   <name>hbase.client.ipc.pool.type</name>
   <value>RoundRobinPool</value>
</property>
<property>
   <name>hbase.client.ipc.pool.size</name>
   <value>10</value>
</property>

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐