JinHyuk Kim created HBASE-29916:
-----------------------------------
Summary: Correct alter_async help text examples
Key: HBASE-29916
URL: https://issues.apache.org/jira/browse/HBASE-29916
Project: HBase
Issue Type: Task
Components: shell
Reporter: JinHyuk Kim
Assignee: JinHyuk Kim
h1. Description
The shell help text for the {{alter_async}} command currently includes
incorrect examples that use {{alter}} instead of {{{}alter_async{}}}.
{code:java}
hbase:006:0> help 'alter_async'
...
To delete the 'f1' column family in table 'ns1:t1', do:
hbase> alter_async 'ns1:t1', NAME => 'f1', METHOD => 'delete'
or a shorter version:
hbase> alter_async 'ns1:t1', 'delete' => 'f1'
You can also change table-scope attributes like
MAX_FILESIZE,MEMSTORE_FLUSHSIZE, and READONLY.
For example, to change the max size of a family to 128MB, do:
hbase> alter 't1', METHOD => 'table_att', MAX_FILESIZE => '134217728'
# This should be alter_async !
There could be more than one alteration in one command:
hbase> alter 't1', {NAME => 'f1'}, {NAME => 'f2', METHOD => 'delete'}
# This should be alter_async !{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)