Details
Description
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:
hadoop jar test.jar <tablename> --range=row001,row002 cf:c2
Then I got "NoSuchColumnFamilyException".
It seems input argument parsing problem.
And I tried to add
continue;
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:
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'}