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

udanax updated HADOOP-1375:
---------------------------

    Attachment: hbase_shell_base_v02.patch

I Fixed them.

{code}
HBase > show tables;
+------+----------------------+
| No.  | Table Name           |
+------+----------------------+
| 1    | table_jinsuk_yun_uda |
|      | nax                  |
+------+----------------------+
| 2    | udanax               |
+------+----------------------+
| 3    | x                    |
+------+----------------------+

Successfully executed. (0.41 sec)
HBase > desc x;
+------+----------------------+
| No.  | ColumnFamily Name    |
+------+----------------------+
| 1    | x                    |
+------+----------------------+
| 2    | y                    |
+------+----------------------+

Successfully executed. (0.16 sec)
HBase > select x;
+------+----------------------+----------------------+----------------------+
| No.  | Row Key              | ColumnFamily:Column  | Cell Data            | 
+------+----------------------+----------------------+----------------------+
| 1    | r1                   | x:a                  | b                    |
+------+----------------------+----------------------+----------------------+
| 2    | r1                   | x:aa                 | bb                   |
+------+----------------------+----------------------+----------------------+

Successfully executed. (0.20 sec)
HBase > select --ROOT--;
+------+----------------------+----------------------+----------------------+
| No.  | Row Key              | ColumnFamily:Column  | Cell Data            | 
+------+----------------------+----------------------+----------------------+
| 1    | --META--__1          | info:regioninfo      | ID : 1               |
+------+----------------------+----------------------+----------------------+
| 2    | --META--__1          | info:server          | 127.0.0.1:60010      |
+------+----------------------+----------------------+----------------------+
| 3    | --META--__1          | info:serverstartcode | 5817593956082822558  |
+------+----------------------+----------------------+----------------------+

Successfully executed. (0.17 sec)
HBase > help insert;

INSERT     - Insert command will insert one row into the table wi
             th a value for specified column in the table.

>>> INSERT table_name
            VALUES('columnfamily_name:column_key','entry')
    WHERE row='row_key';

HBase > insert x
    --> values('y:aa','bb') where row='r2';
values('y:aa','bb') where row='r2';
Successfully executed. (0.19 sec)
HBase > select x;
+------+----------------------+----------------------+----------------------+
| No.  | Row Key              | ColumnFamily:Column  | Cell Data            | 
+------+----------------------+----------------------+----------------------+
| 1    | r1                   | x:a                  | b                    |
+------+----------------------+----------------------+----------------------+
| 2    | r1                   | x:aa                 | bb                   |
+------+----------------------+----------------------+----------------------+
| 1    | r2                   | x:a                  | b                    |
+------+----------------------+----------------------+----------------------+
| 2    | r2                   | x:aa                 | bb                   |
+------+----------------------+----------------------+----------------------+
| 3    | r2                   | y:aa                 | bb                   |
+------+----------------------+----------------------+----------------------+

Successfully executed. (0.16 sec)
HBase > select x where row='r2';
+------+----------------------+----------------------+----------------------+
| No.  | Row Key              | ColumnFamily:Column  | Cell Data            | 
+------+----------------------+----------------------+----------------------+
| 1    | r2                   | y:aa                 | bb                   |
+------+----------------------+----------------------+----------------------+

Successfully executed. (0.13 sec)
HBase > exit;
{code}

> 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: udanax
>            Priority: Minor
>             Fix For: 0.14.0
>
>         Attachments: hadoop1375-v12.patch, hbase_shell_base.patch, 
> hbase_shell_base_v02.patch, jline-0.9.91.jar, patch.txt, patch.txt, 
> 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}
> [# [EMAIL PROTECTED] ./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
> [# [EMAIL PROTECTED] 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to