Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
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