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