From a99b1b0ff457796a102658514c6cab83ebcff2e4 Mon Sep 17 00:00:00 2001 From: Ashish Singhi Date: Wed, 1 Oct 2014 10:46:36 +0530 Subject: [PATCH] HBASE-12049 Help for alter command is a bit confusing --- hbase-shell/src/main/ruby/shell/commands/alter.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hbase-shell/src/main/ruby/shell/commands/alter.rb b/hbase-shell/src/main/ruby/shell/commands/alter.rb index 7ef185f..14f393c 100644 --- a/hbase-shell/src/main/ruby/shell/commands/alter.rb +++ b/hbase-shell/src/main/ruby/shell/commands/alter.rb @@ -22,12 +22,14 @@ module Shell class Alter < Command def help return <<-EOF -Alter a table. Depending on the HBase setting ("hbase.online.schema.update.enable"), -the table must be disabled or not to be altered (see help 'disable'). -You can add/modify/delete column families, as well as change table -configuration. Column families work similarly to create; column family -spec can either be a name string, or a dictionary with NAME attribute. -Dictionaries are described on the main help command output. +Alter a table. If the "hbase.online.schema.update.enable" property is set to false, +then the table must be disabled (see help 'disable'). If the "hbase.online.schema.update.enable" property +is set to true, tables can be altered without disabling them first. +You can use the alter command to add, modify or delete column families +or change table configuration options. +Column families work in a similar way as the 'create' command. The column family +specification can either be a name string, or a dictionary with the NAME attribute. +Dictionaries are described in the output of the 'help' command, with no arguments. For example, to change or add the 'f1' column family in table 't1' from current value to keep a maximum of 5 cell VERSIONS, do: -- 1.9.2.msysgit.0