This is an automated email from the ASF dual-hosted git repository.

dineshc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new a7860d4  HDDS-3649. Add documentation for Cat Key Command (#967)
a7860d4 is described below

commit a7860d4460214f99fe27d1777c844115bc827013
Author: maobaolong <[email protected]>
AuthorDate: Wed May 27 09:51:21 2020 +0800

    HDDS-3649. Add documentation for Cat Key Command (#967)
---
 hadoop-hdds/docs/content/shell/KeyCommands.md    | 17 +++++++++++++++++
 hadoop-hdds/docs/content/shell/KeyCommands.zh.md | 17 +++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/hadoop-hdds/docs/content/shell/KeyCommands.md 
b/hadoop-hdds/docs/content/shell/KeyCommands.md
index 4dcfb8c..a941702 100644
--- a/hadoop-hdds/docs/content/shell/KeyCommands.md
+++ b/hadoop-hdds/docs/content/shell/KeyCommands.md
@@ -30,6 +30,7 @@ Ozone shell supports the following key commands.
   * [info](#info)
   * [list](#list)
   * [rename](#rename)
+  * [cat](#cat)
 
 
 ### Get
@@ -137,3 +138,19 @@ The `key rename` command changes the name of an existing 
key in the specified bu
 ozone sh key rename /hive/jan sales.orc new_name.orc
 {{< /highlight >}}
 The above command will rename _sales.orc_ to _new\_name.orc_ in the bucket 
_/hive/jan_.
+
+### Cat
+
+The `key cat` command displays the contents of a specific Ozone key to 
standard output.
+
+***Params:***
+
+| Arguments                      |  Comment                                |
+|--------------------------------|-----------------------------------------|
+|  Uri                           | The name of the key in 
**/volume/bucket/key** format.
+
+
+{{< highlight bash >}}
+ozone sh key cat /hive/jan/hello.txt
+{{< /highlight >}}
+Displays the contents of the key hello.txt from the _/hive/jan_ bucket to 
standard output.
diff --git a/hadoop-hdds/docs/content/shell/KeyCommands.zh.md 
b/hadoop-hdds/docs/content/shell/KeyCommands.zh.md
index dc19678..5551ce8 100644
--- a/hadoop-hdds/docs/content/shell/KeyCommands.zh.md
+++ b/hadoop-hdds/docs/content/shell/KeyCommands.zh.md
@@ -29,6 +29,7 @@ Ozone shell 提供以下键命令:
   * [查看](#查看)
   * [列举](#列举)
   * [重命名](#重命名)
+  * [Cat](#cat)
 
 
 ### 下载
@@ -136,3 +137,19 @@ ozone sh key rename /hive/jan sales.orc new_name.orc
 {{< /highlight >}}
 
 上述命令会将 _/hive/jan_ 桶中的 _sales.orc_ 重命名为 _new\_name.orc_ 。
+
+### Cat
+
+`key cat` 命令用来把指定的键的内容输出到终端。
+
+***参数:***
+
+| 参数名                          |  说明                                |
+|--------------------------------|-----------------------------------------|
+|  Uri                           | 键名,格式为 **/volume/bucket/key**
+
+
+{{< highlight bash >}}
+ozone sh key cat /hive/jan/hello.txt
+{{< /highlight >}}
+上述命令会将 _/hive/jan_ 桶中的 hello.txt 的内容输出到标准输出中来。
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to