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:21:30 UTC

[GitHub] [hadoop-ozone] iamabug opened a new pull request #474: HDDS-2742. shell/Format.md translation

iamabug opened a new pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474
 
 
   ## What changes were proposed in this pull request?
   
   one .md file
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-2742
   
   ## How was this patch tested?
   
   hugo server -D

----------------------------------------------------------------
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


[GitHub] [hadoop-ozone] iamabug commented on issue #474: HDDS-2742. shell/Format.md translation

Posted by GitBox <gi...@apache.org>.
iamabug commented on issue #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474#issuecomment-577015812
 
 
   @xiaoyuyao Could you help review this ? Thanks.

----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474#discussion_r369844431
 
 

 ##########
 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 的帮助命令既可以在 _对象_ 级别调用,也可以在 _动作_ 级别调用。
 
 Review comment:
   动作=>操作

----------------------------------------------------------------
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


[GitHub] [hadoop-ozone] xiaoyuyao merged pull request #474: HDDS-2742. shell/Format.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao merged pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474
 
 
   

----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
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


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

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474#discussion_r369846725
 
 

 ##########
 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:
   Please fix the original one as well。

----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474#discussion_r369846623
 
 

 ##########
 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:
   Good catch, this should be schema。

----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474#discussion_r369845454
 
 

 ##########
 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 >}}
+
+此命令会列出所有对卷的可能操作。
+
+或者你可以通过帮助命令查看特定操作的解释,比如:
 
 Review comment:
   或者你可以通过帮助命令查看特定操作的解释=》你也可以通过它查看特定操作的帮助
   

----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474#discussion_r369848692
 
 

 ##########
 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 的使用是可选的。
+
+2. **Server:Port** - OM 的地址,如果省略了端口, 则使用 ozone-site.xml 中的默认端口。
+
+根据具体的命令不同,卷名、桶名和键名也将构成 URL 的一部分,更多细节请查看各命令的说明。
 
 Review comment:
   卷名、桶名和键名也将构成 URL 的一部分=》卷名、桶名和键名将用来构成 URL。
   更多细节请查看各命令的说明=》卷、桶和键命令的文档有更多具体的说明

----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474#discussion_r369847205
 
 

 ##########
 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:
    **Schema** - 可选,默认为 `o3`,表示使用原生 RPC 协议来访问 Ozone API。

----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474#discussion_r369846263
 
 

 ##########
 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 可以指向卷、桶或键,格式如下:
 
 Review comment:
   URL=》Ozone URL

----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #474: HDDS-2742. shell/Format.md translation
URL: https://github.com/apache/hadoop-ozone/pull/474#discussion_r369846100
 
 

 ##########
 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 等等。
 
 Review comment:
   动作=》操作

----------------------------------------------------------------
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