You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Frank Chang (JIRA)" <ji...@apache.org> on 2015/11/05 07:53:27 UTC

[jira] [Created] (HBASE-14770) RowCounter argument input parse error.

Frank Chang created HBASE-14770:
-----------------------------------

             Summary: RowCounter argument input parse error.
                 Key: HBASE-14770
                 URL: https://issues.apache.org/jira/browse/HBASE-14770
             Project: HBase
          Issue Type: Bug
          Components: API
    Affects Versions: 1.0.0
            Reporter: Frank Chang
            Assignee: Frank Chang
            Priority: Minor


I'm tried to use https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/RowCounter.java code and package a new jar then excuted following shell script:
{code:none}
hadoop jar test.jar <tablename> --range=row001,row002 cf:c2
{code}
Then I got "NoSuchColumnFamilyException".

It seems input argument parsing problem.

And I tried to add 
{code:java}
continue; 
{code}
after #L123 to avoid "--range=*" string be appended to qualifer.

Then the problem seems solve.



--
data in table:
||row||cf:c1||cf:c2||cf:c3||cf:c4||
|row001|v1|v2| | |
|row002| |v2|v3| |
|row003| | |v3|v4|
|row004|v1| | |v4|

Exception Message:
{code:java}
org.apache.hadoop.hbase.regionserver.NoSuchColumnFamilyException: org.apache.hadoop.hbase.regionserver.NoSuchColumnFamilyException: Column family --range=row001,row002 does not exist in region frank_rowcounttest1,,1446191360354.6c52c71a82f0fa041c467002a2bf433c. in table 'frank_rowcounttest1', {NAME => 'cf', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', COMPRESSION => 'NONE', VERSIONS => '1', TTL => 'FOREVER', MIN_VERSIONS => '0', KEEP_DELETED_CELLS => 'false', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)