Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-999

SequenceFile key class need to be compatible.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: Storage
    • Labels:
      None

      Description

      Currently, tajo uses ByteWritable class for key class in SequenceFile. If we used ByteWritable class for key class, it is no problem. But if we use another class for key class, we must find IOException. For example, When I used LongWritable class for key class in TextSerde, I found error as follows:

      ERROR org.apache.tajo.worker.Task: wrong key class: org.apache.hadoop.io.BytesWritable is not class org.apache.hadoop.io.LongWritable
      java.io.IOException: wrong key class: org.apache.hadoop.io.BytesWritable is not class org.apache.hadoop.io.LongWritable
              at org.apache.hadoop.io.SequenceFile$Reader.next(SequenceFile.java:2251)
              at org.apache.tajo.storage.sequencefile.SequenceFileScanner.next(SequenceFileScanner.java:147)
      

      Thus, we need to improve SequenceFileScanner and SequenceFileScannerAppender compatible for all writable classes.

        Attachments

          Activity

            People

            • Assignee:
              blrunner Jaehwa Jung
              Reporter:
              blrunner Jaehwa Jung
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: