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/02/03 07:00:03 UTC

[GitHub] [hadoop-ozone] iamabug opened a new pull request #518: HDDS-2791. concept/OzoneManager.md translation

iamabug opened a new pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518
 
 
   ## What changes were proposed in this pull request?
   
   one .md file added
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-2791
   
   ## 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] xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#discussion_r377384996
 
 

 ##########
 File path: hadoop-hdds/docs/content/concept/OzoneManager.zh.md
 ##########
 @@ -0,0 +1,64 @@
+---
+title: "Ozone Manager"
+date: "2017-09-14"
+weight: 2
+summary: Ozone Manager 是 Ozone 主要的命名空间服务,它管理了卷、桶和键的生命周期。
+---
+<!---
+  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 Manager(OM)管理 Ozone 的命名空间。
+
+当向 Ozone 写入数据时,你需要向 OM 请求一个块,OM 会返回一个块并记录下相关信息。当你想要读取那个文件时,你也需要先通过 OM 获取那个块的地址。
+
+OM 允许用户在卷和桶下管理键,卷和桶都是命名空间的一部分,也由 OM 管理。
+
+每个卷都是一个独立的命名空间的根元素,这一点和 HDFS 不同,HDFS 提供的是单个根元素的文件系统。
 
 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 #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#discussion_r377798973
 
 

 ##########
 File path: hadoop-hdds/docs/content/concept/OzoneManager.zh.md
 ##########
 @@ -0,0 +1,64 @@
+---
+title: "Ozone Manager"
+date: "2017-09-14"
+weight: 2
+summary: Ozone Manager 是 Ozone 主要的命名空间服务,它管理了卷、桶和键的生命周期。
+---
+<!---
+  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 Manager(OM)管理 Ozone 的命名空间。
+
+当向 Ozone 写入数据时,你需要向 OM 请求一个块,OM 会返回一个块并记录下相关信息。当你想要读取那个文件时,你也需要先通过 OM 获取那个块的地址。
+
+OM 允许用户在卷和桶下管理键,卷和桶都是命名空间的一部分,也由 OM 管理。
+
+每个卷都是一个独立的命名空间的根元素,这一点和 HDFS 不同,HDFS 提供的是单个根元素的文件系统。
+
+Ozone 的命名空间是卷的集合,与 HDFS 中单根的树状结构相比,可以看作是个森林,因此可以非常容易地部署多个 OM 来进行扩展。
+
+## Ozone Manager 元数据
+
+OM 维护了卷、桶和键的列表。它为每个用户维护卷的列表,为每个卷维护桶的列表,为每个桶维护键的列表。
+
+OM 使用 Apache Ratis(Raft 协议的一种实现)来复制 OM 的状态,这为 Ozone 提供了高可用性保证。
+
+
+## Ozone Manager 和 Storage Container Manager
+
+为了方便理解 OM 和 SCM 之间的关系,我们来看看写入键和读取键的过程。
+
+### 写入键
+
+* 为了向 Ozone 中的某个卷下的某个桶的某个键写入数据,用户需要先向 OM 发起写请求,OM 会判断该用户是否有权限写入该键,如果有权限,OM 需要分配给用户一个块用于写数据。
+
+* 要获得一个块,OM 需要向 SCM 发送请求(SCM 是数据节点的管理者),SCM 选择三个数据节点,创建新块并向 OM 返回块 ID。
 
 Review comment:
   要获得一个块,OM 需要向 SCM 发送请求=》OM通过SCM请求分配一个块。

----------------------------------------------------------------
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 issue #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on issue #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#issuecomment-589283113
 
 
   LGTM for the new change. Can you rebase @iamabug?

----------------------------------------------------------------
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 #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#discussion_r377799520
 
 

 ##########
 File path: hadoop-hdds/docs/content/concept/OzoneManager.zh.md
 ##########
 @@ -0,0 +1,64 @@
