hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1375) a simple parser for hbase.
Date Thu, 24 May 2007 17:16:16 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498721

stack commented on HADOOP-1375:


Looks like the the java wrapper around ReadLine is a popular solution for the problem of navigating
a shell command-line with arrow-keys: See groovy http://www.nofluffjuststuff.com/blogs_speaker.jsp?speakerId=18
and jython http://wiki.python.org/jython/ReadlineSetup. I tried it out and it manages the
up/down and left/right for you.

As per Owen's comment, you can't include the readline jar because of its license.  I'd suggest
you do as for groovy and jython, and let the user compile and install readline themselves
if they want its functionality.  You'll need to do a little work to allow for an alternate
console (as jython does).   Default readline console would be a noop that has the shell work
as it currently does but then if the user sets a system property to point at an alternate
implementation -- e.g. a GNU ReadLine install -- then you'd use it instead.

> 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: patch.txt, patch.txt, patch.txt, patch.txt, patch.txt, patch.txt,
> this is a simple parser for hbase test.
> i just write it.
> you can use this syntax to create and set.
> {code}
> [# root@localhost] ./bin/hadoop jar ./build/hadoop-hbase org.apache.hadoop.hbase.parser.HbaseParser
> Hbase > help;
> blah blah...
> Hbase > build 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 > 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.

View raw message