Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-968

NPE in distcp encountered when placing _logs directory on S3FileSystem

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.1
    • Fix Version/s: 0.21.0
    • Component/s: distcp
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      If distcp is pointed to an empty S3 bucket as the destination for an s3:// filesystem transfer, it will fail with the following exception

      Copy failed: java.lang.NullPointerException
      at org.apache.hadoop.fs.s3.S3FileSystem.makeAbsolute(S3FileSystem.java:121)
      at org.apache.hadoop.fs.s3.S3FileSystem.getFileStatus(S3FileSystem.java:332)
      at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:633)
      at org.apache.hadoop.tools.DistCp.setup(DistCp.java:1005)
      at org.apache.hadoop.tools.DistCp.copy(DistCp.java:650)
      at org.apache.hadoop.tools.DistCp.run(DistCp.java:857)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
      at org.apache.hadoop.tools.DistCp.main(DistCp.java:884)

      1. MAPREDUCE-968.patch
        0.8 kB
        Aaron Kimball

        Activity

        Aaron Kimball created issue -
        Aaron Kimball made changes -
        Field Original Value New Value
        Attachment MAPREDUCE-968.patch [ 12419220 ]
        Aaron Kimball made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tom White made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 0.21.0 [ 12314045 ]
        Resolution Fixed [ 1 ]
        Tom White made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Aaron Kimball
            Reporter:
            Aaron Kimball
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development