Hbase scanner.next() 查询未执行结束线程超时异常

ResultScanner scanner = htable.getScanner(scan);
Result rs = scanner.next();
String line = "";
logger.info("DataScanner run rs:=" + rs);
while (rs != null) {
	line = new String(rs.getValue(family, column));
	datas.add(line);
	rs = scanner.next();
}

异常信息:

Exception in thread "Thread-8" java.lang.RuntimeException: java.util.concurrent.RejectedExecutionException: Task org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture@6646daec rejected from java.util.concurrent.ThreadPoolExecutor@2dc06b45[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 5295]
    at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:218)
    at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:327)
    at org.apache.hadoop.hbase.client.ClientScanner.loadCache(ClientScanner.java:410)
    at org.apache.hadoop.hbase.client.ClientScanner.next(ClientScanner.java:371)
    at com.bdpp.schedule.dao.QueryDataFromHbase$DataScanner.run(QueryDataFromHbase.java:297)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.RejectedExecutionException: Task org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture@6646daec rejected from java.util.concurrent.ThreadPoolExecutor@2dc06b45[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 5295]
    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
    at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
    at org.apache.hadoop.hbase.client.ResultBoundedCompletionService.submit(ResultBoundedCompletionService.java:171)
    at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.addCallsForCurrentReplica(ScannerCallableWithReplicas.java:322)
    at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:187)
    at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:62)
    at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:210)
    ... 5 more

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值