You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ne...@apache.org on 2021/01/15 05:19:34 UTC

[ozone] branch master updated: HDDS-4663. Missing "Expose any volume" content in S3.md (ZH Docs) (#1771)

This is an automated email from the ASF dual-hosted git repository.

neoyang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new ee4c8f1  HDDS-4663. Missing "Expose any volume" content in S3.md (ZH Docs) (#1771)
ee4c8f1 is described below

commit ee4c8f1259240d33d0fc45761a29821c569825a0
Author: sky76093016 <72...@users.noreply.github.com>
AuthorDate: Fri Jan 15 13:19:19 2021 +0800

    HDDS-4663. Missing "Expose any volume" content in S3.md (ZH Docs) (#1771)
---
 hadoop-hdds/docs/content/interface/S3.zh.md | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/hadoop-hdds/docs/content/interface/S3.zh.md b/hadoop-hdds/docs/content/interface/S3.zh.md
index 178c72b..45a15f5 100644
--- a/hadoop-hdds/docs/content/interface/S3.zh.md
+++ b/hadoop-hdds/docs/content/interface/S3.zh.md
@@ -27,6 +27,8 @@ summary: Ozone 支持 Amazon 的 Simple Storage Service (S3) 协议,事实上
 
 Ozone 提供了兼容 S3 的 REST 接口,你可以使用任何兼容 S3 的工具来操作 Ozone 的对象存储数据。
 
+S3 桶存放在 `/s3v` 卷下。
+
 ## 起步
 
 S3 网关是提供兼容 S3 的 API 的独立组件,它应当和普通的 Ozone 组件分别启动。
@@ -111,6 +113,23 @@ export AWS_SECRET_ACCESS_KEY=c261b6ecabf7d37d5f9ded654b1c724adac9bd9f13e247a235e
 aws s3api --endpoint http://localhost:9878 create-bucket --bucket bucket1
 ```
 
+## 公开任何卷
+
+Ozone 与 S3 相比,Ozone 在命名空间层次结构中多了一个元素:卷。默认情况下,可以使用 S3 接口访问 `/s3v` 卷的所有存储桶,但仅有 `/s3v` 卷的(Ozone)存储桶被公开。
+
+为了使 S3 接口上的任何其他桶可用,可以创建一个“符号链接”的桶:
+
+```bash
+ozone sh volume create /s3v
+ozone sh volume create /vol1
+
+ozone sh bucket create /vol1/bucket1
+ozone sh bucket link /vol1/bucket1 /s3v/common-bucket
+```
+
+本例通过 S3 接口将 `/vol1/bucket1` Ozone 桶公开为 S3 兼容的 `common-bucket`。
+
+(注:桶链接功能的实现细节可在[设计文档]({{< ref path="design/volume-management.md" lang="en">}})中找到)
 
 ## 客户端
 


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