Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14770

RowCounter argument input parse error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0, 1.2.1, 1.0.3, 2.0.0
    • 2.0.0
    • mapreduce
    • None
    • Reviewed

    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'}
      

      Attachments

        1. HBASE-14770-master-2.patch
          5 kB
          Adrian Muraru
        2. HBASE-14770-master.patch
          2 kB
          Adrian Muraru

        Activity

          People

            amuraru Adrian Muraru
            aspigex Frank Chang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: