hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Kelkar <rohitkel...@gmail.com>
Subject Problem with HFile lexical comparison
Date Wed, 19 Jun 2013 17:05:46 GMT
Here is a problem that I am facing while creating an HFile outside of a MR
My column family is "sd"
For a given rowKey=10011-2-0000000000000000703, this is the sequence in
which I am writing KeyValue pairs to the HFile,
key=sd:dt, value="dummy value 1"
key=sd:dth, value="dummy value 2"

When I print the keys it prints the following for the above 2 entries

When I write the KV to HFile it throws an IOException:
Added a key not lexically larger than previous

Lexically "sd:dt" is smaller than "sd:dth" then why should HFile
(AbstractHFileWriter.checkKey) complain? The checkKey method is using the
hadoop RawComparator
Am I missing something?

- R

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message