Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-3048 Improve Ozone o3fs API function
  3. HDDS-3147

User factor passed in get(uri,conf,user) API doesn't take effect

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Ozone Filesystem
    • None

    Description

      When I created the file using the following API, I found that the user setting did not take effect.

       

      //
      FileSystem fs = FileSystem.get(URI.create("o3fs://bucket.hadoop/test1.log"), conf,"zmc");
      FSDataOutputStream fsOut = fs.create(new Path(dst), true);
      fsOut.writeBytes("hello word!");
      

      I also find out who the current system user is and who the owner of the file is:

      Is this a bug?

       

       

      Attachments

        1. image-2020-03-09-22-51-51-759.png
          105 kB
          mingchao zhao
        2. image-2020-03-09-22-52-40-434.png
          116 kB
          mingchao zhao
        3. image-2020-03-09-22-52-49-386.png
          116 kB
          mingchao zhao

        Activity

          People

            Unassigned Unassigned
            micahzhao mingchao zhao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: