You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ji...@apache.org on 2023/01/03 08:45:09 UTC

[doris] branch master updated: [docs](export) fix export data to object storage docs (#15563)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new caaae28b50 [docs](export) fix export data to object storage docs (#15563)
caaae28b50 is described below

commit caaae28b50c428305dcad82daaa3ae83c4e1f24e
Author: Zhengguo Yang <ya...@gmail.com>
AuthorDate: Tue Jan 3 16:45:02 2023 +0800

    [docs](export) fix export data to object storage docs (#15563)
---
 docs/en/docs/data-operate/export/export-manual.md  | 24 ++++++++-------------
 .../docs/data-operate/export/export-manual.md      | 25 ++++++++++------------
 2 files changed, 20 insertions(+), 29 deletions(-)

diff --git a/docs/en/docs/data-operate/export/export-manual.md b/docs/en/docs/data-operate/export/export-manual.md
index 529bf9e91d..4636436bd1 100644
--- a/docs/en/docs/data-operate/export/export-manual.md
+++ b/docs/en/docs/data-operate/export/export-manual.md
@@ -138,24 +138,18 @@ WITH BROKER "hdfs"
 
 ### Export to object storage (supports S3 protocol)
 
-Create a repository named s3_repo to link cloud storage directly without going through the broker.
-
 ```sql
-CREATE REPOSITORY `s3_repo`
-WITH S3
-ON LOCATION "s3://s3-repo"
-PROPERTIES
-(
-    "AWS_ENDPOINT" = "http://s3-REGION.amazonaws.com",
-    "AWS_ACCESS_KEY" = "AWS_ACCESS_KEY",
-    "AWS_SECRET_KEY"="AWS_SECRET_KEY",
-    "AWS_REGION" = "REGION"
-);
+EXPORT TABLE test TO "s3://bucket/path/to/export/dir/" WITH S3  (
+        "AWS_ENDPOINT" = "http://host",
+        "AWS_ACCESS_KEY" = "AK",
+        "AWS_SECRET_KEY"="SK",
+        "AWS_REGION" = "region"
+    );
 ```
 
-- `AWS_ACCESS_KEY`/`AWS_SECRET_KEY`:Is your key to access the OSS API.
-- `AWS_ENDPOINT`:Endpoint indicates the access domain name of OSS external services.
-- `AWS_REGION`:Region indicates the region where the OSS data center is located.
+- `AWS_ACCESS_KEY`/`AWS_SECRET_KEY`:Is your key to access the object storage API.
+- `AWS_ENDPOINT`:Endpoint indicates the access domain name of object storage external services.
+- `AWS_REGION`:Region indicates the region where the object storage data center is located.
 
 ### View export status
 
diff --git a/docs/zh-CN/docs/data-operate/export/export-manual.md b/docs/zh-CN/docs/data-operate/export/export-manual.md
index 57fdbed375..754fa8f129 100644
--- a/docs/zh-CN/docs/data-operate/export/export-manual.md
+++ b/docs/zh-CN/docs/data-operate/export/export-manual.md
@@ -128,24 +128,21 @@ WITH BROKER "hdfs"
 
 ### 导出到对象存储
 
-创建名为 s3_repo 的仓库,直接链接云存储,而不通过broker.
+通过s3 协议直接将数据导出到指定的存储.
 
 ```sql
-CREATE REPOSITORY `s3_repo`
-WITH S3
-ON LOCATION "s3://s3-repo"
-PROPERTIES
-(
-    "AWS_ENDPOINT" = "http://s3-REGION.amazonaws.com",
-    "AWS_ACCESS_KEY" = "AWS_ACCESS_KEY",
-    "AWS_SECRET_KEY"="AWS_SECRET_KEY",
-    "AWS_REGION" = "REGION"
-);
+
+EXPORT TABLE test TO "s3://bucket/path/to/export/dir/" WITH S3  (
+        "AWS_ENDPOINT" = "http://host",
+        "AWS_ACCESS_KEY" = "AK",
+        "AWS_SECRET_KEY"="SK",
+        "AWS_REGION" = "region"
+    );
 ```
 
-- `AWS_ACCESS_KEY`/`AWS_SECRET_KEY`:是您访问OSS API 的密钥.
-- `AWS_ENDPOINT`:表示OSS的数据中心所在的地域.
-- `AWS_REGION`:Endpoint表示OSS对外服务的访问域名.
+- `AWS_ACCESS_KEY`/`AWS_SECRET_KEY`:是您访问对象存储的ACCESS_KEY/SECRET_KEY
+- `AWS_ENDPOINT`:表示对象存储数据中心所在的地域.
+- `AWS_REGION`:Endpoint表示对象存储对外服务的访问域名.
 
 
 ### 查看导出状态


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