morningman commented on a change in pull request #6859:
URL: https://github.com/apache/incubator-doris/pull/6859#discussion_r730204489



##########
File path: docs/zh-CN/administrator-guide/load-data/binlog-load-manual.md
##########
@@ -0,0 +1,470 @@
+---
+{
+    "title": "Binlog Load",
+    "language": "zh-CN"
+}
+---
+
+<!-- 
+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.
+-->
+
+
+# Binlog Load
+Binlog Load提供了一种使Doris增量同步用户在Mysql数据库的对数据更新操作的CDC(Change Data Capture)功能。
+
+## 适用场景
+
+* INSERT/UPDATE/DELETE支持
+* 过滤Query
+* 暂不兼容DDL语句
+
+## 名词解释
+1. Frontend(FE):Doris 系统的元数据和调度节点。在导入流程中主要负责导入 plan 生成和导入任务的调度工作。
+2. Backend(BE):Doris 系统的计算和存储节点。在导入流程中主要负责数据的 ETL 和存储。
+3. Canal:阿里巴巴开源的Mysql Binlog日志解析工具。提供增量数据订阅&消费等功能。
+4.  Batch:Canal发送到客户端的一批数据,具有全局唯一自增的ID。

Review comment:
       缩进问题

##########
File path: docs/zh-CN/sql-reference/sql-statements/Data Manipulation/CREATE 
SYNC JOB.md
##########
@@ -0,0 +1,166 @@
+---
+{
+    "title": "CREATE SYNC JOB",
+    "language": "zh-CN"
+}
+---
+
+<!-- 
+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.
+-->
+
+# CREATE SYNC JOB
+
+## description
+
+数据同步(Sync 
Job)功能,支持用户提交一个常驻的数据同步作业,通过从指定的远端地址读取Binlog日志,增量同步用户在Mysql数据库的对数据更新操作的CDC(Change
 Data Capture)功能。
+       
+目前数据同步作业只支持对接Canal,从Canal Server上获取解析好的Binlog数据,导入到Doris内。
+       
+用户可通过 `SHOW SYNC JOB` 查看数据同步作业状态。
+       
+语法:
+
+```    
+CREATE SYNC [db.]job_name
+ (
+       channel_desc, 
+       channel_desc
+       ...
+ )
+binlog_desc
+```
+       
+1. `job_name`
+
+       同步作业名称,是作业在当前数据库内的唯一标识,相同`job_name`的作业只能有一个在运行。
+               
+2. `channel_desc`
+
+       作业下的数据通道,用来描述mysql源表到doris目标表的映射关系。
+       
+       语法:             
+       
+       ```
+       FROM mysql_db.src_tbl INTO des_tbl
+       [partitions]
+       [columns_mapping]
+       ```
+       
+       1. `mysql_db.src_tbl`
+
+               指定mysql端的数据库和源表。

Review comment:
       用 4个空格代替 tab




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to