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

Trash can get Namespace collision

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.2, 2.0.2-alpha, 0.23.5
    • Fix Version/s: None
    • Component/s: trash
    • Labels:
      None

      Description

      $ hadoop fs -touchz test
      $ hadoop fs -rm test
      Moved: 'hdfs://nn:8020/user/ME/test' to trash at: hdfs://nn:8020/user/ME/.Trash/Current
      $ hadoop fs -mkdir test
      $ hadoop fs -touchz test/1
      $ hadoop fs -rm test/1
      WARN fs.TrashPolicyDefault: Can't create trash directory: hdfs://nn:8020/user/ME/.Trash/Current/user/ME/test
      rm: Failed to move to trash: hdfs://nn:8020/user/ME/test/1. Consider using -skipTrash option
      

      On 1.0.2 it looks more like

       WARN fs.Trash: Can't create trash directory: hdfs://nn:8020/user/ME/.Trash/Current/user/ME/test
      Problem with Trash.java.io.FileNotFoundException: Parent path is not a directory: /user/ME/.Trash/Current/user/ME/test
              at org.apache.hadoop.hdfs.server.namenode.FSDirectory.mkdirs(FSDirectory.java:949)
              at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirsInternal(FSNamesystem.java:2069)
              at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(FSNamesystem.java:2030)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.mkdirs(NameNode.java:817)
              at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563)
              at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388)
              at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:396)
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1093)
              at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)
      . Consider using -skipTrash option
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              revans2 Robert Joseph Evans
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: