Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13891 HDFS RBF stabilization phase I
  3. HDFS-13255

RBF: Fail when try to remove mount point paths

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, HDFS-13891
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      when delete a ns-fed path which include mount point paths, will issue a error.

      Need to delete each mount point path independently.

      Operation step:

      [hadp@root]$ hdfs dfsrouteradmin -ls
      Mount Table Entries:
      Source Destinations Owner Group Mode Quota/Usage
      /rm-test-all/rm-test-ns10 ns10->/rm-test hadp hadp rwxr-xr-x [NsQuota: -/-, SsQuota: -/-]
      /rm-test-all/rm-test-ns2 ns1->/rm-test hadp hadp rwxr-xr-x [NsQuota: -/-, SsQuota: -/-]
      [hadp@root]$ hdfs dfs -ls hdfs://ns-fed/rm-test-all/rm-test-ns10/
      Found 2 items
      -rw-r--r-- 3 hadp supergroup 3118 2018-03-07 21:52 hdfs://ns-fed/rm-test-all/rm-test-ns10/core-site.xml
      -rw-r--r-- 3 hadp supergroup 7481 2018-03-07 21:52 hdfs://ns-fed/rm-test-all/rm-test-ns10/hdfs-site.xml
      [hadp@root]$ hdfs dfs -ls hdfs://ns-fed/rm-test-all/rm-test-ns2/
      Found 2 items
      -rw-r--r-- 3 hadp supergroup 101 2018-03-07 16:57 hdfs://ns-fed/rm-test-all/rm-test-ns2/NOTICE.txt
      -rw-r--r-- 3 hadp supergroup 1366 2018-03-07 16:57 hdfs://ns-fed/rm-test-all/rm-test-ns2/README.txt
      [hadp@root]$ hdfs dfs -ls hdfs://ns-fed/rm-test-all/rm-test-ns10/
      Found 2 items
      -rw-r--r-- 3 hadp supergroup 3118 2018-03-07 21:52 hdfs://ns-fed/rm-test-all/rm-test-ns10/core-site.xml
      -rw-r--r-- 3 hadp supergroup 7481 2018-03-07 21:52 hdfs://ns-fed/rm-test-all/rm-test-ns10/hdfs-site.xml
      [hadp@root]$ hdfs dfs -rm -r hdfs://ns-fed/rm-test-all/
      rm: Failed to move to trash: hdfs://ns-fed/rm-test-all. Consider using -skipTrash option
      [hadp@root]$ hdfs dfs -rm -r -skipTrash hdfs://ns-fed/rm-test-all/
      rm: `hdfs://ns-fed/rm-test-all': Input/output error
      

        Attachments

        1. HDFS-13255-HDFS-13891-002.patch
          16 kB
          Akira Ajisaka
        2. HDFS-13255-HDFS-13891-003.patch
          28 kB
          Akira Ajisaka
        3. HDFS-13255-HDFS-13891-004.patch
          27 kB
          Akira Ajisaka
        4. HDFS-13255-HDFS-13891-wip-001.patch
          4 kB
          Akira Ajisaka

          Activity

            People

            • Assignee:
              aajisaka Akira Ajisaka
              Reporter:
              wuweiwei Wu Weiwei
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: