Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 23365 invoked from network); 27 Jun 2007 19:14:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jun 2007 19:14:49 -0000 Received: (qmail 69191 invoked by uid 500); 27 Jun 2007 19:14:51 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 69168 invoked by uid 500); 27 Jun 2007 19:14:51 -0000 Mailing-List: contact hadoop-dev-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-dev@lucene.apache.org Received: (qmail 69159 invoked by uid 99); 27 Jun 2007 19:14:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2007 12:14:51 -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.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2007 12:14:47 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BC94B7141ED for ; Wed, 27 Jun 2007 12:14:26 -0700 (PDT) Message-ID: <2543257.1182971666769.JavaMail.jira@brutus> Date: Wed, 27 Jun 2007 12:14:26 -0700 (PDT) From: "stack (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1375) a simple parser for hbase. In-Reply-To: <6525417.1179301936165.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508625 ] stack commented on HADOOP-1375: ------------------------------- Hey Jinsuk: Wait up on moving this issue to the 'submit patch' phase until you get a +1 from a reviewer (If you haven't read 'Contributing your work' from this http://wiki.apache.org/lucene-hadoop/HowToContribute, you should check it out). Here are comments on latest patch: + When I do 'show help;', it starts out 'SHOW - Show command will list the tables.'. So, I type 'show;' and it complains: {code} HBase > show; Missing Parameters! Please check 'show' syntax. {code} Fix the help or fix the 'show' command (When I do 'help show;', the help is still wrong). + The 'DESC' help output in same screen wraps 'columnfamilies' as do a bunch of the other descriptions on the help page. + I would suggest that for v1 of hbaseshell, you not complicate things by including support for SUBSTITUTE, PRINT, and STORE especially as they do not seem to work and a few commands report unimplemented. Stick w/ shell basics so we can make a commit. + The below is still a problem: {code} HBase > create table; Exception in thread "main" java.lang.NullPointerException at org.apache.hadoop.hbase.shell.commands.Create.checkParams(Create.java:34) at org.apache.hadoop.hbase.shell.commands.Create.execute(Create.java:44) at org.apache.hadoop.hbase.shell.HBaseShell.main(HBaseShell.java:68) {code} as is this: {code} HBase > select --ROOT--; Exception in thread "main" java.lang.Error: Missing return statement in function at org.apache.hadoop.hbase.shell.generated.Parser.parse(Parser.java:200) at org.apache.hadoop.hbase.shell.HBaseShell.main(HBaseShell.java:65) {code} + This doesn't work. {code} HBase > create x columnfamilies('x', 'y') limit=2; Missing Parameters! Please check 'create' syntax. {code} Doesn't work even if double-quotes or if families end in colons. Same 'missing parameters' message. Thats enough for now. Your patch is getting better on each submission. I like the addition of the unit tests, the formatting fixes, etc. I'd suggest focusing on getting a basic functionality working so we can make a commit. > a simple parser for hbase. > -------------------------- > > Key: HADOOP-1375 > URL: https://issues.apache.org/jira/browse/HADOOP-1375 > Project: Hadoop > Issue Type: Improvement > Components: contrib/hbase > Affects Versions: 0.13.0 > Environment: All environments > Reporter: udanax > Priority: Minor > Fix For: 0.14.0 > > Attachments: hadoop1375-v12.patch, hbase_shell_base.patch, jline-0.9.91.jar, patch.txt, patch.txt, patch.txt, patch.txt, patch.txt, patch.txt, patch.txt, patch.txt, patch.txt, patch.txt, patch.txt > > > http://wiki.apache.org/lucene-hadoop/HbaseShell (work in progress) > HBase Shell is developed to achieve the following goals. > * Generic Monitoring Function > * A Simplified Import/Export/Migrate Functionality Between different data sources (Hadoop, HBase) > * A Simplified processing of a logical data model > * A Simplified algebraic operations > (Parallel Numerical Analysis by abstracting/numericalizing points, lines, or plane data across multiple maps in HBase.) > {code} > [# root@localhost] ./bin/hadoop jar ./build/hadoop-hbase org.apache.hadoop.hbase.shell.HbaseShell > Hbase > help; > blah blah... > Hbase > create webtable > --> columnfamilies('anchors', 'language') limit=3; > Hbase > set webtable values('anchors:http://www.udanax.org/','opensource') where row="http://www.hadoop.co.kr"; > Hbase > scan webtable where row="http://www.hadoop.co.kr"; > blah blah... > Hbase > set webtable values('language:kr','euc-kr') where row="http://www.hadoop.co.kr"; > Hbase > scan webtable where row="http://www.hadoop.co.kr" and column="language:kr"; > blah blah... > Hbase > scan webtable; > Hbase > exit > [# root@localhost] > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.