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, 28 Jun 2007 18:01:08 GMT

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

stack commented on HADOOP-1375:
-------------------------------

This patch is a big improvement.

Limit is optional when invoking the create command so wrap with a square brackets in help
listings.  The below:
{code}
>>> CREATE table_name COLUMNFAMILIES('cf_name1'[, 'cf_name2', ...]) LIMIT=limitNumber_of_Version;
{code}
...should be:
{code}
>>> CREATE table_name COLUMNFAMILIES('cf_name1'[, 'cf_name2', ...]) [LIMIT=limitNumber_of_Version];
{code}

If I do 'HBase > create b;' then command-prompt returns without complaint.  Should complain
that there are missing parameters.

If I create a table named 'c' with a columnfamily of 'c:', I cannot do inserts:
{code}
HBase > create c columnfamilies('c:');
+------+----------------------+
| No.  | ColumnFamily Name    |
+------+----------------------+|
 1    | c                    |
+------+----------------------+
Successfully executed. (0.04 sec)
HBase > insert c values('c:', 'c') row='c';
Exception in thread "main" java.lang.Error: Missing return statement in function
 at org.apache.hadoop.hbase.shell.generated.Parser.parse(Parser.java:183)
 at org.apache.hadoop.hbase.shell.HBaseShell.main(HBaseShell.java:59)
{code}

Qualifiers on select do not seem to work.  Its not filitering.
{code}
HBase > select --ROOT-- where row="--META--__1" AND column="info:server";
{code}
The above returns all rows.

Set does not seem to work:
{code}
set --ROOT-- values('info:server', 'one.two.three:1000') where row='--META--__1';
{code}
Does not change the content of the table.  Nor does delete.

Can you do something about the wrapping of the help output. It seems to wrap at 80 characters
or so (Perhaps its just my terminal?).

> 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: edward yoon
>            Priority: Minor
>             Fix For: 0.14.0
>
>         Attachments: hadoop1375-v12.patch, hbase_shell_base_v03.patch, jline-0.9.91.jar
>
>
> 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.


Mime
View raw message