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_r306101635
##########
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()` 创建接收器实例。
Review comment:
do you think change `Flink 的 Cassandra 接收器是使用静态方法
`CassandraSink.addSink(DataStream<IN> input)` 创建的` to `Flink 的 Cassandra
接收器使用静态方法 `CassandraSink.addSink(DataStream<IN> input)` 创建` is more readable?
----------------------------------------------------------------
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