Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 17300 invoked from network); 13 Feb 2008 19:01:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2008 19:01:39 -0000 Received: (qmail 11289 invoked by uid 500); 13 Feb 2008 19:01:33 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 11265 invoked by uid 500); 13 Feb 2008 19:01:33 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 11256 invoked by uid 99); 13 Feb 2008 19:01:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 11:01:33 -0800 X-ASF-Spam-Status: No, hits=-2000.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, 13 Feb 2008 19:01:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8DA08714079 for ; Wed, 13 Feb 2008 11:01:08 -0800 (PST) Message-ID: <19337300.1202929268569.JavaMail.jira@brutus> Date: Wed, 13 Feb 2008 11:01:08 -0800 (PST) From: "Bryan Duxbury (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-39) Addition of start command for execute the *.hql query file 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/HBASE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568671#action_12568671 ] Bryan Duxbury commented on HBASE-39: ------------------------------------ I think it might make more sense to read from stdin like Stack has suggested. This will have the advantage of being standard, simple, and make the shell a little scriptable. All you'd have to do is check if stdin has anything on it, read it if it does, execute it as commands, and then exit. You wouldn't have to introduce a new command into the shell. > Addition of start command for execute the *.hql query file > ---------------------------------------------------------- > > Key: HBASE-39 > URL: https://issues.apache.org/jira/browse/HBASE-39 > Project: Hadoop HBase > Issue Type: New Feature > Components: hql > Affects Versions: 0.1.0 > Reporter: Edward Yoon > Assignee: Edward Yoon > Priority: Minor > Fix For: 0.2.0 > > Attachments: 2591.patch, 2591_v01.patch, 2591_v02.patch, 2591_v03.patch, 2591_v04.patch, 2591_v05.patch, v06_39.patch, v07_39.patch, v08_39.patch > > > {code} > $ cat queries.hql > CREATE TABLE webtable ( > contents in_memory max_versions=10 compression=block, > anchor max_length=256 bloomfilter=counting_bloomfilter > vector_size=1000000 num_hash=4); > ); > INSERT INTO webtable (contents, anchor:Hadoop) > VALUES ('html content', 'http://hadoop.apache.org') > WHERE row='http://www.hadoop.co.kr'; > ... > ---- > hql> start ./queries.hql; > ... > hql> desc webtable; > .... > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.