You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/01/22 05:23:29 UTC

[GitHub] [hadoop-ozone] iamabug commented on a change in pull request #474: HDDS-2742. shell/Format.md translation

iamabug commented on a change in pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474#discussion_r369374588
 
 

 ##########
 File path: hadoop-hdds/docs/content/shell/Format.zh.md
 ##########
 @@ -0,0 +1,65 @@
+---
+title: Shell 概述
+summary: shell 命令的语法介绍。
+weight: 1
+---
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+Ozone shell 的帮助命令既可以在 _对象_ 级别调用,也可以在 _动作_ 级别调用。
+比如:
+
+{{< highlight bash >}}
+ozone sh volume --help
+{{< /highlight >}}
+
+此命令会列出所有对卷的可能操作。
+
+或者你可以通过帮助命令查看特定操作的解释,比如:
+
+{{< highlight bash >}}
+ozone sh volume create --help
+{{< /highlight >}}
+
+这条命令会给出 create 命令的命令行选项。
+
+</p>
+
+
+### 通用命令格式
+
+Ozone shell 命令都遵照以下格式:
+
+> _ozone sh object action url_
+
+**ozone** 脚本用来调用所有 Ozone 子命令,ozone shell 通过 ```sh``` 子命令调用。
+
+对象可以是卷、桶或键,动作一般是各种动词,比如 create、list、delete 等等。
+
+
+URL 可以指向卷、桶或键,格式如下:
+
+_\[scheme\]\[server:port\]/volume/bucket/key_
+
+
+其中,
+
+1. **Scheme** - 应当为 `o3`,表示使用原生 RPC 协议来访问 Ozone API,scheme 的使用是可选的。
 
 Review comment:
   `scheme` and `schema` both occur in original doc, not sure which one is correct.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org