From 72d0be964d6687d71168570cb75334dfc21273d2 Mon Sep 17 00:00:00 2001 From: Yiqun Lin Date: Tue, 28 Nov 2017 11:48:55 +0800 Subject: [PATCH] HDFS-12858. Add router admin commands usage in HDFS commands reference doc. Contributed by Yiqun Lin. (cherry picked from commit 94bed5047113fb148194380853ff01e92897a91f) --- .../src/site/markdown/HDFSCommands.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md index 25f2b92bea8..05cca9af69c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -412,6 +412,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 ] + [-rm ] + [-ls ] + +| 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: