I am using HBase 0.89.20100924. I get a NullPointerException from
org.apache.hadoop.hbase.mapreduce.hadoopbackport.InputSampler:
[exec] Exception in thread "main" java.lang.NullPointerException
[exec] at
org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader.nextKeyVa
lue(SequenceFileRecordReader.java:67)
[exec] at
org.apache.hadoop.hbase.mapreduce.hadoopbackport.InputSampler$RandomSamp
ler.getSample(InputSampler.java:219)
[exec] at
org.apache.hadoop.hbase.mapreduce.hadoopbackport.InputSampler.writeParti
tionFile(InputSampler.java:314)
I saw a post claiming that this is because of a bug in InputSampler in
which initialize has not been called on the SequenceFileRecordReader.
This seems plausible, from looking at the source in
hbase-0.89.20100924-src.tar.gz. Any advice would be appreciated since
this is blocking me from using the TotalOrderingPartitioner.
-geoff