HBASE-1478 Remove hbase master options from shell

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@781263 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-06-03 05:11:48 +00:00
parent 60f4df2133
commit d3f7947323
2 changed files with 3 additions and 8 deletions

View File

@ -303,6 +303,7 @@ Release 0.20.0 - Unreleased
HBASE-1474 Add zk attributes to list of attributes HBASE-1474 Add zk attributes to list of attributes
in master and regionserver UIs in master and regionserver UIs
HBASE-1448 Add a node in ZK to tell all masters to shutdown 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 OPTIMIZATIONS
HBASE-1412 Change values for delete column and column family in KeyValue HBASE-1412 Change values for delete column and column family in KeyValue

View File

@ -31,17 +31,12 @@ cmdline_help = <<HERE # HERE document output as shell usage
HBase Shell command-line options: HBase Shell command-line options:
format Formatter for outputting results: console | html. Default: console format Formatter for outputting results: console | html. Default: console
format-width Width of table outputs. Default: 110 characters. format-width Width of table outputs. Default: 110 characters.
master HBase master shell should connect to: e.g --master=example:60000
HERE HERE
master = nil
found = [] found = []
format = 'console' format = 'console'
format_width = 110 format_width = 110
for arg in ARGV for arg in ARGV
if arg =~ /^--master=(.+)/i if arg =~ /^--format=(.+)/i
master = $1
found.push(arg)
elsif arg =~ /^--format=(.+)/i
format = $1 format = $1
if format =~ /^html$/i if format =~ /^html$/i
raise NoMethodError.new("Not yet implemented") raise NoMethodError.new("Not yet implemented")
@ -70,10 +65,9 @@ end
@formatter = Formatter::Console.new(STDOUT, format_width) @formatter = Formatter::Console.new(STDOUT, format_width)
# TODO, etc. @formatter = Formatter::XHTML.new(STDOUT) # 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. # Turn off retries in hbase and ipc. Human doesn't want to wait on N retries.
@configuration = org.apache.hadoop.hbase.HBaseConfiguration.new() @configuration = org.apache.hadoop.hbase.HBaseConfiguration.new()
@configuration.set("hbase.master", master) if master
@configuration.setInt("hbase.client.retries.number", 5) @configuration.setInt("hbase.client.retries.number", 5)
@configuration.setInt("ipc.client.connect.max.retries", 3) @configuration.setInt("ipc.client.connect.max.retries", 3)