Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # dev >> local-master-backup.sh problem


Copy link to this message
-
local-master-backup.sh problem
Hi,

I get this

$ bin/local-master-backup.sh start 1
starting master, logging to
/var/lib/hbase/logs/hbase-larsgeorge-1-master-de1-app-mbp-2.out
Usage: Master [opts] start|stop
 start  Start Master. If local mode, start Master and RegionServer in same
JVM
 stop   Start cluster shutdown; Master signals RegionServer shutdown
 where [opts] are:
   --minServers=<servers>    Minimum RegionServers needed to host user
tables.
   --backup                  Master should start in backup mode
i.e. it is missing something. The local-regionservers.sh works, but not the
master script.

The log has

2011-06-25 10:26:34,864 ERROR
org.apache.hadoop.hbase.master.HMasterCommandLine: Could not parse:
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -D
        at org.apache.commons.cli.Parser.processOption(Parser.java:363)
        at org.apache.commons.cli.Parser.parse(Parser.java:199)
        at org.apache.commons.cli.Parser.parse(Parser.java:85)
        at
org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:73)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at
org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
        at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1346)

Darn, could be related to https://issues.apache.org/jira/browse/HBASE-3895 ?

Testing this... ah, this fixes it:

Index: bin/local-master-backup.sh
==================================================================--- bin/local-master-backup.sh  (revision 1139502)
+++ bin/local-master-backup.sh  (working copy)
@@ -21,9 +21,9 @@
   DN=$2
   export HBASE_IDENT_STRING="$USER-$DN"
   HBASE_MASTER_ARGS="\
-    --backup \
     -D hbase.master.port=`expr 60000 + $DN` \
-    -D hbase.master.info.port=`expr 60010 + $DN`"
+    -D hbase.master.info.port=`expr 60010 + $DN` \
+    --backup"
   "$bin"/hbase-daemon.sh $1 master $HBASE_MASTER_ARGS
 }

Lars