hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r781263 - in /hadoop/hbase/trunk: CHANGES.txt bin/hirb.rb
Date Wed, 03 Jun 2009 05:11:48 GMT
Author: stack
Date: Wed Jun  3 05:11:48 2009
New Revision: 781263

URL: http://svn.apache.org/viewvc?rev=781263&view=rev
Log:
HBASE-1478 Remove hbase master options from shell

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/bin/hirb.rb

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=781263&r1=781262&r2=781263&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Wed Jun  3 05:11:48 2009
@@ -303,6 +303,7 @@
    HBASE-1474  Add zk attributes to list of attributes 
                in master and regionserver UIs
    HBASE-1448  Add a node in ZK to tell all masters to shutdown
+   HBASE-1478  Remove hbase master options from shell (Nitay Joffe via Stack)
 
   OPTIMIZATIONS
    HBASE-1412  Change values for delete column and column family in KeyValue

Modified: hadoop/hbase/trunk/bin/hirb.rb
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/bin/hirb.rb?rev=781263&r1=781262&r2=781263&view=diff
==============================================================================
--- hadoop/hbase/trunk/bin/hirb.rb (original)
+++ hadoop/hbase/trunk/bin/hirb.rb Wed Jun  3 05:11:48 2009
@@ -31,17 +31,12 @@
 HBase Shell command-line options:
  format        Formatter for outputting results: console | html. Default: console
  format-width  Width of table outputs. Default: 110 characters.
- master        HBase master shell should connect to: e.g --master=example:60000
 HERE
-master = nil
 found = []
 format = 'console'
 format_width = 110
 for arg in ARGV
-  if arg =~ /^--master=(.+)/i
-    master = $1
-    found.push(arg)
-  elsif arg =~ /^--format=(.+)/i
+  if arg =~ /^--format=(.+)/i
     format = $1
     if format =~ /^html$/i
       raise NoMethodError.new("Not yet implemented")
@@ -70,10 +65,9 @@
 @formatter = Formatter::Console.new(STDOUT, format_width)
 # TODO, etc.  @formatter = Formatter::XHTML.new(STDOUT)
 
-# Setup the HBase module.  Create a configuration.  If a master, set it.
+# Setup the HBase module.  Create a configuration.
 # Turn off retries in hbase and ipc.  Human doesn't want to wait on N retries.
 @configuration = org.apache.hadoop.hbase.HBaseConfiguration.new()
-@configuration.set("hbase.master", master) if master
 @configuration.setInt("hbase.client.retries.number", 5)
 @configuration.setInt("ipc.client.connect.max.retries", 3)
 



Mime
View raw message