版本选择
hbase默认配置
github 源码:hbase/hbase-common/src/main/resources/hbase-default.xml
异常
我使用 hadoop3.3.3 + hbase2.4.12
1-Could not start ZK at requested port of 2181
由于一开始用的内置zookeeper,后改为外置的,导致启动冲突了,改成集群
hbase.cluster.distributed true
2shell 提示:ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not run yet.
查看hbase log:WARN [RS-EventLoopGroup-1-1] concurrent.DefaultPromise: An exception was thrown by org.apache.hadoop.hbase.io.asyncfs.FanOutOneBlockAsyncDFSOutputHelper$4.operationComplete()
java.lang.IllegalArgumentException: object is not an instance of declaring class
解决办法:
在hbase-site.xml中添加如下配置, 重启HBase