Преглед изворни кода

docs(zh_CN/plugins):translate 7 files into chinese

ican_do_it пре 4 година
родитељ
комит
b58414cbbf

+ 3 - 3
docs/zh_CN/plugins/overview.md

@@ -4,7 +4,7 @@ Kuiper 实现了几个插件。
 
 | 名称                  | 描述                                                  |
 | --------------------- | ------------------------------------------------------------ |
-| [zmq](sources/zmq.md)| 该插件监听Zero Mq消息并发送到Kuiper流中 |
+| [zmq](sources/zmq.md)| 该插件监听 Zero Mq 消息并发送到 Kuiper 流中 |
 | [random](sources/random.md) | 该插件按照指定模式生成消息   |
 
 
@@ -16,8 +16,8 @@ Kuiper 实现了几个插件。
 | 名称                  | 描述                                                  |
 | --------------------- | ------------------------------------------------------------ |
 | [file](sinks/file.md) | 该插件将分析结果保存到某个指定到文件系统中 |
-| [zmq](sinks/zmq.md)   | 该插件将分析结果发送到Zero Mq的主题中    |
-| [influxdb](sinks/influxdb.md)   | 该插件将分析结果发送到InfluxDB中    |
+| [zmq](sinks/zmq.md)   | 该插件将分析结果发送到 Zero Mq 的主题中  |
+| [influxdb](sinks/influxdb.md)   | 该插件将分析结果发送到 InfluxDB 中  |
 
 
 

Разлика између датотеке није приказан због своје велике величине
+ 15 - 13
docs/zh_CN/plugins/plugins_tutorial.md


+ 11 - 11
docs/zh_CN/plugins/sinks/file.md

@@ -1,8 +1,8 @@
-# File Sink
+# 文件目标(Sink)
 
-The sink is used for saving analysis result into a specified file.
+目标(Sink)用于将分析结果保存到指定文件中。
 
-## Compile & deploy plugin
+## 编译和部署插件
 
 ```shell
 # cd $kuiper_src
@@ -10,18 +10,18 @@ The sink is used for saving analysis result into a specified file.
 # cp plugins/sinks/File.so $kuiper_install/plugins/sinks
 ```
 
-Restart the Kuiper server to activate the plugin.
+重新启动 Kuiper 服务器以激活插件。
 
-## Properties
+## 属性
 
-| Property name | Optional | Description                                                  |
-| ------------- | -------- | ------------------------------------------------------------ |
-| path          | false    | The file path for saving the result, such as ``/tmp/result.txt`` |
-| interval      | true     | The time interval (ms) for writing the analysis result. The default value is 1000, which means write the analysis result with every one second. |
+| 属性名称 | 是否可选 | 说明                                                         |
+| -------- | -------- | ------------------------------------------------------------ |
+| path     | 否       | 保存结果的文件路径,例如  `/tmp/result.txt`                  |
+| interval | 是       | 写入分析结果的时间间隔(毫秒)。 默认值为1000,这表示每隔一秒钟写入一次分析结果。 |
 
-## Sample usage
+## 使用示例
 
-Below is a sample for selecting temperature great than 50 degree, and save the result into file ``/tmp/result.txt`` with every 5 seconds.
+下面是一个选择温度大于50度的示例,每5秒将结果保存到文件 `/tmp/result.txt`  中。
 
 ```json
 {

+ 14 - 14
docs/zh_CN/plugins/sinks/influxdb.md

@@ -1,6 +1,6 @@
-# InfluxDB Sink
+# InfluxDB 目标(Sink
 
-该插件将分析结果发送到InfluxDB中
+该插件将分析结果发送到 InfluxDB 
 ## 编译插件&创建插件
 
 在编译之前,请对源代码做如下更改:
@@ -17,24 +17,24 @@
 # bin/cli create rule influx -f /tmp/influxRule.txt
 ```
 
-重新启动Kuiper服务器以激活插件。
+重新启动 Kuiper 服务器以激活插件。
 
 ## 属性
 
