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

AliyunOSS: add missing owner & group attributes for oss FileStatus

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.0, 2.9.1, 3.2.0, 3.1.1, 3.0.3, 3.3.0
    • Fix Version/s: 2.10.0, 3.0.4, 3.3.0, 3.1.2, 3.2.1, 2.9.3
    • Component/s: fs/oss
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Owner & group attributes are missing when you list oss objects via hadoop command:

      Found 6 items
      drwxrwxrwx - 0 2018-08-01 21:37 /1024
      drwxrwxrwx - 0 2018-10-30 11:07 /50
      -rw-rw-rw- 1 94070 2018-11-08 21:48 /a
      -rw-rw-rw- 1 2441079322 2018-10-31 10:14 /lineitem.csv
      drwxrwxrwx - 0 1970-01-01 08:00 /tmp
      drwxrwxrwx - 0 1970-01-01 08:00 /user
      

       

      The result should like below(hadoop fs -ls hdfs://master:8020/):

      Found 5 items
      drwxr-xr-x - hbase hbase 0 2018-11-18 17:31 hdfs://master:8020/hbase
      drwxrwxrwt - hdfs supergroup 0 2018-10-30 11:07 hdfs://master:8020/tmp
      drwxr-xr-x - hdfs supergroup 0 2018-10-30 10:39 hdfs://master:8020/user
      

      However, oss objects do not have owner & group attributes like hadoop files,  so we assume both owner & group are the current user at the time the FS was instantiated.

        Attachments

        1. HADOOP-15943.001.patch
          10 kB
          wujinhu
        2. HADOOP-15943.002.patch
          10 kB
          wujinhu

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: