搭建完hbase 2.1後,執行create報:ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
解決思路:檢視hbase UI,發現所有RegionServer下線,檢視region日志,發現一直在報異常:java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.hbase.io.asyncfs.FanOutOneBlockAsyncDFSOutputHelper。
解決方法:在hbase-site.xml中添加以下配置後重新開機hbase解決。
<property>
<name>hbase.wal.provider</name>
<value>filesystem</value>
</property>