Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2031

Unable to process timestamp/Date data loaded via Phoenix org.apache.phoenix.pig.PhoenixHBaseLoader

    XMLWordPrintableJSON

Details

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

    Description

      2015-05-11 15:41:44,419 WARN main org.apache.hadoop.mapred.YarnChild: Exception running child : org.apache.pig.PigException: ERROR 0: Error transforming PhoenixRecord to Tuple Cannot convert a Unknown to a java.sql.Timestamp at org.apache.phoenix.pig.util.TypeUtil.transformToTuple(TypeUtil.java:293)
      at org.apache.phoenix.pig.PhoenixHBaseLoader.getNext(PhoenixHBaseLoader.java:197)
      at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(PigRecordReader.java:204)
      at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:553)
      at org.apache.hadoop.mapreduce.task.MapContextImpl.nextKeyValue(MapContextImpl.java:80)
      at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.nextKeyValue(WrappedMapper.java:91)
      at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
      at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:784)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
      at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:163)
      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:1628)
      at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)

      Attachments

        1. PHOENIX-2031.patch
          6 kB
          Alicia Ying Shu
        2. PHOENIX-2031-v1.patch
          6 kB
          Alicia Ying Shu
        3. PHOENIX-2031-v2.patch
          6 kB
          Alicia Ying Shu

        Activity

          People

            aliciashu Alicia Ying Shu
            aliciashu Alicia Ying Shu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: