You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2013/01/30 00:06:36 UTC

svn commit: r1440209 - in /hbase/trunk/hbase-server/src/main/ruby/shell/commands: alter.rb create.rb

Author: stack
Date: Tue Jan 29 23:06:36 2013
New Revision: 1440209

URL: http://svn.apache.org/viewvc?rev=1440209&view=rev
Log:
HBASE-7674 add shell documentation for HBASE-7571

Modified:
    hbase/trunk/hbase-server/src/main/ruby/shell/commands/alter.rb
    hbase/trunk/hbase-server/src/main/ruby/shell/commands/create.rb

Modified: hbase/trunk/hbase-server/src/main/ruby/shell/commands/alter.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/ruby/shell/commands/alter.rb?rev=1440209&r1=1440208&r2=1440209&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/ruby/shell/commands/alter.rb (original)
+++ hbase/trunk/hbase-server/src/main/ruby/shell/commands/alter.rb Tue Jan 29 23:06:36 2013
@@ -62,6 +62,11 @@ the framework to understand how to load 
 
   [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'

Modified: hbase/trunk/hbase-server/src/main/ruby/shell/commands/create.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/ruby/shell/commands/create.rb?rev=1440209&r1=1440208&r2=1440209&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/ruby/shell/commands/create.rb (original)
+++ hbase/trunk/hbase-server/src/main/ruby/shell/commands/create.rb Tue Jan 29 23:06:36 2013
@@ -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: