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

ExportSnapshot get ClassCastException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.98.1
    • Fix Version/s: 0.98.1
    • Component/s: None
    • Labels:
    • Environment:

      CentOS release 6.4 (Final)
      hadoop-2.3.0

    • Tags:
      hbase,ExportSnapshot

      Description

      running below commed:
      bin/hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot dirktest_snapshot -copy-to hdfs://mycluster/user/dirkzhang -mappers 1

      get the result like this:
      2015-04-17 09:34:39,786 INFO [main] mapreduce.Job: Task Id : attempt_1429100249397_3909_m_000000_0, Status : FAILED
      Error: java.lang.ClassCastException: org.apache.hadoop.io.BytesWritable cannot be cast to org.apache.hadoop.io.Text
      at org.apache.hadoop.hbase.snapshot.ExportSnapshot$ExportMapper.map(ExportSnapshot.java:99)
      at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
      at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:340)
      at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:415)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1554)
      at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)

        Attachments

          Activity

            People

            • Assignee:
              blackproof dirk.zhang
              Reporter:
              blackproof dirk.zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated: