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

Posted lxl

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的信息

    <property>
        <name>hbase.rootdir</name>
        <value>hdfs://nameservice1/hbase1</value>
    </property>

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的主要内容,如果未能解决你的问题,请参考以下文章

Win10蓝屏提示Your PC/Device needs to be repaired怎么办

Win10蓝屏提示Your PC/Device needs to be repaired怎么办

Win10蓝屏提示Your PC/Device needs to be repaired怎么办?

you need to be root to perform this command

‘chromedriver' executable needs to be in PATH

'chromedriver' executable needs to be in PATH