-| Property name | Optional | Description                                                  |
-| ------------- | -------- | ------------------------------------------------------------ |
-| addr          | true     | The addr of the InfluxDB |
-| measurement   | true     | The measurement of the InfluxDb (like table name) |
-| username      | false    | The InfluxDB login username |
-| password      | false    | The InfluxDB login password |
-| databasename  | true     | The database of the InfluxDB |
-| tagkey        | true     | The tag key of the InfluxDB |
-| tagvalue      | true     | The tag value of the InfluxDB |
+| 属性名称     | 会否可选 | 说明                     |
+| ------------ | -------- | ------------------------ |
+| addr         | 是       | InfluxDB的地址           |
+| measurement  | 是       | InfluxDb的测量(如表名) |
+| username     | 否       | InfluxDB登陆用户名       |
+| password     | 否       | InfluxDB登陆密码         |
+| databasename | 是       | InfluxDB的数据库         |
+| tagkey       | 是       | InfluxDB的标签键         |
+| tagvalue     | 是       | InfluxDB的标签值         |
 ## 示例用法
 
 下面是选择温度大于50度的样本规则,和一些配置文件仅供参考。
 
-#### /tmp/influxRule.txt
+#### ####/tmp/influxRule.txt
 ```json
 {
   "id": "influx",
@@ -55,7 +55,7 @@
   ]
 }
 ```
-#### /tmp/influxPlugin.txt
+#### ####/tmp/influxPlugin.txt
 ```json
 {
   "file":"http://localhost:8080/influx.zip"

+ 9 - 9
docs/zh_CN/plugins/sinks/zmq.md

@@ -1,8 +1,8 @@
-# Zmq Sink
+# Zmq 目标(Sink
 
-The sink will publish the result into a Zero Mq topic.
+目标(Sink)会将结果发布到 Zero Mq 主题中。
 
-## Compile & deploy plugin
+## 编译和部署插件
 
 ```shell
 # cd $kuiper_src
