You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "rajeshbabu (JIRA)" <ji...@apache.org> on 2014/02/14 11:11:22 UTC

[jira] [Created] (HBASE-10534) Rowkey in TsvImporterTextMapper initializing with wrong length

rajeshbabu created HBASE-10534:
----------------------------------

             Summary: Rowkey in TsvImporterTextMapper initializing with wrong length
                 Key: HBASE-10534
                 URL: https://issues.apache.org/jira/browse/HBASE-10534
             Project: HBase
          Issue Type: Bug
          Components: mapreduce
    Affects Versions: 0.96.0
            Reporter: rajeshbabu
            Assignee: rajeshbabu
             Fix For: 0.96.2, 0.98.1, 0.99.0


In TsvImporterTextMapper rowkey initializing with wrong length. parser.parseRowKey give pair of start and end positions, so the rowkey length initialized with rowkey end position instead of length.
{code}
      Pair<Integer,Integer> rowKeyOffests = parser.parseRowKey(value.getBytes(), value.getLength());
      ImmutableBytesWritable rowKey = new ImmutableBytesWritable(
          value.getBytes(), rowKeyOffests.getFirst(), rowKeyOffests.getSecond());
{code}
Its better to change TsvParser#parseRowKey to return starting position and length of rowkey.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)