HBASE-12049 Help for alter command is a bit confusing (Ashish Singhi)

This commit is contained in:
Misty Stanley-Jones 2014-10-01 16:23:48 +10:00
parent 3a4be7f2ac
commit 50a3019255
1 changed files with 11 additions and 6 deletions

View File

@ -22,12 +22,17 @@ module Shell
class Alter < Command class Alter < Command
def help def help
return <<-EOF return <<-EOF
Alter a table. Depending on the HBase setting ("hbase.online.schema.update.enable"), Alter a table. If the "hbase.online.schema.update.enable" property is set to
the table must be disabled or not to be altered (see help 'disable'). false, then the table must be disabled (see help 'disable'). If the
You can add/modify/delete column families, as well as change table "hbase.online.schema.update.enable" property is set to true, tables can be
configuration. Column families work similarly to create; column family altered without disabling them first. Altering enabled tables has caused problems
spec can either be a name string, or a dictionary with NAME attribute. in the past, so use caution and test it before using in production.
Dictionaries are described on the main help command output.
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 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: current value to keep a maximum of 5 cell VERSIONS, do: