diff --git a/hbase-shell/src/main/ruby/shell/commands/get_rsgroup.rb b/hbase-shell/src/main/ruby/shell/commands/get_rsgroup.rb index ce4be71..ad8a0e3 100644 --- a/hbase-shell/src/main/ruby/shell/commands/get_rsgroup.rb +++ b/hbase-shell/src/main/ruby/shell/commands/get_rsgroup.rb @@ -32,12 +32,11 @@ EOF end def command(group_name) - now = Time.now formatter.header(['GROUP INFORMATION']) rsgroup_admin.get_rsgroup(group_name) do |s| formatter.row([s]) end - formatter.footer(now) + formatter.footer() end end end diff --git a/hbase-shell/src/main/ruby/shell/commands/get_server_rsgroup.rb b/hbase-shell/src/main/ruby/shell/commands/get_server_rsgroup.rb index a689a7c..9884cd1 100644 --- a/hbase-shell/src/main/ruby/shell/commands/get_server_rsgroup.rb +++ b/hbase-shell/src/main/ruby/shell/commands/get_server_rsgroup.rb @@ -30,10 +30,9 @@ EOF end def command(server) - now = Time.now - group_name = rsgroup_admin.getRSGroupOfServer(server).getName + group_name = rsgroup_admin.get_rsgroup_of_server(server).getName formatter.row([group_name]) - formatter.footer(now, 1) + formatter.footer(1) end end end diff --git a/hbase-shell/src/main/ruby/shell/commands/get_table_rsgroup.rb b/hbase-shell/src/main/ruby/shell/commands/get_table_rsgroup.rb index d15cffa..650cda5 100644 --- a/hbase-shell/src/main/ruby/shell/commands/get_table_rsgroup.rb +++ b/hbase-shell/src/main/ruby/shell/commands/get_table_rsgroup.rb @@ -30,11 +30,10 @@ EOF end def command(table) - now = Time.now group_name = rsgroup_admin.get_rsgroup_of_table(table).getName formatter.row([group_name]) - formatter.footer(now, 1) + formatter.footer(1) end end end diff --git a/hbase-shell/src/main/ruby/shell/commands/list_rsgroups.rb b/hbase-shell/src/main/ruby/shell/commands/list_rsgroups.rb index 6ea1d45..cabe84b 100644 --- a/hbase-shell/src/main/ruby/shell/commands/list_rsgroups.rb +++ b/hbase-shell/src/main/ruby/shell/commands/list_rsgroups.rb @@ -34,7 +34,6 @@ EOF end def command(regex = '.*') - now = Time.now formatter.header(['GROUPS']) regex = /#{regex}/ unless regex.is_a?(Regexp) @@ -43,7 +42,7 @@ EOF formatter.row([group]) end - formatter.footer(now, list.size) + formatter.footer(list.size) end end end