Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10589

NativeS3FileSystem throw NullPointerException when the file is empty

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.5.0
    • Component/s: fs/s3
    • Labels:
      None

      Description

      An empty file in the s3 path.

      NativeS3FsInputStream dose not check the InputStream .

      2014-05-06 20:29:26,961 INFO [main] org.apache.hadoop.hive.ql.exec.ReduceSinkOperator: 4 forwarded 0 rows
      2014-05-06 20:29:26,961 INFO [main] org.apache.hadoop.hive.ql.exec.GroupByOperator: 3 Close done
      2014-05-06 20:29:26,961 INFO [main] org.apache.hadoop.hive.ql.exec.SelectOperator: 2 Close done
      2014-05-06 20:29:26,961 INFO [main] org.apache.hadoop.hive.ql.exec.FilterOperator: 1 Close done
      2014-05-06 20:29:26,961 INFO [main] org.apache.hadoop.hive.ql.exec.TableScanOperator: 0 Close done
      2014-05-06 20:29:26,961 INFO [main] org.apache.hadoop.hive.ql.exec.MapOperator: 5 Close done
      2014-05-06 20:29:26,961 INFO [main] org.apache.hadoop.hive.ql.exec.mr.ExecMapper: ExecMapper: processed 0 rows: used memory = 602221488
      2014-05-06 20:29:26,964 WARN [main] org.apache.hadoop.mapred.YarnChild: Exception running child : java.lang.NullPointerException
      at org.apache.hadoop.fs.s3native.NativeS3FileSystem$NativeS3FsInputStream.close(NativeS3FileSystem.java:147)
      at java.io.BufferedInputStream.close(BufferedInputStream.java:472)
      at java.io.FilterInputStream.close(FilterInputStream.java:181)
      at org.apache.hadoop.util.LineReader.close(LineReader.java:150)
      at org.apache.hadoop.mapred.LineRecordReader.close(LineRecordReader.java:244)
      at org.apache.hadoop.hive.ql.io.CombineHiveRecordReader.doClose(CombineHiveRecordReader.java:72)
      at org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader.close(HiveContextAwareRecordReader.java:96)
      at org.apache.hadoop.hive.shims.HadoopShimsSecure$CombineFileRecordReader.close(HadoopShimsSecure.java:248)
      at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.close(MapTask.java:209)
      at org.apache.hadoop.mapred.MapTask.closeQuietly(MapTask.java:1950)
      at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:445)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:342)
      at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
      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:1548)
      at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163)

      2014-05-06 20:29:26,970 INFO [main] org.apache.hadoop.mapred.Task: Runnning cleanup for the task

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                shuisheng shuisheng wei
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: