[Docs] [Plugin] Add zookeeper docs (#228)

This commit is contained in:
qianmoQ 2023-02-09 00:28:05 +08:00 committed by GitHub
commit 1f631ea2ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 95 additions and 2 deletions

View File

@ -0,0 +1,92 @@
#### What is Zookeeper ?
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications. Each time they are implemented there is a lot of work that goes into fixing the bugs and race conditions that are inevitable.
#### Environment
---
!!! note
If you need to use this data source, you need to upgrade the DataCap service to >= `1.5.x`
Support Time: `2023-02-07`
#### SQL statement syntax
---
This chapter describes the SQL syntax used in Zookeeper on DataCap.
##### SELECT
!!! note "Synopsis"
```sql
SELECT [ * | <Columns> ] select_expression [, ...]
FROM from_item [. ...]
```
where `from_item` is one of
```sql
table_name [ `a.b` | a.b | `a`.`b`]
```
!!! danger
When `table_name` is set to `all` the root directory is searched.
!!! note "Select expressions"
Each `select_expression` must be in one of the following forms:
```sql
expression [ column_alias ]
```
```sql
*
```
In the case of `expression [ column_alias ]`, a single output column is defined.
In the case of `*`, all columns of the relation defined by the query are included in the result set.
```sql
*
--------
data
```
!!! danger
If it is a multi-level directory, such as `/zookeeper/id/2`, it will be written **\`zookeeper\`.\`id\`.\`2\`**, and use `.` to split between directories.
#### Configure
---
DataCap uses configuration files by default [zookeeper.json](https://github.com/EdurtIO/datacap/blob/dev/server/src/main/etc/conf/plugins/native/zookeeper.json)
!!! note
If your Zookeeper service version requires other special configurations, please refer to modifying the configuration file and restarting the DataCap service.
=== "Configure"
| Field | Required | Default Value |
|:------:|:---------------------------------:|:-------------:|
| `Name` | :material-check-circle: { .red } | - |
| `Host` | :material-check-circle: { .red } | `127.0.0.1:2181` |
| `Port` | :material-close-circle: | `1` |
#### Version (Validation)
---
!!! warning
The online service has not been tested yet, if you have detailed test results, please submit [issues](https://github.com/EdurtIO/datacap/issues/new/choose) to us
- [x] `3.1.x` - `3.7.x`

View File

@ -5,7 +5,7 @@ site_description: >-
DataCap is integrated software for data transformation, integration and visualization.
repo_name: EdurtIO/datacap
repo_url: https://github.com/EdurtIO/datacap
edit_uri: "https://github.com/EdurtIO/datacap/blob/master/docs/docs"
edit_uri: "https://github.com/EdurtIO/datacap/blob/dev/docs/docs"
copyright: Copyright &copy; 2022 EdurtIO
@ -121,7 +121,7 @@ nav:
- Functions: reference/admin/functions/home.md
- Template:
- Sql: reference/admin/template/sql/home.md
- Connecting to Databases:
- Connecting to connectors:
- JDBC:
- Yandex Database: reference/plugin/jdbc/ydb.md
- Snowflake: reference/plugin/jdbc/snowflake.md
@ -129,6 +129,7 @@ nav:
- ClickHouse: reference/plugin/jdbc/clickhouse.md
- Native:
- Redis: reference/plugin/native/redis.md
- Zookeeper: reference/plugin/native/zookeeper.md
- Http:
- ClickHouse: reference/plugin/http/clickhouse.md
- CrateDB: reference/plugin/v120/cratedb.md