[
https://issues.apache.org/jira/browse/HDFS-16570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiping Zhang updated HDFS-16570:
--------------------------------
Description:
Please look at the following example :
hadoop>{color:#FF0000}hdfs dfsrouteradmin -add /home/data ns0,ns1 /home/data
-order RANDOM{color}
Successfully removed mount point /home/data
hadoop>{color:#FF0000}hdfs dfsrouteradmin -ls{color}
Mount Table Entries:
Source Destinations Owner
Group Mode Quota/Usage
/home/data ns0->/home/data,ns1->/home/data zhangxiping
Administrators rwxr-xr-x [NsQuota: -/-, SsQuota: -/-]
hadoop>{color:#FF0000}hdfs dfs -touch
hdfs://ns0/home/data/test/fileNs0.txt{color}
hadoop>{color:#FF0000}hdfs dfs -touch
hdfs://ns1/home/data/test/fileNs1.txt{color}
hadoop>{color:#FF0000}hdfs dfs -ls hdfs://ns0/home/data/test/fileNs0.txt{color}
{-}rw-r{-}{-}r{-}- 3 zhangxiping supergroup 0 2022-05-06 18:01
hdfs://ns0/home/data/test/fileNs0.txt
hadoop>{color:#FF0000}hdfs dfs -ls hdfs://ns1/home/data/test/fileNs1.txt{color}
{-}rw-r{-}{-}r{-}- 3 zhangxiping supergroup 0 2022-05-06 18:01
hdfs://ns1/home/data/test/fileNs1.txt
hadoop>{color:#FF0000}hdfs dfs -ls hdfs://127.0.0.1:40250/home/data/test{color}
Found 2 items
{-}rw-r{-}{-}r{-}- 3 zhangxiping supergroup 0 2022-05-06 18:01
hdfs://127.0.0.1:40250/home/data/test/fileNs0.txt
{-}rw-r{-}{-}r{-}- 3 zhangxiping supergroup 0 2022-05-06 18:01
hdfs://127.0.0.1:40250/home/data/test/fileNs1.txt
hadoop>{color:#FF0000}hdfs dfs -rm -r
hdfs://127.0.0.1:40250/home/data/test{color}
rm: Failed to move to trash: hdfs://127.0.0.1:40250/home/data/test: rename
destination parent /user/zhangxiping/.Trash/Current/home/data/test not found.
was:
hadoop>hdfs dfsrouteradmin -add /home/data ns0,ns1 /home/data -order RANDOM
Successfully removed mount point /home/data
hadoop>hdfs dfsrouteradmin -ls
Mount Table Entries:
Source Destinations Owner
Group Mode Quota/Usage
/home/data ns0->/home/data,ns1->/home/data zhangxiping
Administrators rwxr-xr-x [NsQuota: -/-, SsQuota: -/-]
hadoop>hdfs dfs -touch hdfs://ns0/home/data/test/fileNs0.txt
hadoop>hdfs dfs -touch hdfs://ns1/home/data/test/fileNs1.txt
hadoop>hdfs dfs -ls hdfs://ns0/home/data/test/fileNs0.txt
-rw-r--r-- 3 zhangxiping supergroup 0 2022-05-06 18:01
hdfs://ns0/home/data/test/fileNs0.txt
hadoop>hdfs dfs -ls hdfs://ns1/home/data/test/fileNs1.txt
-rw-r--r-- 3 zhangxiping supergroup 0 2022-05-06 18:01
hdfs://ns1/home/data/test/fileNs1.txt
hadoop>hdfs dfs -ls hdfs://127.0.0.1:40250/home/data/test
Found 2 items
-rw-r--r-- 3 zhangxiping supergroup 0 2022-05-06 18:01
hdfs://127.0.0.1:40250/home/data/test/fileNs0.txt
-rw-r--r-- 3 zhangxiping supergroup 0 2022-05-06 18:01
hdfs://127.0.0.1:40250/home/data/test/fileNs1.txt
hadoop>hdfs dfs -rm -r hdfs://127.0.0.1:40250/home/data/test
rm: Failed to move to trash: hdfs://127.0.0.1:40250/home/data/test: rename
destination parent /user/zhangxiping/.Trash/Current/home/data/test not found.
> RBF: The router using MultipleDestinationMountTableResolver remove Multiple
> subcluster data under the mount point failed
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-16570
> URL: https://issues.apache.org/jira/browse/HDFS-16570
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: rbf
> Reporter: Xiping Zhang
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Please look at the following example :
> hadoop>{color:#FF0000}hdfs dfsrouteradmin -add /home/data ns0,ns1 /home/data
> -order RANDOM{color}
> Successfully removed mount point /home/data
> hadoop>{color:#FF0000}hdfs dfsrouteradmin -ls{color}
> Mount Table Entries:
> Source Destinations Owner
> Group Mode Quota/Usage
> /home/data ns0->/home/data,ns1->/home/data zhangxiping
> Administrators rwxr-xr-x [NsQuota: -/-, SsQuota: -/-]
> hadoop>{color:#FF0000}hdfs dfs -touch
> hdfs://ns0/home/data/test/fileNs0.txt{color}
> hadoop>{color:#FF0000}hdfs dfs -touch
> hdfs://ns1/home/data/test/fileNs1.txt{color}
> hadoop>{color:#FF0000}hdfs dfs -ls
> hdfs://ns0/home/data/test/fileNs0.txt{color}
> {-}rw-r{-}{-}r{-}- 3 zhangxiping supergroup 0 2022-05-06 18:01
> hdfs://ns0/home/data/test/fileNs0.txt
> hadoop>{color:#FF0000}hdfs dfs -ls
> hdfs://ns1/home/data/test/fileNs1.txt{color}
> {-}rw-r{-}{-}r{-}- 3 zhangxiping supergroup 0 2022-05-06 18:01
> hdfs://ns1/home/data/test/fileNs1.txt
> hadoop>{color:#FF0000}hdfs dfs -ls
> hdfs://127.0.0.1:40250/home/data/test{color}
> Found 2 items
> {-}rw-r{-}{-}r{-}- 3 zhangxiping supergroup 0 2022-05-06 18:01
> hdfs://127.0.0.1:40250/home/data/test/fileNs0.txt
> {-}rw-r{-}{-}r{-}- 3 zhangxiping supergroup 0 2022-05-06 18:01
> hdfs://127.0.0.1:40250/home/data/test/fileNs1.txt
> hadoop>{color:#FF0000}hdfs dfs -rm -r
> hdfs://127.0.0.1:40250/home/data/test{color}
> rm: Failed to move to trash: hdfs://127.0.0.1:40250/home/data/test: rename
> destination parent /user/zhangxiping/.Trash/Current/home/data/test not found.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]