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

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

Patch is improving.

Here's a couple of quick issues:

I created table named 'test'. I then tried to add some data:

{code}
HBase > set test values('columnfamily_name:x', 'y') where row="z";
07/06/15 16:54:24 DEBUG hbase.HClient: No servers for test. Doing a find...
07/06/15 16:54:25 DEBUG hbase.HClient: Found 1 server(s) for location: address: 
208.76.47.106:60010, regioninfo: regionname: --ROOT--__0, startKey: <>, 
tableDesc: {name: --ROOT--, families: {info:=(info:, max versions: 1, 
compression: none, in memory: false, max value length: 2147483647, bloom 
filter: none)}} for tablename --META--07/06/15 16:54:25 DEBUG hbase.HClient: 
Found 1 server(s) for location: address: 208.76.47.106:60010, regioninfo: 
regionname: --META--__1, startKey: <>, tableDesc: {name: --META--, families: 
{info:=(info:, max versions: 1, compression: none, in memory: false, max value 
length: 2147483647, bloom filter: none)}} for tablename test
07/06/15 16:54:25 DEBUG hbase.HClient: Server  is serving: address: 
208.76.47.106:60010, regioninfo: regionname: test__8954882840030601779, 
startKey: <>, tableDesc: {name: test, families: 
{columnfamily_name:=(columnfamily_name:, max versions: 3, compression: none, in 
memory: false, max value length: 2147483647, bloom filter: none)}}
Exception in thread "main" java.lang.NullPointerException       
   at org.apache.hadoop.hbase.shell.cmds.Set.execute(Set.java:41)        
   at org.apache.hadoop.hbase.shell.HBaseShell.main(HBaseShell.java:68)
{code}

If I do other than 'scan tables', it no longer throws an exception but the 
message doesn't make much sense:
{code}HBase > show scan;
Missing Parameters.
{code}
Perhaps just say 'unimplemented' if its not.

Can you make it so I can scan root and meta tables?

Your patch has odd file on the end -- saveversion.sh on end -- and it was made 
at /root rather than inside ${HADOOP_HOME}.

> 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: hadoop1375-v12.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
>
>
> 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