File system needs to be upgraded. You have version null and I want version 7

安装hbase时候报错: File system needs to be upgraded. You have version null and I want version 7

注: 我安装的hbase依赖于hdfs, hdfs是有nameservice的。

解决方法:

1. 首先查看hbase的配置文件,hbase-site.xml, 找到hbase.rootdir的value值, 这个值里面的/hbase1 中存放了hbase的信息

   
        hbase.rootdir
        hdfs://nameservice1/hbase1
   


2. 在安装hmaster的机器上切换到hdfs用户

su hdfs

 3. 在hdfs用户下执行

hadoop fs -rm -r -skipTrash /hbase1

 删除/hbase1, 然后重启hbase master。

你可能感兴趣的:(File system needs to be upgraded. You have version null and I want version 7)