Hello Everyone,
I've been trying to set up a local instance of HBase using instructions from
http://wiki.apache.org/hadoop/Hbase/10Minutes. I've redefined hbase.rootdir
to point to an empty local filesystem directory. When I try to start HBase,
I get the following:
$ ./start-hbase.sh
starting master, logging to
/home/mbautin/test/hbase/hbase-0.19.3/bin/../logs/hbase-mbautin-master-localhost.out
WARNING! File system needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase
migrate' script.
localhost: starting regionserver, logging to
/home/mbautin/test/hbase/hbase-0.19.3/bin/../logs/hbase-mbautin-regionserver-localhost.out
and the master does not start, leaving the following message in the log:
2009-07-24 18:47:21,820 ERROR org.apache.hadoop.hbase.master.HMaster: Can
not start master
org.apache.hadoop.hbase.util.FileSystemVersionException: File system needs
to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate' script.
at
org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:129)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:212)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:156)
at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:96)
at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:78)
at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:1013)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1057)
However, when I run "hbase migrate upgrade", I get
$ ./hbase migrate upgrade
09/07/24 18:49:30 INFO util.Migrate: Verifying that file system is
available..
09/07/24 18:49:30 INFO util.Migrate: Verifying that HBase is not
running....Trys ten times to connect to running master
09/07/24 18:49:32 INFO ipc.HBaseClass: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 0 time(s).
09/07/24 18:49:33 INFO ipc.HBaseClass: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 1 time(s).
09/07/24 18:49:34 INFO ipc.HBaseClass: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 2 time(s).
09/07/24 18:49:35 INFO ipc.HBaseClass: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 3 time(s).
09/07/24 18:49:36 INFO ipc.HBaseClass: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 4 time(s).
09/07/24 18:49:37 INFO ipc.HBaseClass: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 5 time(s).
09/07/24 18:49:38 INFO ipc.HBaseClass: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 6 time(s).
09/07/24 18:49:39 INFO ipc.HBaseClass: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 7 time(s).
09/07/24 18:49:40 INFO ipc.HBaseClass: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 8 time(s).
09/07/24 18:49:41 INFO ipc.HBaseClass: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 9 time(s).
09/07/24 18:49:41 INFO util.Migrate: Starting upgrade
09/07/24 18:49:41 FATAL util.Migrate: Upgrade failed
java.io.IOException: File system version file hbase.version does not exist.
No upgrade possible. See
http://wiki.apache.org/hadoop/Hbase/HowToMigratefor more information.
at org.apache.hadoop.hbase.util.Migrate.run(Migrate.java:175)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.hbase.util.Migrate.main(Migrate.java:357)
which is reasonable, because the rootdir is empty. Please let me know how to
initiailize the HBase data directory correctly before starting HBase locally
for the first time.
Thanks,
Mikhail