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

FileStatus.getModificationTime returns 0 for directories on S3n & S3a

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • fs/s3
    • None

    Description

      Hi Team,

      We have observed an issue with the FileStatus.getModificationTime() API on S3 filesystem. The method always returns 0.

      I googled for this however couldn't find any solution as such which would fit in my scheme of things. S3FileStatus seems to be an option however I would be using this API on HDFS as well as S3 both so can't go for it.

      I tried to run the job on:

      • Release label:emr-4.2.0
      • Hadoop distribution:Amazon 2.6.0
      • Hadoop Common jar: hadoop-common-2.6.0.jar

      Please advise if any patch or fix available for this.

      Thanks,
      Jagdish

      Attachments

        Activity

          People

            Unassigned Unassigned
            jagdishk Jagdish Kewat
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: