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:35:55 UTC

[GitHub] [hadoop-ozone] iamabug opened a new pull request #475: HDDS_2743. shell/VolumeCommands.md translation

iamabug opened a new pull request #475: HDDS_2743. shell/VolumeCommands.md translation
URL: https://github.com/apache/hadoop-ozone/pull/475
 
 
   ## 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-2743
   
   ## 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 #475: HDDS_2743. shell/VolumeCommands.md translation

Posted by GitBox <gi...@apache.org>.
iamabug commented on issue #475: HDDS_2743. shell/VolumeCommands.md translation
URL: https://github.com/apache/hadoop-ozone/pull/475#issuecomment-577016185
 
 
   @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 merged pull request #475: HDDS-2743. shell/VolumeCommands.md translation

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

----------------------------------------------------------------
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 #475: HDDS_2743. shell/VolumeCommands.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #475: HDDS_2743. shell/VolumeCommands.md translation
URL: https://github.com/apache/hadoop-ozone/pull/475#discussion_r369863722
 
 

 ##########
 File path: hadoop-hdds/docs/content/shell/VolumeCommands.zh.md
 ##########
 @@ -0,0 +1,107 @@
+---
+title: 卷命令
+weight: 2
+summary: 卷命令帮助你管理卷的生命周期
+---
+<!---
+  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.
+-->
+
+Volume 命令通常需要管理员权限,ozone shell 支持以下卷命令:
+
+  * [创建](#创建)
+  * [删除](#删除)
+  * [查看](#查看)
+  * [列举](#列举)
+  * [更新](#更新)
+
+### 创建
+
+管理员可以通过 `volume create` 命令创建一个卷并分配给一个用户。
+
+***参数:***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+| -q, \-\-quota                    | 可选,指明该卷在 Ozone 集群所能使用的最大空间,即份额。         |
 
 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 #475: HDDS_2743. shell/VolumeCommands.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #475: HDDS_2743. shell/VolumeCommands.md translation
URL: https://github.com/apache/hadoop-ozone/pull/475#discussion_r369864563
 
 

 ##########
 File path: hadoop-hdds/docs/content/shell/VolumeCommands.zh.md
 ##########
 @@ -0,0 +1,107 @@
+---
+title: 卷命令
+weight: 2
+summary: 卷命令帮助你管理卷的生命周期
+---
+<!---
+  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.
+-->
+
+Volume 命令通常需要管理员权限,ozone shell 支持以下卷命令:
+
+  * [创建](#创建)
+  * [删除](#删除)
+  * [查看](#查看)
+  * [列举](#列举)
+  * [更新](#更新)
+
+### 创建
+
+管理员可以通过 `volume create` 命令创建一个卷并分配给一个用户。
+
+***参数:***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+| -q, \-\-quota                    | 可选,指明该卷在 Ozone 集群所能使用的最大空间,即份额。         |
+| -u, \-\-user                     |  必需,指明该卷的所有者,此用户可以在该卷中创建桶和键。    |
+|  Uri                           | 卷名                                       |
+
+{{< highlight bash >}}
+ozone sh volume create --quota=1TB --user=bilbo /hive
+{{< /highlight >}}
+
+上述命令会在 ozone 集群中创建名为 _hive_ 的卷,卷的份额为 1TB,所有者为 _bilbo_ 。
+
+### 删除
+
+管理员可以通过 `volume delete` 命令删除一个卷,如果卷不为空,此命令将失败。
+
+***参数***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+|  Uri                           | 卷名 |
+
+{{< highlight bash >}}
+ozone sh volume delete /hive
+{{< /highlight >}}
+
+如果 hive 卷中不包含任何桶,上述命令将删除 hive 卷。
+
+### 查看
+
+通过 `volume info` 命令可以获取卷的份额和所有者信息。
+
+***参数:***
+
+| 参数名                     |  说明                                |
+|--------------------------------|-----------------------------------------|
+|  Uri                           | 卷名     | 
+
+{{< highlight bash >}}
+ozone sh volume info /hive
+{{< /highlight >}}
+
+上述命令会打印出 hive 卷的相关信息。
+
+### 列举
+
+`volume list` 命令用来列举一个用户拥有的所有卷。
+
+{{< highlight bash >}}
+ozone sh volume list --user hadoop
+{{< /highlight >}}
+
+上述命令会打印出 hadoop 用户拥有的所有卷。
+
+### 更新
+
+`volume update` 命令用来修改卷的所有者和份额。
+
+***参数***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+| -q, \-\-quota                    | 可选,重新指定该卷在 Ozone 集群中的份额。  |
 
 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 #475: HDDS_2743. shell/VolumeCommands.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #475: HDDS_2743. shell/VolumeCommands.md translation
URL: https://github.com/apache/hadoop-ozone/pull/475#discussion_r369863309
 
 

 ##########
 File path: hadoop-hdds/docs/content/shell/VolumeCommands.zh.md
 ##########
 @@ -0,0 +1,107 @@
+---
+title: 卷命令
+weight: 2
+summary: 卷命令帮助你管理卷的生命周期
+---
+<!---
+  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.
+-->
+
+Volume 命令通常需要管理员权限,ozone shell 支持以下卷命令:
 
 Review comment:
   Volume 命令=》卷命令

----------------------------------------------------------------
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 #475: HDDS_2743. shell/VolumeCommands.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #475: HDDS_2743. shell/VolumeCommands.md translation
URL: https://github.com/apache/hadoop-ozone/pull/475#discussion_r369864457
 
 

 ##########
 File path: hadoop-hdds/docs/content/shell/VolumeCommands.zh.md
 ##########
 @@ -0,0 +1,107 @@
+---
+title: 卷命令
+weight: 2
+summary: 卷命令帮助你管理卷的生命周期
+---
+<!---
+  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.
+-->
+
+Volume 命令通常需要管理员权限,ozone shell 支持以下卷命令:
+
+  * [创建](#创建)
+  * [删除](#删除)
+  * [查看](#查看)
+  * [列举](#列举)
+  * [更新](#更新)
+
+### 创建
+
+管理员可以通过 `volume create` 命令创建一个卷并分配给一个用户。
+
+***参数:***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+| -q, \-\-quota                    | 可选,指明该卷在 Ozone 集群所能使用的最大空间,即份额。         |
+| -u, \-\-user                     |  必需,指明该卷的所有者,此用户可以在该卷中创建桶和键。    |
+|  Uri                           | 卷名                                       |
+
+{{< highlight bash >}}
+ozone sh volume create --quota=1TB --user=bilbo /hive
+{{< /highlight >}}
+
+上述命令会在 ozone 集群中创建名为 _hive_ 的卷,卷的份额为 1TB,所有者为 _bilbo_ 。
+
+### 删除
+
+管理员可以通过 `volume delete` 命令删除一个卷,如果卷不为空,此命令将失败。
+
+***参数***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+|  Uri                           | 卷名 |
+
+{{< highlight bash >}}
+ozone sh volume delete /hive
+{{< /highlight >}}
+
+如果 hive 卷中不包含任何桶,上述命令将删除 hive 卷。
+
+### 查看
+
+通过 `volume info` 命令可以获取卷的份额和所有者信息。
+
+***参数:***
+
+| 参数名                     |  说明                                |
+|--------------------------------|-----------------------------------------|
+|  Uri                           | 卷名     | 
+
+{{< highlight bash >}}
+ozone sh volume info /hive
+{{< /highlight >}}
+
+上述命令会打印出 hive 卷的相关信息。
+
+### 列举
+
+`volume list` 命令用来列举一个用户拥有的所有卷。
+
+{{< highlight bash >}}
+ozone sh volume list --user hadoop
+{{< /highlight >}}
+
+上述命令会打印出 hadoop 用户拥有的所有卷。
+
+### 更新
+
+`volume update` 命令用来修改卷的所有者和份额。
 
 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 #475: HDDS_2743. shell/VolumeCommands.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #475: HDDS_2743. shell/VolumeCommands.md translation
URL: https://github.com/apache/hadoop-ozone/pull/475#discussion_r369863962
 
 

 ##########
 File path: hadoop-hdds/docs/content/shell/VolumeCommands.zh.md
 ##########
 @@ -0,0 +1,107 @@
+---
+title: 卷命令
+weight: 2
+summary: 卷命令帮助你管理卷的生命周期
+---
+<!---
+  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.
+-->
+
+Volume 命令通常需要管理员权限,ozone shell 支持以下卷命令:
+
+  * [创建](#创建)
+  * [删除](#删除)
+  * [查看](#查看)
+  * [列举](#列举)
+  * [更新](#更新)
+
+### 创建
+
+管理员可以通过 `volume create` 命令创建一个卷并分配给一个用户。
+
+***参数:***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+| -q, \-\-quota                    | 可选,指明该卷在 Ozone 集群所能使用的最大空间,即份额。         |
+| -u, \-\-user                     |  必需,指明该卷的所有者,此用户可以在该卷中创建桶和键。    |
+|  Uri                           | 卷名                                       |
+
+{{< highlight bash >}}
+ozone sh volume create --quota=1TB --user=bilbo /hive
+{{< /highlight >}}
+
+上述命令会在 ozone 集群中创建名为 _hive_ 的卷,卷的份额为 1TB,所有者为 _bilbo_ 。
 
 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 #475: HDDS_2743. shell/VolumeCommands.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #475: HDDS_2743. shell/VolumeCommands.md translation
URL: https://github.com/apache/hadoop-ozone/pull/475#discussion_r369864630
 
 

 ##########
 File path: hadoop-hdds/docs/content/shell/VolumeCommands.zh.md
 ##########
 @@ -0,0 +1,107 @@
+---
+title: 卷命令
+weight: 2
+summary: 卷命令帮助你管理卷的生命周期
+---
+<!---
+  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.
+-->
+
+Volume 命令通常需要管理员权限,ozone shell 支持以下卷命令:
+
+  * [创建](#创建)
+  * [删除](#删除)
+  * [查看](#查看)
+  * [列举](#列举)
+  * [更新](#更新)
+
+### 创建
+
+管理员可以通过 `volume create` 命令创建一个卷并分配给一个用户。
+
+***参数:***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+| -q, \-\-quota                    | 可选,指明该卷在 Ozone 集群所能使用的最大空间,即份额。         |
+| -u, \-\-user                     |  必需,指明该卷的所有者,此用户可以在该卷中创建桶和键。    |
+|  Uri                           | 卷名                                       |
+
+{{< highlight bash >}}
+ozone sh volume create --quota=1TB --user=bilbo /hive
+{{< /highlight >}}
+
+上述命令会在 ozone 集群中创建名为 _hive_ 的卷,卷的份额为 1TB,所有者为 _bilbo_ 。
+
+### 删除
+
+管理员可以通过 `volume delete` 命令删除一个卷,如果卷不为空,此命令将失败。
+
+***参数***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+|  Uri                           | 卷名 |
+
+{{< highlight bash >}}
+ozone sh volume delete /hive
+{{< /highlight >}}
+
+如果 hive 卷中不包含任何桶,上述命令将删除 hive 卷。
+
+### 查看
+
+通过 `volume info` 命令可以获取卷的份额和所有者信息。
+
+***参数:***
+
+| 参数名                     |  说明                                |
+|--------------------------------|-----------------------------------------|
+|  Uri                           | 卷名     | 
+
+{{< highlight bash >}}
+ozone sh volume info /hive
+{{< /highlight >}}
+
+上述命令会打印出 hive 卷的相关信息。
+
+### 列举
+
+`volume list` 命令用来列举一个用户拥有的所有卷。
+
+{{< highlight bash >}}
+ozone sh volume list --user hadoop
+{{< /highlight >}}
+
+上述命令会打印出 hadoop 用户拥有的所有卷。
+
+### 更新
+
+`volume update` 命令用来修改卷的所有者和份额。
+
+***参数***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+| -q, \-\-quota                    | 可选,重新指定该卷在 Ozone 集群中的份额。  |
+| -u, \-\-user                     | 可选,重新指定该卷的所有者 |
+|  Uri                           | 卷名                                        |
+
+{{< highlight bash >}}
+ozone sh volume update --quota=10TB /hive
+{{< /highlight >}}
+
+上述命令将 hive 卷的份额更新为 10TB。
 
 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 #475: HDDS_2743. shell/VolumeCommands.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #475: HDDS_2743. shell/VolumeCommands.md translation
URL: https://github.com/apache/hadoop-ozone/pull/475#discussion_r369863221
 
 

 ##########
 File path: hadoop-hdds/docs/content/shell/VolumeCommands.zh.md
 ##########
 @@ -0,0 +1,107 @@
+---
+title: 卷命令
+weight: 2
+summary: 卷命令帮助你管理卷的生命周期
 
 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