You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jean-Marc Spaggiari (JIRA)" <ji...@apache.org> on 2013/09/24 20:50:03 UTC

[jira] [Updated] (HBASE-9649) HFilePrettyPrinter should not throw a NPE if FirstKey or LastKey is null.

     [ https://issues.apache.org/jira/browse/HBASE-9649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Marc Spaggiari updated HBASE-9649:
---------------------------------------

    Attachment: HBASE-9649-v0-trunk.patch
    
> HFilePrettyPrinter should not throw a NPE if FirstKey or LastKey is null.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-9649
>                 URL: https://issues.apache.org/jira/browse/HBASE-9649
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Marc Spaggiari
>            Assignee: Jean-Marc Spaggiari
>         Attachments: HBASE-9649-v0-trunk.patch
>
>
> Should instead "simply" display "null"...
> {code}
> /usr/lib/hbase/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -m -s -v -f
> /hbase/compound3/5ab5fdfcf2aff2633e1d6d5089c96aa2/d/fca0882dc7624342a8f4fce4b89420ff
> 13/09/24 12:33:40 INFO util.ChecksumType: Checksum using
> org.apache.hadoop.util.PureJavaCrc32
> Scanning ->
> /hbase/compound3/5ab5fdfcf2aff2633e1d6d5089c96aa2/d/fca0882dc7624342a8f4fce4b89420ff
> 13/09/24 12:33:41 INFO hfile.CacheConfig: Allocating LruBlockCache with
> maximum size 2.9g
> 13/09/24 12:33:41 ERROR metrics.SchemaMetrics: Inconsistent configuration.
> Previous configuration for using table name in metrics: true, new
> configuration: false
> 13/09/24 12:33:41 WARN snappy.LoadSnappy: Snappy native library is available
> 13/09/24 12:33:41 INFO util.NativeCodeLoader: Loaded the native-hadoop
> library
> 13/09/24 12:33:41 INFO snappy.LoadSnappy: Snappy native library loaded
> 13/09/24 12:33:41 INFO compress.CodecPool: Got brand-new decompressor
> Block index size as per heapsize: 336
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.hadoop.hbase.KeyValue.keyToString(KeyValue.java:716)
>         at
> org.apache.hadoop.hbase.io.hfile.AbstractHFileReader.toStringFirstKey(AbstractHFileReader.java:138)
>         at
> org.apache.hadoop.hbase.io.hfile.AbstractHFileReader.toString(AbstractHFileReader.java:149)
>         at
> org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.printMeta(HFilePrettyPrinter.java:318)
>         at
> org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.processFile(HFilePrettyPrinter.java:234)
>         at
> org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.run(HFilePrettyPrinter.java:189)
>         at org.apache.hadoop.hbase.io.hfile.HFile.main(HFile.java:756)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira