hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Duxbury (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-39) Addition of start command for execute the *.hql query file
Date Wed, 13 Feb 2008 19:01:08 GMT

    [ 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.


Mime
View raw message