hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Lucene-hadoop Wiki] Trivial Update of "Hbase/HbaseShell" by udanax
Date Thu, 13 Sep 2007 10:37:25 GMT
Dear Wiki user,

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

The following page has been changed by udanax:
http://wiki.apache.org/lucene-hadoop/Hbase/HbaseShell

------------------------------------------------------------------------------
   * ~-'''BLOOMFILTER''' specifies which bloom filter to use for the column family. By default,
none of the bloom filters is used. You can specify the options in two ways: with '''VECTOR_SIZE'''
and '''NUM_HASH''', or with '''NUM_ENTRIES'''. '''VECTOR_SIZE''' specifies the number of elements
in the vector, and '''NUM_HASH''' specifies the number of hash functions to use; With '''NUM_ENTRIES''',
you  specify only the approximated number of entries in the column, and '''VECTOR_SIZE'''
and '''NUM_HASH''' are automatically determined.-~
  
  {{{
- HBase > CREATE Movie (
+ HBase > CREATE TABLE Movie (
      --> year, length, inColor, studioName, vote, producer)
      --> NUM_VERSIONS 10; 
  
- HBase > create table webtable (
+ HBase > CREATE TABLE webtable (
      --> contents in_memory max_versions=10 compression=block,
      --> anchor max_length=256 bloomfilter=counting                                  
      --> vector_size=1000000 num_hash=4);
@@ -132, +132 @@

   * ~-'''INTO FILE''' outputs the returned rows into the specified file. For '''SELECT INTO'''
another table, see '''INSERT INTO SELECT''' below.-~
  
  {{{
- Hbase > select studioName: from movieLog_table where row = 'Star Wars';
+ Hbase > SELECT studioName: FROM movieLog_table WHERE row = 'Star Wars';
  +------+----------------------+----------------------+----------------------+
  | No.  | Row                  | Column               | Cell                 |
  +------+----------------------+----------------------+----------------------+
@@ -141, +141 @@

  
  Successfully print out the selected data.(0.05 sec)
  
- Hbase > select 'studioName:YoungGu Art' from movieLog_table where row = 'D-War';
+ Hbase > SELECT 'studioName:YoungGu Art' FROM movieLog_table WHERE row = 'D-War';
  }}}
  
  === Insert data into a table ===

Mime
View raw message