From 3d5de7ecbb9a9eb4876a679928169fa40248824c Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Tue, 29 Jan 2013 23:06:36 +0000 Subject: [PATCH] HBASE-7674 add shell documentation for HBASE-7571 git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1440209 13f79535-47bb-0310-9956-ffa450edef68 --- hbase-server/src/main/ruby/shell/commands/alter.rb | 5 +++++ hbase-server/src/main/ruby/shell/commands/create.rb | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/ruby/shell/commands/alter.rb b/hbase-server/src/main/ruby/shell/commands/alter.rb index f46e17d68ae..5784ad12148 100644 --- a/hbase-server/src/main/ruby/shell/commands/alter.rb +++ b/hbase-server/src/main/ruby/shell/commands/alter.rb @@ -62,6 +62,11 @@ the framework to understand how to load the coprocessor classes: [coprocessor jar file location] | class name | [priority] | [arguments] +You can also set configuration settings specific to this table or column family: + + hbase> alter 't1', CONFIGURATION => {'hbase.hregion.scan.loadColumnFamiliesOnDemand' => 'true'} + hbase> alter 't1', {NAME => 'f2', CONFIGURATION => {'hbase.hstore.blockingStoreFiles' => '10'}} + You can also remove a table-scope attribute: hbase> alter 't1', METHOD => 'table_att_unset', NAME => 'MAX_FILESIZE' diff --git a/hbase-server/src/main/ruby/shell/commands/create.rb b/hbase-server/src/main/ruby/shell/commands/create.rb index e5a9c51df6a..e59a5cb65d0 100644 --- a/hbase-server/src/main/ruby/shell/commands/create.rb +++ b/hbase-server/src/main/ruby/shell/commands/create.rb @@ -34,7 +34,8 @@ Examples: hbase> # The above in shorthand would be the following: hbase> create 't1', 'f1', 'f2', 'f3' hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true} - + hbase> create 't1', {NAME => 'f1', CONFIGURATION => {'hbase.hstore.blockingStoreFiles' => '10'}} + Table configuration options can be put at the end. Examples: @@ -44,6 +45,7 @@ Examples: hbase> # Optionally pre-split the table into NUMREGIONS, using hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname) hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'} + hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit', CONFIGURATION => {'hbase.hregion.scan.loadColumnFamiliesOnDemand' => 'true'}} You can also keep around a reference to the created table: