当前位置:网站首页>Problem: filesystemversionexception: you have version null and I want version 8
Problem: filesystemversionexception: you have version null and I want version 8
2022-07-24 09:13:00 【Bolin】
Problem description :
First installation HBase success , Use and hbase shell After some command line operations , It is found that the data storage directory is set in the configuration, but the corresponding path is not created locally , close HBase start-up HBase, Create the corresponding location , Problems arise !
Looking for problems :
1、 start-up hbase success , And HMaster And HRegionServer Successful launch , as follows :
[[email protected] hadoop-2.8.1]# jps
3136 NameNode
106355 QuorumPeerMain
3990 SecondaryNameNode
3496 DataNode
121672 HMaster
122875 Jps
121933 HRegionServer
4957 ResourceManager
2、 Get into hbase shell
Use list_namepace test , Problems arise , Do not display the normal database .
3、 Find the reason yourself ,jps View in progress HMaster Hang up , only HRegionServer process .
4、 stay hbase Installation directory logs In the catalog hbase-root-master-hadoop.log The log file error information is as follows :
2022-07-19 17:58:26,358 FATAL [hadoop:16000.activeMasterManager] master.HMaster: Unhandled exception. Starting shutdown.
org.apache.hadoop.hbase.util.FileSystemVersionException: HBase file layout needs to be upgraded. You have version null and I want version 8. Consult http://hbase.apache.org/book.html for further information about upgrading HBase. Is your hbase.rootdir valid? If so, you may need to run 'hbase hbck -fixVersionFile'.
at org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:678)
at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:462)
at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:153)
at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:128)
at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:638)
at org.apache.hadoop.hbase.master.HMaster.access$500(HMaster.java:184)
at org.apache.hadoop.hbase.master.HMaster$1.run(HMaster.java:1729)
at java.lang.Thread.run(Thread.java:748)
5、 The log shows HBase file layout needs to be upgraded, The file system actually requires upgrading , This is very unscientific . Follow his prompts to run you may need to run 'hbase hbck -fixVersionFile', Still report a mistake .
See the hint :You have version null...
6、 see HDFS File on
Directory before problem solving :
[[email protected] logs]# hdfs dfs -ls /hbase
Found 3 items
drwxr-xr-x - root supergroup 0 2022-07-19 19:30 /hbase/.tmp
drwxr-xr-x - root supergroup 0 2022-07-19 17:06 /hbase/MasterProcWALs
drwxr-xr-x - root supergroup 0 2022-07-19 17:08 /hbase/data
The directory after the problem is solved :
[[email protected] ~]# hdfs dfs -ls /hbase
Found 7 items
drwxr-xr-x - root supergroup 0 2022-07-19 19:37 /hbase/.tmp
drwxr-xr-x - root supergroup 0 2022-07-19 19:38 /hbase/MasterProcWALs
drwxr-xr-x - root supergroup 0 2022-07-19 19:37 /hbase/WALs
drwxr-xr-x - root supergroup 0 2022-07-19 19:37 /hbase/data
-rw-r--r-- 1 root supergroup 42 2022-07-19 19:37 /hbase/hbase.id
-rw-r--r-- 1 root supergroup 7 2022-07-19 19:37 /hbase/hbase.version
drwxr-xr-x - root supergroup 0 2022-07-19 19:57 /hbase/oldWALs
Question why :
7、 This main file is missing /hbase/hbase.version
resolvent :
1、 Delete or remove the damaged file , I suggest the following methods ( If there are still problems , It can also guarantee to restore the original file )
[[email protected] hadoop-2.8.1]# hdfs dfs -mv /hbase /hbase.bk
2、 Confirm to kill Hbase Of HRegionServer process (HMaster This is because the problem did not appear )
kill -9 xxxx (xxxx For process number )
3、 Restart HBase
[[email protected] hadoop-2.8.1]# start-hbase.sh
[[email protected] hadoop-2.8.1]# jps
3136 NameNode
106355 QuorumPeerMain
3990 SecondaryNameNode
122742 Jps
3496 DataNode
121672 HMaster
121933 HRegionServer
4957 ResourceManager
4、 It can be said that the problem has been solved ?( Just restart HBase, But if there is data before, it will be lost , Therefore, the following steps should be carried out ) If there is no data or beginners , You can end this step .
5、 Above mentioned 1 Step mentioned , Data not deleted , Just as a backup file , Then recover .
hdfs df -cp /hbase/hbase.version /hbase.bk/
hdfs dfs -rmr /hbase
hdfs dfs -mv /hbase.bk /hbase
And then restart again HBase that will do ,Hbase Start splitting hlogs, Data can be recovered
边栏推荐
- 链表——19. 删除链表的倒数第 N 个结点
- Vim: use tags file to extend the automatic code completion function of YCM for the third-party library of C language
- xtrabackup 实现mysql的全量备份与增量备份
- 如何通过NFT GO,来简要判断、分析NFT市场?
- Asyncdata cross domain error after nuxt route switching
- How to open the port number of the server, and the corresponding port of common network services
- Re6:读论文 LeSICiN: A Heterogeneous Graph-based Approach for Automatic Legal Statute Identification fro
- How to configure env.js in multiple environments in uni app
- Vector control of permanent magnet synchronous motor (I) -- mathematical model
- 科目1-2
猜你喜欢

【我的创作一周年纪念日】爱情是需要被纪念的,创作也是

Houdini official HDA sidefx labs installation

The detailed process of building discuz forum is easy to understand

web安全入门-开源防火墙Pfsense安装配置

Nuxt 路由切换后 asyncData 跨域报错

链表——24. 两两交换链表中的节点

代码随想录笔记_链表_25K个一组翻转链表

【汇编语言实战】一元二次方程ax2+bx+c=0求解(含源码与过程截屏,可修改参数)
![[example of URDF exercise based on ROS] use of four wheeled robot and camera](/img/c5/babce5c6921b9cb54f018dc83a3b87.jpg)
[example of URDF exercise based on ROS] use of four wheeled robot and camera

Data center: started in Alibaba and started in Daas
随机推荐
Six pictures show you why TCP shakes three times?
gnuplot软件学习笔记
Little dolphin "transformed" into a new intelligent scheduling engine, which can be explained in simple terms in the practical development and application of DDS
科目1-2
Description of MATLAB functions
华为无线设备安全策略配置命令
Taking advantage of the momentum, oceanbase promotes the lean growth of digital payment
DSP development, using CCS software to establish engineering and burning
Protocol buffers 的问题和滥用
Promise basic summary
Super complete summary: how to operate files in go language
What is the component customization event we are talking about?
Open source summer interview | learn with problems, Apache dolphin scheduler, Wang Fuzheng
Makefile变量及动态库静态库
Scheme and software analysis of dual computer hot standby system "suggestions collection"
Configuration of uni app page.json title bar
【我的创作一周年纪念日】爱情是需要被纪念的,创作也是
Android system security - 5.3-apk V2 signature introduction
Getting started with sorting - insert sorting and Hill sorting
[assembly language practice] solve the unary quadratic equation ax2+bx+c=0 (including source code and process screenshots, parameters can be modified)