Skip to content

Commit 3be7673

Browse files
author
zhuxiangyi
committed
Address comments
1 parent 7fa083a commit 3be7673

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs-rbf/src/site/markdown/HDFSRouterFederation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ Mount table permission can be set by following command:
242242
The option mode is UNIX-style permissions for the mount table. Permissions are specified in octal, e.g. 0755. By default, this is set to 0755.
243243

244244
#### Init ViewFs To Router
245-
Router supports initializing the ViewFS mount point to the Router. The mapping directory protocol of ViewFS must be HDFS, and the initializer only supports one-to-one mapping.
245+
Router supports initializing the [ViewFs](../hadoop-hdfs/ViewFs.html) mount point to the Router. The mapping directory protocol of ViewFS must be HDFS, and the initializer only supports one-to-one mapping.
246246

247-
For example, use the following viewfs to configure the initial mount table to the router.
247+
For example, use the following [ViewFs](../hadoop-hdfs/ViewFs.html) to configure the initial mount table to the router.
248248

249249
<configuration>
250250
<property>
@@ -253,7 +253,7 @@ For example, use the following viewfs to configure the initial mount table to th
253253
</property>
254254
</configuration>
255255

256-
The ViewFS mount table can be initialized to the Router by using the following command:
256+
The [ViewFs](../hadoop-hdfs/ViewFs.html) mount table can be initialized to the Router by using the following command:
257257

258258
[hdfs]$ $HADOOP_HOME/bin/hdfs dfsrouteradmin -initViewFsToMountTable ClusterX
259259

hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterAdminCLI.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,8 @@ public void testInitViewFsToMountTable() throws Exception {
740740
// 5.check
741741
assertEquals(1, mountTables.size());
742742
MountTable mountTable = mountTables.get(0);
743+
List<RemoteLocation> destinations = mountTable.getDestinations();
744+
assertEquals(1, destinations.size());
743745
assertEquals(user, mountTable.getOwnerName());
744746
assertEquals(group, mountTable.getGroupName());
745747
assertEquals(destPath.toUri().getPath(), mountTable.
@@ -908,7 +910,7 @@ public void testInvalidArgumentMessage() throws Exception {
908910
+ " <quota in bytes or quota size string>]\n"
909911
+ "\t[-clrQuota <path>]\n"
910912
+ "\t[-clrStorageTypeQuota <path>]\n"
911-
+"\t[-initViewFsToMountTable <clusterName>]\n"
913+
+ "\t[-initViewFsToMountTable <clusterName>]\n"
912914
+ "\t[-safemode enter | leave | get]\n"
913915
+ "\t[-nameservice enable | disable <nameservice>]\n"
914916
+ "\t[-getDisabledNameservices]\n"

0 commit comments

Comments
 (0)