아래 에러가 떴을 때 해결한 방법을 여기 적는다.
org.apache.hadoop.hbase.util.FileSystemVersionException: hbase.version file is missing. Is your hbase.rootdir valid? You can restore hbase.version file by running 'HBCK2 filesystem -fix'.
1. slave 노드들의 HResionServers process 들을 kill 한다.
jps 로 확인할 수 있고, kill -9 [process ID] 로 kill이 가능하다.
2. hbase.rootDir 의 내용을 모조리 삭제한다.
rootDir 는 hbase-site.xml 에 있는 path 이다. 이를테면 내 경우는 아래와 같다.
<name>hbase.rootdir</name> <value>hdfs://master:9000/hbase</value>
|
hdfs dfs -rm -r /hbase/*
위의 명령어로 모두 삭제했다.
3. bin/start-hbase.sh 명령어로 hbase 를 start 한다.
위의 에러에 나오는 'HBCK2 filesystem -fix' 는 해보지 않아서 모르겠음.
'HBase' 카테고리의 다른 글
[HBase] 테이블 partition 개수와 block size 조절하는 방법 (0) | 2019.11.21 |
---|---|
[HBase] table 의 partition 개수 조절하기 (0) | 2019.11.20 |
[HBase] ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing 에러 해결 방법 (0) | 2019.11.14 |
[HBase] tsv, csv file load 하는 방법 (0) | 2019.11.06 |
[HBase] Spark 와 연동해서 데이터 읽는 방법 - hortonworks shc (0) | 2019.11.01 |