klion26 commented on a change in pull request #9188: [FLINK-12940][docs-zh] 
Translate Apache Cassandra Connector page into…
URL: https://github.com/apache/flink/pull/9188#discussion_r306101739
 
 

 ##########
 File path: docs/dev/connectors/cassandra.zh.md
 ##########
 @@ -43,77 +43,68 @@ To use this connector, add the following dependency to 
your project:
 </dependency>
 {% endhighlight %}
 
-Note that the streaming connectors are currently __NOT__ part of the binary 
distribution. See how to link with them for cluster execution [here]({{ 
site.baseurl}}/dev/projectsetup/dependencies.html).
+请注意,流连接器当前__不__是 Flink 
二进制发布包的一部分。添加依赖、打包配置以及集群运行信息请参考[此处]({{site.baseurl}}/zh/dev/projectsetup/dependencies.html)。
 
-## Installing Apache Cassandra
-There are multiple ways to bring up a Cassandra instance on local machine:
 
-1. Follow the instructions from [Cassandra Getting Started 
page](http://cassandra.apache.org/doc/latest/getting_started/index.html).
-2. Launch a container running Cassandra from [Official Docker 
Repository](https://hub.docker.com/_/cassandra/)
+## 安装 Apache Cassandra
+有多种方法可以在本地计算机上启动 Cassandra 实例:
 
-## Cassandra Sinks
+1. 按照 [Cassandra 
入门页面](http://cassandra.apache.org/doc/latest/getting_started/index.html)中的说明进行操作。
+2. 从 [Official Docker Repository](https://hub.docker.com/_/cassandra/)启动运行 
Cassandra 的容器
 
-### Configurations
+## Cassandra 连接器
 
-Flink's Cassandra sink are created by using the static 
CassandraSink.addSink(DataStream<IN> input) method.
-This method returns a CassandraSinkBuilder, which offers methods to further 
configure the sink, and finally `build()` the sink instance.
+### 配置
 
-The following configuration methods can be used:
+Flink 的 Cassandra 接收器是使用静态方法 `CassandraSink.addSink(DataStream<IN> input)` 
创建的。这个方法返回一个 `CassandraSinkBuilder`,它提供了进一步配置接收器的方法,最后通过 `build()` 创建接收器实例。
+
+可以使用以下配置方法:
 
 1. _setQuery(String query)_
-    * Sets the upsert query that is executed for every record the sink 
receives.
-    * The query is internally treated as CQL statement.
-    * __DO__ set the upsert query for processing __Tuple__ data type.
-    * __DO NOT__ set the query for processing __POJO__ data types.
+    * 设置为接收器接收的每个记录执行的 upsert query。
+    * 查询在内部被视为 CQL 语句。
+    * __请__ 设置 upsert query以处理 __Tuple__ 数据类型。
 
 Review comment:
   ```suggestion
       * __请__ 设置 upsert query 以处理 __Tuple__ 数据类型。
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to