问题
2024-03-07 03:44:56,289 INFO [hconnection-0xfa36558-metaLookup-shared–pool2-t1] client.RpcRetryingCaller (RpcRetryingCaller.java:callWithRetries(147)) - Call exception, tries=10, retries=31, started=38689 ms ago, cancelled=false, msg=org.apache.hadoop.hbase.NotServingRegionException: Region hbase:meta,1 is not online on slave2,16020,1709754205754
原因
启动了hbase自带的Zookeeper和启动了自己安装的Zookeeper。导致出了问题。,因为hbase是搭建在Zookeeper上的,启动hbase时会自动启动zookeeper。
解决方法
关闭hbase自带的zookeeper。
找到hbase-env.sh补充以下内容,
export HBASE_MANAGES_ZK=false
注意所有节点都需要补充