https://github.com/streamnative/pulsar-io-iotdb
Data sink connector for IoTDB(https://github.com/apache/iotdb)
https://github.com/streamnative/pulsar-io-iotdb
Last synced: 7 months ago
JSON representation
Data sink connector for IoTDB(https://github.com/apache/iotdb)
- Host: GitHub
- URL: https://github.com/streamnative/pulsar-io-iotdb
- Owner: streamnative
- License: apache-2.0
- Created: 2021-04-25T08:44:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-24T23:46:52.000Z (over 2 years ago)
- Last Synced: 2024-04-15T23:01:01.441Z (almost 2 years ago)
- Language: Java
- Size: 39.1 KB
- Stars: 4
- Watchers: 7
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
---
id: io-iotdb-sink
title: IoTDB sink connector
sidebar_label: IoTDB sink connector
---
The IoTDB sink connector pulls messages from Pulsar topics
and persists the messages to IoTDB.
## Configuration
The configuration of the IoTDB sink connector has the following properties.
### Property
#### IoTDBConfig
| Name | Type|Required | Default | Description
|------|----------|----------|---------|-------------|
| `host` |String| true|" " (empty string) | The user of the IoTDB instance. |
| `port` |int| true|0| The port of the IoTDB instance. |
| `username` | String|true| " " (empty string) |The username used to authenticate to IoTDB. |
| `password` | String| true|" " (empty string) | The password used to authenticate to IoTDB. |
| `storageGroup` |String| true | " " (empty string)| The IoTDB storage group to which write messages. |
| `flushIntervalMs` |int|false| 3000 | The IoTDB operation time in milliseconds. |
| `batchSize` | int|false|100| The batch size of writing to IoTDB. |
### Example
Before using the IoTDB sink connector, you need to create a configuration file through one of the following methods.
* JSON
```json
{
"host": "127.0.0.1",
"port": 6667,
"user": "root",
"password": "root",
"batchSize": 2,
"storageGroup": "root.testPulsar"
}
```
* YAML
```yaml
{
"host": "127.0.0.1",
"port": 6667,
"user": "root",
"password": "root",
"batchSize": 2,
"storageGroup": "root.testPulsar"
}
```