Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 68045 invoked from network); 14 Jun 2007 20:31:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jun 2007 20:31:48 -0000 Received: (qmail 13656 invoked by uid 500); 14 Jun 2007 20:31:50 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 13626 invoked by uid 500); 14 Jun 2007 20:31:50 -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 13617 invoked by uid 99); 14 Jun 2007 20:31:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2007 13:31:50 -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; Thu, 14 Jun 2007 13:31:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3B10D7140D2 for ; Thu, 14 Jun 2007 13:31:26 -0700 (PDT) Message-ID: <21627142.1181853086239.JavaMail.jira@brutus> Date: Thu, 14 Jun 2007 13:31: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_12504899 ] stack commented on HADOOP-1375: ------------------------------- My version of the patch, hadoop1375-v12.patch, removed parser subdir, renamed the javacc file as HBaseShell.jj from QueryParser.jj, and output all generated classes to a subdir named 'generated'. These changes are not included in your latest patch. Also there is a regression where main class is again named HbaseShell rather than HBaseShell. If I type in a non-command, the shell still exits: {code} HBase > show; Exception in thread "main" java.lang. Error: Missing return statement in function at org.apache.hadoop.hbase.shell.parser.QueryParser.parse(QueryParser.java:137) at org.apache.hadoop.hbase.shell.HbaseShell.main(HbaseShell.java:65) {code} Can you catch these exceptions and instead output a nice message, something like 'Unknown command: Type 'help' for usage' or some such thing? The 'show' command does not seem to always work. E.g. type 'show scan;'. I tried to use the scan command on the root table and got an exception: Type 'scan --ROOT--;'. > 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 > Environment: All environments > Reporter: udanax > Priority: Minor > Attachments: hadoop1375-v12.patch, jline-0.9.91.jar, 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.