+---
+title: "Ozone Manager"
+date: "2017-09-14"
+weight: 2
+summary: Ozone Manager 是 Ozone 主要的命名空间服务,它管理了卷、桶和键的生命周期。
+---
+<!---
+  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 Manager(OM)管理 Ozone 的命名空间。
+
+当向 Ozone 写入数据时,你需要向 OM 请求一个块,OM 会返回一个块并记录下相关信息。当你想要读取那个文件时,你也需要先通过 OM 获取那个块的地址。
+
+OM 允许用户在卷和桶下管理键,卷和桶都是命名空间的一部分,也由 OM 管理。
+
+每个卷都是一个独立的命名空间的根元素,这一点和 HDFS 不同,HDFS 提供的是单个根元素的文件系统。
+
+Ozone 的命名空间是卷的集合,与 HDFS 中单根的树状结构相比,可以看作是个森林,因此可以非常容易地部署多个 OM 来进行扩展。
+
+## Ozone Manager 元数据
+
+OM 维护了卷、桶和键的列表。它为每个用户维护卷的列表,为每个卷维护桶的列表,为每个桶维护键的列表。
+
+OM 使用 Apache Ratis(Raft 协议的一种实现)来复制 OM 的状态,这为 Ozone 提供了高可用性保证。
+
+
+## Ozone Manager 和 Storage Container Manager
+
+为了方便理解 OM 和 SCM 之间的关系,我们来看看写入键和读取键的过程。
+
+### 写入键
+
+* 为了向 Ozone 中的某个卷下的某个桶的某个键写入数据,用户需要先向 OM 发起写请求,OM 会判断该用户是否有权限写入该键,如果有权限,OM 需要分配给用户一个块用于写数据。
+
+* 要获得一个块,OM 需要向 SCM 发送请求(SCM 是数据节点的管理者),SCM 选择三个数据节点,创建新块并向 OM 返回块 ID。
 
 Review comment:
   创建新块并向 OM 返回块 ID=》分配新块并向 OM 返回块 标识。

----------------------------------------------------------------
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 #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao merged pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518
 
 
   

----------------------------------------------------------------
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 #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#discussion_r377386069
 
 

 ##########
 File path: hadoop-hdds/docs/content/concept/OzoneManager.zh.md
 ##########
 @@ -0,0 +1,64 @@
+---
+title: "Ozone Manager"
+date: "2017-09-14"
+weight: 2
+summary: Ozone Manager 是 Ozone 主要的命名空间服务,它管理了卷、桶和键的生命周期。
+---
+<!---
+  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 Manager(OM)管理 Ozone 的命名空间。
+
+当向 Ozone 写入数据时,你需要向 OM 请求一个块,OM 会返回一个块并记录下相关信息。当你想要读取那个文件时,你也需要先通过 OM 获取那个块的地址。
+
+OM 允许用户在卷和桶下管理键,卷和桶都是命名空间的一部分,也由 OM 管理。
+
+每个卷都是一个独立的命名空间的根元素,这一点和 HDFS 不同,HDFS 提供的是单个根元素的文件系统。
+
+Ozone 的命名空间是卷的集合,与 HDFS 中单根的树状结构相比,可以看作是个森林,因此可以非常容易地部署多个 OM 来进行扩展。
 
 Review comment:
   Ozone 的命名空间是卷的集合,与 HDFS 中单根的树状结构相比,可以看作是个森林=》
   与 HDFS 中单根的树状结构相比,Ozone 的命名空间是卷的集合,或者可以看作是个森林。

----------------------------------------------------------------
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 #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#discussion_r377802041
 
 

 ##########
 File path: hadoop-hdds/docs/content/concept/OzoneManager.zh.md
 ##########
 @@ -0,0 +1,64 @@
+---
+title: "Ozone Manager"
+date: "2017-09-14"
+weight: 2
+summary: Ozone Manager 是 Ozone 主要的命名空间服务,它管理了卷、桶和键的生命周期。
+---
+<!---
+  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 Manager(OM)管理 Ozone 的命名空间。
+
+当向 Ozone 写入数据时,你需要向 OM 请求一个块,OM 会返回一个块并记录下相关信息。当你想要读取那个文件时,你也需要先通过 OM 获取那个块的地址。
+
+OM 允许用户在卷和桶下管理键,卷和桶都是命名空间的一部分,也由 OM 管理。
+
+每个卷都是一个独立的命名空间的根元素,这一点和 HDFS 不同,HDFS 提供的是单个根元素的文件系统。
+
+Ozone 的命名空间是卷的集合,与 HDFS 中单根的树状结构相比,可以看作是个森林,因此可以非常容易地部署多个 OM 来进行扩展。
+
+## Ozone Manager 元数据
+
+OM 维护了卷、桶和键的列表。它为每个用户维护卷的列表,为每个卷维护桶的列表,为每个桶维护键的列表。
+
+OM 使用 Apache Ratis(Raft 协议的一种实现)来复制 OM 的状态,这为 Ozone 提供了高可用性保证。
+
+
+## Ozone Manager 和 Storage Container Manager
+
+为了方便理解 OM 和 SCM 之间的关系,我们来看看写入键和读取键的过程。
+
+### 写入键
+
+* 为了向 Ozone 中的某个卷下的某个桶的某个键写入数据,用户需要先向 OM 发起写请求,OM 会判断该用户是否有权限写入该键,如果有权限,OM 需要分配给用户一个块用于写数据。
+
+* 要获得一个块,OM 需要向 SCM 发送请求(SCM 是数据节点的管理者),SCM 选择三个数据节点,创建新块并向 OM 返回块 ID。
+
+* OM 在自己的元数据中记录下块的信息,然后将块和块 token(带有向该块写数据的权限)返回给用户。
+
+* 用户使用块 token 证明自己有权限向该块写入数据,并向对应的数据节点写入数据。
+
+* 数据写入完成后,用户会更新该块在 OM 中的信息。
+
+
+### 读取键
+
+* 键读取相对比较简单,用户首先向 OM 请求块列表。
 
 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 #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#discussion_r377797493
 
 

 ##########
 File path: hadoop-hdds/docs/content/concept/OzoneManager.zh.md
 ##########
 @@ -0,0 +1,64 @@
+---
+title: "Ozone Manager"
+date: "2017-09-14"
+weight: 2
+summary: Ozone Manager 是 Ozone 主要的命名空间服务,它管理了卷、桶和键的生命周期。
+---
+<!---
+  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 Manager(OM)管理 Ozone 的命名空间。
+
+当向 Ozone 写入数据时,你需要向 OM 请求一个块,OM 会返回一个块并记录下相关信息。当你想要读取那个文件时,你也需要先通过 OM 获取那个块的地址。
+
+OM 允许用户在卷和桶下管理键,卷和桶都是命名空间的一部分,也由 OM 管理。
+
+每个卷都是一个独立的命名空间的根元素,这一点和 HDFS 不同,HDFS 提供的是单个根元素的文件系统。
+
+Ozone 的命名空间是卷的集合,与 HDFS 中单根的树状结构相比,可以看作是个森林,因此可以非常容易地部署多个 OM 来进行扩展。
+
+## Ozone Manager 元数据
+
+OM 维护了卷、桶和键的列表。它为每个用户维护卷的列表,为每个卷维护桶的列表,为每个桶维护键的列表。
+
+OM 使用 Apache Ratis(Raft 协议的一种实现)来复制 OM 的状态,这为 Ozone 提供了高可用性保证。
+
+
+## Ozone Manager 和 Storage Container Manager
+
+为了方便理解 OM 和 SCM 之间的关系,我们来看看写入键和读取键的过程。
+
+### 写入键
+
+* 为了向 Ozone 中的某个卷下的某个桶的某个键写入数据,用户需要先向 OM 发起写请求,OM 会判断该用户是否有权限写入该键,如果有权限,OM 需要分配给用户一个块用于写数据。
 
 Review comment:
   如果有权限,OM 需要分配给用户一个块用于写数据。=》如果权限许可,OM分配一个块用于ozone客户端数据写入。

