下载了老师的Hbase代码执行报错了
用命令行可以正常执行,但是通过代码执行报错了。
相关代码:
2021-10-30 23:22:14,589 [hconnection-0x32eff876-metaLookup-shared--pool4-t1] [org.apache.hadoop.fs.FileSystem] [WARN] - Cannot load filesystem: java.util.ServiceConfigurationError: org.apache.hadoop.fs.FileSystem: Provider org.apache.hadoop.hdfs.DistributedFileSystem could not be instantiated 2021-10-30 23:22:14,589 [hconnection-0x32eff876-metaLookup-shared--pool4-t1] [org.apache.hadoop.fs.FileSystem] [WARN] - java.lang.NoClassDefFoundError: org/apache/hadoop/fs/PathHandle 2021-10-30 23:22:14,589 [hconnection-0x32eff876-metaLookup-shared--pool4-t1] [org.apache.hadoop.fs.FileSystem] [WARN] - java.lang.ClassNotFoundException: org.apache.hadoop.fs.PathHandle 2021-10-30 23:22:18,801 [hconnection-0x32eff876-metaLookup-shared--pool4-t1] [org.apache.hadoop.hbase.client.RpcRetryingCallerImpl] [INFO] - Call exception, tries=6, retries=16, started=5043 ms ago, cancelled=false, msg=org.apache.hadoop.hbase.NotServingRegionException: hbase:meta,,1 is not online on bigdata03,16020,1635607329163 at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:3387) at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:3364) at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegion(RSRpcServices.java:1467) at org.apache.hadoop.hbase.regionserver.RSRpcServices.newRegionScanner(RSRpcServices.java:3067) at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:3400) at org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:42278) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:418) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:338) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:318) ... java.net.SocketTimeoutException: callTimeout=60000, callDuration=69438: org.apache.hadoop.hbase.NotServingRegionException: hbase:meta,,1 is not online on bigdata03,16020,1635607329163 at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:3387) at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:3364) at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegion(RSRpcServices.java:1467) at org.apache.hadoop.hbase.regionserver.RSRpcServices.newRegionScanner(RSRpcServices.java:3067) at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:3400) at org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:42278) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:418) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:338) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:318) row 'student,jack,99999999999999' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=bigdata02,16020,1635607329152, seqNum=-1 at org.apache.hadoop.hbase.client.RpcRetryingCallerImpl.callWithRetries(RpcRetryingCallerImpl.java:159) at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:80) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
14
收起
正在回答
1回答
根据错误信息分析,应该是bigdata03节点有问题了,确认一下hadoop集群是否正常
最好重启一下hbase集群和hadoop集群,然后确认一下是否还有这个问题,
如果还有问题估计是集群中的数据文件丢失了,可以加一下慕课网qq群,明天远程看一下,加群方式在第1周1-1小节里面有
大数据工程师 2024 版
- 参与学习 1151 人
- 提交作业 5960 份
- 解答问题 1144 个
不用Java初级内容充数!不用与大数据岗位无关内容占课时!我们做的就是“精华版”大数据课程
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星