@@ -10,18 +10,18 @@ The sink will publish the result into a Zero Mq topic.
 # cp plugins/sinks/Zmq.so $kuiper_install/plugins/sinks
 ```
 
-Restart the Kuiper server to activate the plugin.
+重新启动 Kuiper 服务器以激活插件。
 
-## Properties
+## 属性
 
-| Property name | Optional | Description                                                  |
+| 属性名称 | Optional | Description                                                  |
 | ------------- | -------- | ------------------------------------------------------------ |
-| server          | false    | The url of the Zero Mq server |
+| server          | false    | Zero Mq 服务器的 URL |
 | topic      | true     | The topic to publish to |
 
-## Sample usage
+## 使用示例
 
-Below is a sample for selecting temperature great than 50 degree, and publish the result into Zero Mq topic "temp".
+下面是一个选择温度大于50度的示例,并将结果发布到 Zero Mq 主题 "temp"。
 
 ```json
 {

+ 16 - 16
docs/zh_CN/plugins/sources/random.md

@@ -1,8 +1,8 @@
-# Random Source
+# 随机源
 
-he source will generate random inputs with a specified pattern.
+随机源将生成具有指定样式的随机输入。
 
-## Compile & deploy plugin
+## 编译和部署插件
 
 ```shell
 # cd $kuiper_src
@@ -10,11 +10,11 @@ he source will generate random inputs with a specified pattern.
 # cp plugins/sources/Random.so $kuiper_install/plugins/sources
 ```
 
-Restart the Kuiper server to activate the plugin.
+重新启动 Kuiper 服务器以激活插件。
 
-## Configuration
+## 配置
 
-The configuration for this source is ``$kuiper/etc/sources/random.yaml``. The format is as below:
+该源的配置为 `$kuiper/etc/sources/random.yaml`。格式如下:
 
 ```yaml
 default:
@@ -31,31 +31,31 @@ dedup:
   interval: 100
   deduplicate: 50
 ```
-### Global configurations
+### 全局配置
 
-Use can specify the global random source settings here. The configuration items specified in ``default`` section will be taken as default settings for the source when running this source.
+用户可以在此处指定全局随机源设置。 运行此源时,将在 `default` 部分中指定的配置项目作为源的默认设置。
 
 ### interval
 
-The interval (ms) to issue a message.
+发出消息的间隔(毫秒)。
 
 ### seed
 
-The maximum integer to be produced by the random function
+随机函数产生的最大整数。
 
 ### pattern
 
-The pattern to be generated by the source. In the above example, the pattern will be a json like {"count":50}
+源生成的样式。 在上面的示例中,样式将为 json,例如{"count":50}
 
 ### deduplicate
 
-An int value. If it is a positive number, the source will not issue the messages which are duplicates of any of the previous 'deduplicate' length of messages. If it is 0, the source won't check for duplications. If it is a negative number, the source will check for duplicates over any previous messages. Do not use negative length if you have very large input data sets as all the previous data will be kept.
+一个整数值。 如果它为正数,则源不会发出与以前任何“重复数据删除”长度的消息重复的消息。如果为0,则源不会检查是否存在重复。如果是负数,则源将检查以前任何消息的重复项。如果有非常大的输入数据集,请不要使用负长度,因为将保留所有以前的数据。
 
-## Override the default settings
+## 覆盖默认设置
 
-If you have a specific connection that need to overwrite the default settings, you can create a customized section. In the previous sample, we create a specific setting named with ``test``.  Then you can specify the configuration with option ``CONF_KEY`` when creating the stream definition (see [stream specs](../../sqls/streams.md) for more info).
+如果您有特定的连接需要覆盖默认设置,则可以创建一个自定义部分。 在上一个示例中,我们创建一个名为 `test` 的特定设置。 然后,您可以在创建流定义时使用选项`CONF_KEY` 指定配置(有关更多信息,请参见 [stream specs](../../sqls/streams.md))。
 
-## Sample usage
+## 使用示例
 
 ```
 demo (
@@ -63,5 +63,5 @@ demo (
 	) WITH (DATASOURCE="demo", FORMAT="JSON", CONF_KEY="ext", TYPE="random");
 ```
 
-The configuration keys "ext" will be used.
+配置键 "ext" 将被使用。
 

+ 13 - 13
docs/zh_CN/plugins/sources/zmq.md

@@ -1,8 +1,8 @@
-# Zmq Source
+# Zmq
 
-The source will subscribe to a Zero Mq topic to import the messages into kuiper
+源将订阅 Zero Mq 主题以将消息导入 kuiper。
 
-## Compile & deploy plugin
+## 编译和部署插件
 
 ```shell
 # cd $kuiper_src
@@ -10,11 +10,11 @@ The source will subscribe to a Zero Mq topic to import the messages into kuiper
 # cp plugins/sources/Zmq.so $kuiper_install/plugins/sources
 ```
 
-Restart the Kuiper server to activate the plugin.
+重新启动 Kuiper 服务器以激活插件。
 
-## Configuration
+## 配置
 
-The configuration for this source is ``$kuiper/etc/sources/zmq.yaml``. The format is as below:
+该源的配置位于 `$kuiper/etc/sources/zmq.yaml`。格式如下:
 
 ```yaml
 #Global Zmq configurations
@@ -23,19 +23,19 @@ default:
 test:
   server: tcp://127.0.0.1:5563
 ```
-### Global configurations
+### 全局配置
 
-Use can specify the global zmq source settings here. The configuration items specified in ``default`` section will be taken as default settings for the source when connects to Zero Mq.
+用户可以在此处指定全局 zmq 源设置。 连接到Zero Mq时,`default` 部分中指定的配置项目将被用作源的默认设置。
 
 ### server
 
-The url of the Zero Mq server that the source will subscribe to.
+源将订阅的Zero Mq 服务器的 URL。
 
-## Override the default settings
+## 覆盖默认设置
 
-If you have a specific connection that need to overwrite the default settings, you can create a customized section. In the previous sample, we create a specific setting named with ``test``.  Then you can specify the configuration with option ``CONF_KEY`` when creating the stream definition (see [stream specs](../../sqls/streams.md) for more info).
+如果您有特定的连接需要覆盖默认设置,则可以创建一个自定义部分。 在上一个示例中,我们创建一个名为 `test` 的特定设置。 然后,您可以在创建流定义时使用选项 `CONF_KEY` 指定配置(有关更多信息,请参见 [stream specs](../../sqls/streams.md))。
 
-## Sample usage
+## 使用示例
 
 ```
 demo (
@@ -43,5 +43,5 @@ demo (
 	) WITH (DATASOURCE="demo", FORMAT="JSON", CONF_KEY="test", TYPE="zmq");
 ```
 
-The configuration keys "test" will be used. The Zero Mq topic to subscribe is "demo" as specified in the ``DATASOURCE``.
+将使用配置键 "test"。 订阅的 Zero Mq 主题是 `DATASOURCE` 中指定的 "demo"。