아래 에러가 떴을 때 해결한 방법을 여기 적는다.

 

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' 는 해보지 않아서 모르겠음.

+ Recent posts