Return-Path: Delivered-To: apmail-lucene-hadoop-commits-archive@locus.apache.org Received: (qmail 32454 invoked from network); 26 Jul 2007 13:54:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jul 2007 13:54:18 -0000 Received: (qmail 80199 invoked by uid 500); 26 Jul 2007 13:54:19 -0000 Delivered-To: apmail-lucene-hadoop-commits-archive@lucene.apache.org Received: (qmail 80166 invoked by uid 500); 26 Jul 2007 13:54:19 -0000 Mailing-List: contact hadoop-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-commits@lucene.apache.org Received: (qmail 80156 invoked by uid 99); 26 Jul 2007 13:54:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 06:54:19 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 06:54:17 -0700 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 56B7259A07 for ; Thu, 26 Jul 2007 13:53:57 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: hadoop-commits@lucene.apache.org Date: Thu, 26 Jul 2007 13:53:57 -0000 Message-ID: <20070726135357.25438.90742@eos.apache.org> Subject: [Lucene-hadoop Wiki] Trivial Update of "Hbase/HbaseShell" by udanax X-Virus-Checked: Checked by ClamAV on apache.org 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 The comment on the change is: add some commands ------------------------------------------------------------------------------ ||Describe ||'''Describe''' command provides information about the columnfamilies in a table.[[BR]][[BR]]~-''DESC table_name;''-~ || ||Create ||'''Create''' command creates a new table.[[BR]][[BR]]~-''CREATE table_name[[BR]]COLUMNFAMILIES('columnfamily_name1'[, 'columnfamily_name2', ...])[[BR]][LIMIT=limitNumber_of_Version];''-~ || ||Drop ||'''Drop''' command drops columnfamilies in a table or tables.[[BR]][[BR]]~-''DROP table_name1[, table_name2, ...] or columnfamily_name1[, columnfamily_name2, ...];''-~ || + ||Substitute || '''Substitute''' expression to [A~Z][[BR]][[BR]]~-''X = Matrix(table_name, columnfamily_name);''-~|| + ||Store ||'''STORE''' command will store results to specified table. [[BR]][[BR]]~-''A = Table('movieLog_table'); [[BR]]B = A.Selection('length' > 100); [[BR]]STORE B TO X run_style;''-~ || ||Clear ||<99%>'''Clear''' the screen.[[BR]][[BR]]~-''CLEAR;''-~ || ||Exit ||<99%>'''Exit''' from the current shell script.[[BR]][[BR]]~-''EXIT;''-~ || And, Commands to manually manipulate data on more detailed parts. @@ -51, +53 @@ = Example Of Hbase Shell Use = == Create the table in a HBase == + {{{ - ~-''CREATE movieLog_table + HBase > CREATE movieLog_table - [[BR]]COLUMNFAMILIES('year', 'length', 'inColor', 'studioName', 'vote', 'producer') + --> COLUMNFAMILIES('year', 'length', 'inColor', 'studioName', 'vote', 'producer') - [[BR]]LIMIT=1;''-~ + --> LIMIT=1; - ~-''CREATE movieStar_table + HBase > CREATE movieStar_table - [[BR]]COLUMNFAMILIES('biography', 'filmography', 'gender', 'birthDate') + --> COLUMNFAMILIES('biography', 'filmography', 'gender', 'birthDate') - [[BR]]LIMIT=1;''-~ + --> LIMIT=1; + }}} == Insert data into a table == + {{{ - ~-''INSERT movieLog_table ('year:', 'length:', 'inColor:', 'studioName:', 'vote:user_1', 'producer:') + HBase > INSERT movieLog_table ('year:', 'length:', 'inColor:', 'studioName:', 'vote:user_1', 'producer:') - [[BR]]VALUES ('1977', '124', 'true', 'Fox', '5', 'George Lucas') + --> VALUES ('1977', '124', 'true', 'Fox', '5', 'George Lucas') - [[BR]]WHERE row='Star Wars';''-~ + --> WHERE row='Star Wars'; - ~-''INSERT movieStar_table ('biography:', 'filmography:Star Wars', 'gender:', 'birthDate:') + HBase > INSERT movieStar_table ('biography:', 'filmography:Star Wars', 'gender:', 'birthDate:') - [[BR]]VALUES ('blah~', 'starring', 'male', 'March 31, 1971') + --> VALUES ('blah~', 'starring', 'male', 'March 31, 1971') - [[BR]]WHERE row='Ewan Gordon Mc.Gregor';''-~ + --> WHERE row='Ewan Gordon Mc.Gregor';''-~ - + }}} == Show all data in a table == - ~-''SELECT movieLog_table;''-~ + {{{ + HBase > SELECT movieLog_table; + }}} ||Row Key ||<-12>Column Families || ||title ||<-2> year ||<-2>length ||<-2>inColor ||<-2> studioName ||<-2> vote ||<-2> producer || @@ -82, +89 @@ ||Wayne's World ||year: || 1992 ||length: || 95 ||inColor: || true ||studioName: || Paramount || vote:''user_2'' || 3 || producer: || Penelope Spheeris || || || || || || || || || || || vote:''user_3'' || 4 || || || - ~-''SELECT movieStar_table;''-~ + {{{ + HBase > SELECT movieStar_table; + }}} ||Row Key ||<-8>Column Families || ||starName ||<-2> biography ||<-2>filmography ||<-2>gender ||<-2> birthDate ||