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: