浏览代码

HDFS-12858. Add router admin commands usage in HDFS commands reference doc. Contributed by Yiqun Lin.

Yiqun Lin 7 年之前
父节点
当前提交
94bed50471
共有 1 个文件被更改,包括 23 次插入0 次删除
  1. 23 0
      hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md

+ 23 - 0
hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md

@@ -414,6 +414,29 @@ Usage:
 
 Runs a HDFS dfsadmin client.
 
+### `dfsrouter`
+
+Usage: `hdfs dfsrouter`
+
+Runs the DFS router. See [Router](./HDFSRouterFederation.html#Router) for more info.
+
+### `dfsrouteradmin`
+
+Usage:
+
+      hdfs dfsrouteradmin
+          [-add <source> <nameservice> <destination>]
+          [-rm <source>]
+          [-ls <path>]
+
+| COMMAND\_OPTION | Description |
+|:---- |:---- |
+| `-add` *source* *nameservice* *destination* | Add a mount table entry or update if it exists. |
+| `-rm` *source* | Remove mount point of specified path. |
+| `-ls` *path* | List mount points under specified path. |
+
+The commands for managing Router-based federation. See [Mount table management](./HDFSRouterFederation.html#Mount_table_management) for more info.
+
 ### `diskbalancer`
 
 Usage: