天天看点

搭建hbase2.1时异常

搭建完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>

继续阅读