hbase cluster region recovery

dear HBase developers, please… fix the documentation… http://hbase.apache.org/book/apbs04.html

[root@yallayalla ~]# sudo -u hbase hbase org.apache.hadoop.hbase.util.OfflineMetaRepair
Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/util/OfflineMetaRepair
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.util.OfflineMetaRepair
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.apache.hadoop.hbase.util.OfflineMetaRepair. Program will exit.

instead…

13/01/31 15:27:52 INFO wal.HLog: main.logSyncer exiting
13/01/31 15:27:53 INFO util.HBaseFsck: Success! .META. table rebuilt.
13/01/31 15:27:53 INFO util.HBaseFsck: Old -ROOT- and .META. are moved into hdfs://yallayalla:8020/hbase/.hbck/hbase-1359646067507
[root@yallayalla ~]# sudo -u hbase hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair

2 thoughts on “hbase cluster region recovery

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s