启动kylin时报错

测试时启动kylin报错Failed to find metadata store by url: kylin_metadata@hbase和一堆
org.apache.hadoop.hbase.ipc.RemoteWithExtrasException(org.apache.hadoop.hbase.NotServingRegionException): org.apache.hadoop.hbase.NotServingRegionException: hbase:meta,1 is not online on hadoop105,16020,1603268879438

ServingRegionException: org.apache.hadoop.hbase.NotServingRegionException: hbase:meta,,1 is not online on hadoop105,16020,1603269880380
	at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:3272)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:3249)
	at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegion(RSRpcServices.java:1414)
	at org.apache.hadoop.hbase.regionserver.RSRpcServices.get(RSRpcServices.java:2429)
	at org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:41998)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:413)
	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:130)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:324)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:304)

出现bug一定要冷静分析下自己捅下的日志。我的hbase都正常启动。
首先报错Failed to find metadata store by url: kylin_metadata@hbase 可以分析出并不是kylin的原因,而是启动kylin时找不到元数据,kylin的元数据存在hbase中,那就很有可能是我的hbase有问题。
接下来在报出一条Failed to find metadata store by url: kylin_metadata@hbase后报出一堆

org.apache.hadoop.hbase.ipc.RemoteWithExtrasException(org.apache.hadoop.hbase.NotServingRegionException): org.apache.hadoop.hbase.NotServingRegionException: hbase:meta,,1 is not online on hadoop105,16020,1603268879438

可能是hbase找不到region的文件,无奈删除了zookeeper下的hbase节点数据,然后重启hbase,再启动kylin正常。具体步骤:
1.切换到zookeeper的bin目录,执行zkCli.sh
2.输入ls / 查看节点
3.执行rmr /hbase 删除hbase的记录(这里会提示你用deleteall,不用管),看节点删除没
4.退出zookeeper 重启hbase,zookeeper,hdfs,yarn。再启动kylin,成功,问题解决。

参考

©️2020 CSDN 皮肤主题: 1024 设计师:上身试试 返回首页