hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Menno Luiten (JIRA)" <j...@apache.org>
Subject [jira] Created: (HBASE-2157) LATEST_TIMESTAMP not replaced by current timestamp in KeyValue
Date Fri, 22 Jan 2010 18:12:21 GMT
LATEST_TIMESTAMP not replaced by current timestamp in KeyValue

                 Key: HBASE-2157
                 URL: https://issues.apache.org/jira/browse/HBASE-2157
             Project: Hadoop HBase
          Issue Type: Bug
    Affects Versions: 0.20.2
         Environment: Hadoop 0.20.0 - Hbase 0.20.2 - Java(TM) SE Runtime Environment (build
            Reporter: Menno Luiten

I was trying to bulk load using the new HFileOutputFormat. When using a MapReduce in which
map generates {{KeyValue}}s and reduce is equal to KeyValueSortReducer, and using the constructor
using (byte[] row, byte[] family, byte[] qualifier, byte[] value), the (undefined) timestamp
was inserted as HConstants.LATEST_TIMESTAMP/Long.MAX_VALUE into HBase. This causes all kinds
of troubles, but most importantly, while the records were in the table, other MapReduces (using
TableInputFormat) and Hbase shell's 'get'-command did not fetch them. Guess there is some
sort of filtering of future dates.

As I understood from St.Ack, the LASTEST_TIMESTAMP is supposed to be replaced by System.currentTimeMillis(),
but I don't see this reflected in the code of KeyValue, and apparently it did not happen elsewhere;
perhaps because there is no actual HBase connection?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message