----------------------------------------------------------------
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 #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#discussion_r377385539
 
 

 ##########
 File path: hadoop-hdds/docs/content/concept/OzoneManager.zh.md
 ##########
 @@ -0,0 +1,64 @@
+---
+title: "Ozone Manager"
+date: "2017-09-14"
+weight: 2
+summary: Ozone Manager 是 Ozone 主要的命名空间服务,它管理了卷、桶和键的生命周期。
+---
+<!---
+  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 Manager(OM)管理 Ozone 的命名空间。
+
+当向 Ozone 写入数据时,你需要向 OM 请求一个块,OM 会返回一个块并记录下相关信息。当你想要读取那个文件时,你也需要先通过 OM 获取那个块的地址。
+
+OM 允许用户在卷和桶下管理键,卷和桶都是命名空间的一部分,也由 OM 管理。
+
+每个卷都是一个独立的命名空间的根元素,这一点和 HDFS 不同,HDFS 提供的是单个根元素的文件系统。
 
 Review comment:
   每个卷都是一个独立的命名空间的根元素=》每个卷都是OM下的一个独立命名空间的根。

----------------------------------------------------------------
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 #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#discussion_r377801273
 
 

 ##########
 File path: hadoop-hdds/docs/content/concept/OzoneManager.zh.md
 ##########
 @@ -0,0 +1,64 @@
+---
+title: "Ozone Manager"
+date: "2017-09-14"
+weight: 2
+summary: Ozone Manager 是 Ozone 主要的命名空间服务,它管理了卷、桶和键的生命周期。
+---
+<!---
+  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 Manager(OM)管理 Ozone 的命名空间。
+
+当向 Ozone 写入数据时,你需要向 OM 请求一个块,OM 会返回一个块并记录下相关信息。当你想要读取那个文件时,你也需要先通过 OM 获取那个块的地址。
+
+OM 允许用户在卷和桶下管理键,卷和桶都是命名空间的一部分,也由 OM 管理。
+
+每个卷都是一个独立的命名空间的根元素,这一点和 HDFS 不同,HDFS 提供的是单个根元素的文件系统。
+
+Ozone 的命名空间是卷的集合,与 HDFS 中单根的树状结构相比,可以看作是个森林,因此可以非常容易地部署多个 OM 来进行扩展。
+
+## Ozone Manager 元数据
+
+OM 维护了卷、桶和键的列表。它为每个用户维护卷的列表,为每个卷维护桶的列表,为每个桶维护键的列表。
+
+OM 使用 Apache Ratis(Raft 协议的一种实现)来复制 OM 的状态,这为 Ozone 提供了高可用性保证。
+
+
+## Ozone Manager 和 Storage Container Manager
+
+为了方便理解 OM 和 SCM 之间的关系,我们来看看写入键和读取键的过程。
+
+### 写入键
+
+* 为了向 Ozone 中的某个卷下的某个桶的某个键写入数据,用户需要先向 OM 发起写请求,OM 会判断该用户是否有权限写入该键,如果有权限,OM 需要分配给用户一个块用于写数据。
+
+* 要获得一个块,OM 需要向 SCM 发送请求(SCM 是数据节点的管理者),SCM 选择三个数据节点,创建新块并向 OM 返回块 ID。
+
+* OM 在自己的元数据中记录下块的信息,然后将块和块 token(带有向该块写数据的权限)返回给用户。
 
 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 #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#discussion_r377795301
 
 

 ##########
 File path: hadoop-hdds/docs/content/concept/OzoneManager.zh.md
 ##########
 @@ -0,0 +1,64 @@
+---
+title: "Ozone Manager"
+date: "2017-09-14"
+weight: 2
+summary: Ozone Manager 是 Ozone 主要的命名空间服务,它管理了卷、桶和键的生命周期。
+---
+<!---
+  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 Manager(OM)管理 Ozone 的命名空间。
+
+当向 Ozone 写入数据时,你需要向 OM 请求一个块,OM 会返回一个块并记录下相关信息。当你想要读取那个文件时,你也需要先通过 OM 获取那个块的地址。
+
+OM 允许用户在卷和桶下管理键,卷和桶都是命名空间的一部分,也由 OM 管理。
+
+每个卷都是一个独立的命名空间的根元素,这一点和 HDFS 不同,HDFS 提供的是单个根元素的文件系统。
+
+Ozone 的命名空间是卷的集合,与 HDFS 中单根的树状结构相比,可以看作是个森林,因此可以非常容易地部署多个 OM 来进行扩展。
+
+## Ozone Manager 元数据
+
+OM 维护了卷、桶和键的列表。它为每个用户维护卷的列表,为每个卷维护桶的列表,为每个桶维护键的列表。
+
+OM 使用 Apache Ratis(Raft 协议的一种实现)来复制 OM 的状态,这为 Ozone 提供了高可用性保证。
+
+
+## Ozone Manager 和 Storage Container Manager
+
+为了方便理解 OM 和 SCM 之间的关系,我们来看看写入键和读取键的过程。
+
+### 写入键
+
+* 为了向 Ozone 中的某个卷下的某个桶的某个键写入数据,用户需要先向 OM 发起写请求,OM 会判断该用户是否有权限写入该键,如果有权限,OM 需要分配给用户一个块用于写数据。
 
 Review comment:
   用户=>Ozone客户端

----------------------------------------------------------------
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 #518: HDDS-2791. concept/OzoneManager.md translation

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #518: HDDS-2791. concept/OzoneManager.md translation
URL: https://github.com/apache/hadoop-ozone/pull/518#discussion_r377799520
 
 

 ##########
 File path: hadoop-hdds/docs/content/concept/OzoneManager.zh.md
 ##########
 @@ -0,0 +1,64 @@
+---
+title: "Ozone Manager"
+date: "2017-09-14"
+weight: 2
+summary: Ozone Manager 是 Ozone 主要的命名空间服务,它管理了卷、桶和键的生命周期。
+---
+<!---
+  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 Manager(OM)管理 Ozone 的命名空间。
+
+当向 Ozone 写入数据时,你需要向 OM 请求一个块,OM 会返回一个块并记录下相关信息。当你想要读取那个文件时,你也需要先通过 OM 获取那个块的地址。
+
+OM 允许用户在卷和桶下管理键,卷和桶都是命名空间的一部分,也由 OM 管理。
+
+每个卷都是一个独立的命名空间的根元素,这一点和 HDFS 不同,HDFS 提供的是单个根元素的文件系统。
+
+Ozone 的命名空间是卷的集合,与 HDFS 中单根的树状结构相比,可以看作是个森林,因此可以非常容易地部署多个 OM 来进行扩展。
+
+## Ozone Manager 元数据
+
+OM 维护了卷、桶和键的列表。它为每个用户维护卷的列表,为每个卷维护桶的列表,为每个桶维护键的列表。
+
+OM 使用 Apache Ratis(Raft 协议的一种实现)来复制 OM 的状态,这为 Ozone 提供了高可用性保证。
+
+
+## Ozone Manager 和 Storage Container Manager
+
+为了方便理解 OM 和 SCM 之间的关系,我们来看看写入键和读取键的过程。
+
+### 写入键
+
+* 为了向 Ozone 中的某个卷下的某个桶的某个键写入数据,用户需要先向 OM 发起写请求,OM 会判断该用户是否有权限写入该键,如果有权限,OM 需要分配给用户一个块用于写数据。
+
+* 要获得一个块,OM 需要向 SCM 发送请求(SCM 是数据节点的管理者),SCM 选择三个数据节点,创建新块并向 OM 返回块 ID。
 
 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