Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15341

HDFS Move viewfs path to trash failed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.10.0, 3.3.1
    • None
    • hdfs-client
    • None

    Description

      When HDFS client with viewfs want to move file/directory to trash by RemoteUser or

      ProxyUser , it will fail. Codes like below:

      // code placeholder
      Trash.moveToAppropriateTrash(fileSystem, path, conf);
      

       

       

      'fullyResolvedFs' will return a FileSystem with ugi of system user. But the source fileSystem ugi was specified account. So the moving to trash operation will fail. Because of trashRoot mismatch the real baseTrashPath.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            vince.feng Vince.Feng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: