Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5906

java.lang.NullPointerException while quering Hive ORC tables on MapR cluster.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.11.0
    • 1.12.0
    • None

    Description

      Record reader throw an exception when trying to read an empty split.
      To reproduce the issue - put the bucketed table with ORC files (one or more are empty) onto the maprfs and
      run the following Hive DDL:

      CREATE TABLE `orc_bucketed`(
        `id` int,
        `name` string)
      CLUSTERED BY (
        id)
      INTO 2 BUCKETS
      ROW FORMAT SERDE
        'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
      STORED AS INPUTFORMAT
        'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
      OUTPUTFORMAT
        'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
      LOCATION
        'maprfs:/tmp/bucketed_table/';
      

      Possible fix: upgrade drill to 1.2.0-mapr-1707 hive.version, where this issue was fixed.

      Attachments

        1. bucketed_table.zip
          0.8 kB
          Vitalii Diravka

        Issue Links

          Activity

            People

              vitalii Vitalii Diravka
              vitalii Vitalii Diravka
              Arina Ielchiieva Arina Ielchiieva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: