-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-5564. feature/PrefixFSO.md translation #2582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
41c0148
HDDS-5564. feature/PrefixFSO.md translation
iamabug 2bdf54b
suggested changes applied
iamabug 429d6d3
full path modified
iamabug 54b2ebe
Merge remote-tracking branch 'asf/master' into HDDS-5564
smengcl 317e610
Amend the doc slightly as the original doc is updated since
smengcl 2e104ea
Merge remote-tracking branch 'asf/master' into HDDS-5564
smengcl 100d764
Update `Configuration` section.
smengcl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| --- | ||
| title: "基于前缀的文件系统优化" | ||
| weight: 2 | ||
| menu: | ||
| main: | ||
| parent: 特性 | ||
| 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. | ||
| --> | ||
|
|
||
| 基于前缀的文件系统优化特性支持命名空间中任意级别目录的重命名和删除操作,且操作均能在常数时间内完成。 | ||
|
|
||
| 若要启用该特性,需要在创建桶时指定 `--layout` 参数为 `FILE_SYSTEM_OPTIMIZED`. | ||
|
|
||
| ```bash | ||
| ozone sh bucket create /<volume-name>/<bucket-name> --layout FILE_SYSTEM_OPTIMIZED | ||
| ``` | ||
|
|
||
| 注意:在启用基于前缀的文件系统优化的桶中,对 Hadoop 文件系统的兼容性优先于对 S3 的兼容性,某些不规范的 S3 键名在操作时将会被拒绝或规范化。 | ||
|
|
||
| 当 Ozone 中的桶主要通过兼容 Hadoop 的接口使用,尤其是涉及到较深目录层级下的大量文件时,强烈推荐开启该特性。 | ||
|
|
||
| ## OzoneManager 元数据布局格式 | ||
| OzoneManager 支持两种元数据布局格式:简单布局格式和基于前缀的布局格式。 | ||
|
|
||
| 在简单布局格式中,OM 采用完整路径名来存储每个键的元数据。在基于前缀的优化布局格式中,OM 将中间目录的元数据存储在 `DirectoryTable` 中,将文件的元数据存储在 `FileTable` 中,如下图所示。两张表中的主键是以父目录唯一标识符为前缀的文件名或目录名, 形如 `<parent unique-id>/<filename>`。 | ||
|
|
||
|  | ||
|
|
||
|
|
||
| ### 基于前缀布局的目录删除操作 ### | ||
| 下图描述了进行目录删除操作时 OM 的元数据变化。 | ||
|
|
||
|  | ||
|
|
||
| ### 基于前缀布局的目录重命名操作 ### | ||
| 下图描述了进行目录重命名操作时 OM 的元数据变化。 | ||
|
|
||
|  | ||
|
|
||
| ## 配置 | ||
|
|
||
| 可以在 `ozone-site.xml` 中加入以下配置来设定创建桶时,客户端未指定桶样式时的默认的桶样式: | ||
| 可用的值有 `OBJECT_STORE`, `FILE_SYSTEM_OPTIMIZED` 和 `LEGACY`. | ||
|
|
||
| 若该配置的值为空,则默认值为 `LEGACY`. | ||
|
|
||
| ```XML | ||
|
|
||
| <property> | ||
| <name>ozone.default.bucket.layout</name> | ||
| <value/> | ||
| </property> | ||
| ``` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.