@@ -7,14 +7,15 @@ import DetailsWrap from '@site/src/components/DetailsWrap';
77import StepsWrap from '@site/src /components/StepsWrap';
88import StepContent from '@site/src /components/Steps/step-content';
99import Version from '@site/src /components/Version';
10+ import LanguageDocs from '@site/src /components/LanguageDocs';
1011
1112<FunctionDescription description =" 引入或更新: v1.2.168 " />
1213
1314import EEFeature from '@site/src /components/EEFeature';
1415
1516<EEFeature featureName =' 存储加密 ' />
1617
17- 本主题介绍如何使用您的对象存储部署 Databend。有关支持的对象存储解决方案列表,请参阅[ 了解部署模式 ] ( ../00-understanding-deployment-modes.md ) 。
18+ 本主题介绍如何使用您的对象存储部署 Databend。有关支持的对象存储解决方案列表,请参阅[ 理解部署模式 ] ( ../00-understanding-deployment-modes.md ) 。
1819
1920### 开始之前
2021
@@ -44,8 +45,8 @@ import TabItem from '@theme/TabItem';
4445
4546<TabItem value =" Google GCS " label =" Google GCS " >
4647
47- 1 . 按照 Google 文档中的主题 [ 创建新存储桶] ( https://cloud.google.com/storage/docs/creating-buckets#create_a_new_bucket ) 创建一个名为 ` my_bucket ` 的存储桶。
48- 2 . 按照 Google 文档中的主题 [ 创建服务账户密钥] ( https://cloud.google.com/iam/docs/keys-create-delete#creating ) 创建并下载服务账户密钥文件。
48+ 1 . 按照 Google 文档中的主题[ 创建新存储桶] ( https://cloud.google.com/storage/docs/creating-buckets#create_a_new_bucket ) 创建一个名为 ` my_bucket ` 的存储桶。
49+ 2 . 按照 Google 文档中的主题[ 创建服务账户密钥] ( https://cloud.google.com/iam/docs/keys-create-delete#creating ) 创建并下载服务账户密钥文件。
49503 . 使用 Base64 编码将服务账户密钥文件的内容转换为 Base64 编码字符串。例如,
5051
5152``` bash
@@ -108,8 +109,8 @@ base64 -i <path-to-your-key-file> -o ~/Desktop/base64-encoded-key.txt
108109
109110</TabItem >
110111
112+ <!-- #ifcndef -->
111113<TabItem value =" Huawei OBS " label =" Huawei OBS " >
112-
1131141 . 创建一个名为 ` my_bucket ` 的存储桶或容器。
1141152 . 获取连接到您创建的存储桶或容器的端点 URL。
1151163 . 获取您账户的访问密钥 ID 和秘密访问密钥。
@@ -118,8 +119,8 @@ base64 -i <path-to-your-key-file> -o ~/Desktop/base64-encoded-key.txt
118119
119120- [ https://support.huaweicloud.com/intl/zh-cn/usermanual-obs/zh-cn_topic_0045829088.html ] ( https://support.huaweicloud.com/intl/zh-cn/usermanual-obs/zh-cn_topic_0045829088.html )
120121- [ https://support.huaweicloud.com/intl/zh-cn/api-obs/obs_04_0116.html ] ( https://support.huaweicloud.com/intl/zh-cn/api-obs/obs_04_0116.html )
121-
122122</TabItem >
123+ <!-- #endcndef -->
123124
124125<TabItem value =" Wasabi " label =" Wasabi " >
125126
@@ -147,6 +148,7 @@ base64 -i <path-to-your-key-file> -o ~/Desktop/base64-encoded-key.txt
147148- [ https://min.io/docs/minio/container/administration/console/security-and-access.html ] ( https://min.io/docs/minio/container/administration/console/security-and-access.html )
148149
149150</TabItem >
151+
150152<TabItem value =" CubeFS " label =" CubeFS " >
151153
1521541 . 启动 ObjectNode 对象网关。
@@ -208,7 +210,7 @@ tar xzvf databend-[version]-aarch64-unknown-linux-musl.tar.gz
208210
209211</StepsWrap >
210212
211- ### 步骤 1: 部署 Meta 节点
213+ ### 步骤 1: 部署 Meta 节点
212214
213215按照以下说明部署 Meta 节点:
214216
@@ -238,7 +240,7 @@ curl -I http://127.0.0.1:28101/v1/health
238240</StepContent >
239241</StepsWrap >
240242
241- ### 步骤 2: 部署 Query 节点
243+ ### 步骤 2: 部署 Query 节点
242244
243245按照以下说明部署 Query 节点:
244246
@@ -251,7 +253,7 @@ curl -I http://127.0.0.1:28101/v1/health
2512531 . 在文件夹 ` /usr/local/databend/configs ` 中找到文件 ` databend-query.toml ` 。
2522542 . 在文件 ` databend-query.toml ` 中,设置 [ storage] 块中的参数 * type* ,并配置连接到您的对象存储的访问凭证和端点 URL。
253255
254- 要配置您的存储设置,请通过在每行开头添加 ` # ` 来注释掉 [ storage.fs] 部分。然后,通过删除 ` # ` 符号来取消注释适用于您的对象存储提供商的相关部分,并填写您的值 。
256+ 要配置您的存储设置,请通过在每行开头添加 ` # ` 来注释掉 [ storage.fs] 部分。然后,通过删除 ` # ` 符号并填写您的值来取消注释适用于您的对象存储提供商的相关部分 。
255257
256258<Tabs groupId =" operating-systems " >
257259
@@ -279,7 +281,7 @@ secret_access_key = "<your-access-key>"
279281
280282<TabItem value =" Google GCS " label =" Google GCS " >
281283
282- 对于 ` credential ` 参数,粘贴在步骤[ 设置您的对象存储] ( #setting-up-your-object-storage ) 中获得的 Base64 编码字符串(用双引号括起来)。
284+ 对于 ` credential ` 参数,粘贴在步骤 [ 设置您的对象存储] ( #setting-up-your-object-storage ) 中获得的 Base64 编码字符串(用双引号括起来)。
283285
284286``` toml title='databend-query.toml'
285287[storage ]
@@ -306,6 +308,8 @@ type = "azblob"
306308[storage .azblob ]
307309endpoint_url = " https://<your-storage-account-name>.blob.core.windows.net"
308310
311+
312+
309313# https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-portal#create-a-container
310314container = " my_bucket"
311315account_name = " <your-storage-account-name>"
@@ -318,20 +322,20 @@ account_key = "<your-account-key>"
318322
319323<TabItem value =" Tencent COS " label =" Tencent COS " >
320324
321- 在指定 ` endpoint_url ` 参数时,请确保从您的存储桶端点中排除 ` <BucketName-APPID> ` 部分。例如,如果您的存储桶端点是 ` https://databend-xxxxxxxxxx.cos.ap-beijing.myqcloud.com ` ,请使用 ` https://cos.ap-beijing.myqcloud.com ` 。有关腾讯云 COS 在各个区域的端点,请参阅 https://www.tencentcloud.com/document/product/436/6224。
325+ 在指定 ` endpoint_url ` 参数时,请确保从您的存储桶端点中排除 ` <BucketName-APPID> ` 部分。例如,如果您的存储桶端点是 ` https://databend-xxxxxxxxxx.cos.ap-beijing.myqcloud.com ` ,请使用 ` https://cos.ap-beijing.myqcloud.com ` 。有关腾讯云 COS 在不同区域的端点,请参考 https://www.tencentcloud.com/document/product/436/6224。
322326
323327``` toml title='databend-query.toml'
324328[storage ]
325329# s3
326330type = " cos"
327331
328332[storage .cos ]
329- # 如何创建存储桶:
333+ # 如何创建存储桶:
330334# https://cloud.tencent.com/document/product/436/13309
331335// highlight-next-line
332336bucket = " my_bucket"
333337
334- # 以下是区域为北京 (ap-beijing) 的示例 。
338+ # 以下是一个示例,区域为北京 (ap-beijing)。
335339// highlight-next-line
336340endpoint_url = " https://cos.ap-beijing.myqcloud.com"
337341
@@ -361,7 +365,7 @@ bucket = "my_bucket"
361365// highlight-next-line
362366# https://<bucket-name>.<region-id>[-internal].aliyuncs.com
363367// highlight-next-line
364- # 此示例使用 OSS 区域 ID : oss-cn-beijing-internal。
368+ # 此示例使用 OSS 区域 id : oss-cn-beijing-internal。
365369endpoint_url = " https://oss-cn-beijing-internal.aliyuncs.com"
366370# enable_virtual_host_style = true
367371
@@ -373,11 +377,11 @@ access_key_id = "<your-key-id>"
373377secret_access_key = " <your-access-key>"
374378```
375379
376- Databend 企业版支持 OSS 中的服务器端加密。此功能使您能够通过为存储在 OSS 中的数据激活服务器端加密来增强数据安全性和隐私 。您可以选择最适合您需求的加密方法。请注意,您必须拥有有效的 Databend 企业版许可证才能使用此功能。要获取许可证,请参阅 [ Licensing Databend] ( ../../../00-overview/00-editions/01-dee/20-license.md ) 。
380+ Databend 企业版支持 OSS 中的服务器端加密。此功能使您能够通过激活 OSS 中存储数据的服务器端加密来增强数据安全性和隐私 。您可以选择最适合您需求的加密方法。请注意,您必须拥有有效的 Databend 企业版许可证才能使用此功能。要获取许可证,请参阅 [ Licensing Databend] ( ../../../00-overview/00-editions/01-dee/20-license.md ) 。
377381
378382要在 Databend 中启用服务器端加密,请将以下参数添加到 [ storage.oss] 部分:
379383
380- | 参数 | 描述 | 可用值 |
384+ | 参数 | 描述 | 可用值 |
381385| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
382386| server_side_encryption | 指定 OSS 数据的服务器端加密方法。"AES256" 使用 OSS 管理的 AES256 密钥进行加密,而 "KMS" 使用 server_side_encryption_key_id 中定义的密钥。 | "AES256" 或 "KMS" |
383387| server_side_encryption_key_id | 当 server_side_encryption 设置为 "KMS" 时,此参数用于指定 OSS 的服务器端加密密钥 ID。它仅在使用 KMS 加密模式时适用。 | 字符串,KMS 加密密钥的唯一标识符。 |
@@ -397,7 +401,7 @@ bucket = "my_bucket"
397401
398402# 您可以从存储桶详情页面获取 URL。
399403# https://docsv3.qingcloud.com/storage/object-storage/intro/object-storage/#zone
400- # 使用与 AWS S3 兼容的 API。您需要在域名前添加 s3 子域,例如 https://s3.<zone-id>.qingstor.com
404+ # 使用与 AWS S3 兼容的 API。您需要在域名中添加一个 s3 子域,例如 https://s3.<zone-id>.qingstor.com
401405// highlight-next-line
402406endpoint_url = " https://s3.pek3b.qingstor.com"
403407
@@ -411,6 +415,7 @@ secret_access_key = "<your-access-key>"
411415
412416</TabItem >
413417
418+ <!-- #ifcndef -->
414419<TabItem value =" Huawei OBS " label =" Huawei OBS " >
415420
416421``` toml title='databend-query.toml'
@@ -420,7 +425,7 @@ type = "obs"
420425[storage .obs ]
421426// highlight-next-line
422427bucket = " my_bucket"
423- # 您可以从存储桶详情页面获取 URL。
428+ # 您可以从存储桶详情页面获取 URL
424429// highlight-next-line
425430endpoint_url = " https://obs.<obs-region>.myhuaweicloud.com"
426431# 如何获取 access_key_id 和 secret_access_key:
@@ -432,6 +437,7 @@ secret_access_key = "<your-access-key>"
432437```
433438
434439</TabItem >
440+ <!-- #endcndef -->
435441
436442<TabItem value =" Wasabi " label =" Wasabi " >
437443
@@ -558,7 +564,7 @@ curl -I http://127.0.0.1:8080/v1/health
558564</StepContent >
559565</StepsWrap >
560566
561- ### 启动/ 停止 Databend
567+ ### 启动 / 停止 Databend
562568
563569每次启动或停止 Databend 时,无需单独管理 Meta 和 Query 节点。执行 ` /usr/local/databend/scripts ` 目录中的脚本,以一次性处理两个节点:
564570
0 commit comments