Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-763

ClassCastException from RowResult.get(String)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • None
    • None

    Description

      [hadoop@sjdc-atr-dns column-test]$ hbase net.iridiant.simpletest.Main --master=10.30.94.1:60000
      Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to [B
      at org.apache.hadoop.hbase.util.Bytes$1.compare(Bytes.java:32)
      at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:351)
      at java.util.TreeMap.getEntry(TreeMap.java:322)
      at java.util.TreeMap.get(TreeMap.java:255)
      at org.apache.hadoop.hbase.io.HbaseMapWritable.get(HbaseMapWritable.java:112)
      at org.apache.hadoop.hbase.io.RowResult.get(RowResult.java:79)
      at net.iridiant.simpletest.Main.main(Unknown Source)

      Please see attached testcase.

      Attachments

        1. simpletest.java
          2 kB
          Andrew Kyle Purtell
        2. RowResult.patch
          0.5 kB
          Andrew Kyle Purtell

        Activity

          People

            Unassigned Unassigned
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: