安裝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使用者
3. 在hdfs使用者下執行
删除/hbase1, 然後重新開機hbase master。