hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Trivial Update of "Hbase/Shell" by stack
Date Fri, 03 Oct 2008 16:08:57 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The following page has been changed by stack:
http://wiki.apache.org/hadoop/Hbase/Shell

The comment on the change is:
Updated the help output.

------------------------------------------------------------------------------
  
  == Commands ==
  {{{
+ hbase(main):001:0> help
+ HBASE SHELL COMMANDS:
   alter     Alter column family schema;  pass table name and a dictionary
             specifying new column family schema. Dictionaries are described
             below in the GENERAL NOTES section.  Dictionary must include name
-            of column family to alter.  For example, to change the 'f1' column
+            of column family to alter.  For example, 
-            family in table 't1' from defaults to instead keep a maximum of 5
-            cell VERSIONS, do:
+            
+            To change or add the 'f1' column family in table 't1' from defaults
+            to instead keep a maximum of 5 cell VERSIONS, do:
+            hbase> alter 't1', {NAME => 'f1', VERSIONS => 5}
+            
+            To delete the 'f1' column family in table 't1', do:
+            hbase> alter 't1', {NAME => 'f1', METHOD => 'delete'}
  
-            hbase> alter 't1', {NAME => 'f1', VERSIONS => 5}
- 
-  count     Count the number of rows in a table. This operation may take a LONG
+   count    Count the number of rows in a table. This operation may take a LONG
             time (Run '$HADOOP_HOME/bin/hadoop jar hbase.jar rowcount' to run a
             counting mapreduce job). Current count is shown every 1000 rows by
             default. Count interval may be optionally specified. Examples:
- 
+            
             hbase> count 't1'
             hbase> count 't1', 100000
  
@@ -45, +50 @@

             hbase> create 't1', 'f1', 'f2', 'f3'
             hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000,
\
               BLOCKCACHE => true}
+ 
   describe  Describe the named table: e.g. "hbase> describe 't1'"
  
   delete    Put a delete cell value at specified table/row/column and optionally
@@ -72, +78 @@

             hbase> get 't1', 'r1', {COLUMN => 'c1'}
             hbase> get 't1', 'r1', {COLUMN => ['c1', 'c2', 'c3']}
             hbase> get 't1', 'r1', {COLUMN => 'c1', TIMESTAMP => ts1}
-            hbase> get 't1', 'r1', {COLUMN => 'c1', TIMESTAMP => ts1, VERSIONS =
4}
+            hbase> get 't1', 'r1', {COLUMN => 'c1', TIMESTAMP => ts1, \
+              VERSIONS => 4}
  
   list      List all tables in hbase
  

Mime
View raw message