diff --git a/hbase-shell/src/main/ruby/shell/commands/compaction_state.rb b/hbase-shell/src/main/ruby/shell/commands/compaction_state.rb index 91bd79d..110258d 100644 --- a/hbase-shell/src/main/ruby/shell/commands/compaction_state.rb +++ b/hbase-shell/src/main/ruby/shell/commands/compaction_state.rb @@ -22,14 +22,14 @@ module Shell class CompactionState < Command def help <<-EOF - Gets compaction status for a table: + Gets compaction status (MAJOR, MAJOR_AND_MINOR, MINOR, NONE) for a table: hbase> compaction_state 'ns1:t1' hbase> compaction_state 't1' EOF end def command(table_name) - admin.getCompactionState(table_name) + formatter.row([admin.getCompactionState(table_name)]) end end end