You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/UserGuide/Master/Table/User-Manual/Data-Sync_apache.md
+5-41Lines changed: 5 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -292,41 +292,7 @@ WITH SINK (
292
292
'node-urls'='127.0.0.1:6668'-- The URL of the DataNode's data service port in the target IoTDB instance.
293
293
)
294
294
```
295
-
### 3.3 Bidirectional Data Transmission
296
-
297
-
This example demonstrates a scenario where two IoTDB instances act as dual-active systems. The data pipeline is shown below:
298
-
299
-

300
-
301
-
To avoid infinite data loops, the `source.mode.double-living` parameter must be set to `true` on both IoTDB A and B, indicating that data forwarded from another pipe will not be retransmitted.
302
-
303
-
SQL Example: On IoTDB A:
304
-
305
-
```SQL
306
-
CREATE PIPE AB
307
-
WITH SOURCE (
308
-
'source.mode.double-living'='true'-- Do not forward data from other pipes
309
-
)
310
-
WITH SINK (
311
-
'sink'='iotdb-thrift-sink',
312
-
'node-urls'='127.0.0.1:6668'-- URL of the DataNode service port on the target IoTDB
313
-
)
314
-
```
315
-
316
-
On IoTDB B:
317
-
318
-
```SQL
319
-
CREATE PIPE BA
320
-
WITH SOURCE (
321
-
'source.mode.double-living'='true'-- Do not forward data from other pipes
322
-
)
323
-
WITH SINK (
324
-
'sink'='iotdb-thrift-sink',
325
-
'node-urls'='127.0.0.1:6667'-- URL of the DataNode service port on the target IoTDB
326
-
)
327
-
```
328
-
329
-
### 3.4 Edge-to-Cloud Data Transmission
295
+
### 3.3 Edge-to-Cloud Data Transmission
330
296
331
297
This example demonstrates synchronizing data from multiple IoTDB clusters (B, C, D) to a central IoTDB cluster (A). The data pipeline is shown below:
332
298
@@ -376,14 +342,13 @@ WITH SINK (
376
342
)
377
343
```
378
344
379
-
### 3.5 Cascaded Data Transmission
345
+
### 3.4 Cascaded Data Transmission
380
346
381
347
This example demonstrates cascading data transmission from IoTDB A to IoTDB B and then to IoTDB C. The data pipeline is shown below:
382
348
383
349

384
350
385
-
To synchronize data from cluster A to cluster C, the `source.mode.double-living` parameter is set to `true` in the pipe between B and C.
386
-
351
+
387
352
SQL Example: On IoTDB A:
388
353
389
354
```SQL
@@ -407,7 +372,7 @@ WITH SINK (
407
372
```
408
373
409
374
410
-
### 3.6 Compressed Synchronization
375
+
### 3.5 Compressed Synchronization
411
376
412
377
IoTDB supports specifying data compression methods during synchronization. The `compressor` parameter can be configured to enable real-time data compression and transmission. Supported algorithms include `snappy`, `gzip`, `lz4`, `zstd`, and `lzma2`. Multiple algorithms can be combined and applied in the configured order. The `rate-limit-bytes-per-second` parameter (supported in V1.3.3 and later) limits the maximum number of bytes transmitted per second (calculated after compression). If set to a value less than 0, there is no limit.
413
378
@@ -423,7 +388,7 @@ WITH SINK (
423
388
```
424
389
425
390
426
-
### 3.7 Encrypted Synchronization
391
+
### 3.6 Encrypted Synchronization
427
392
428
393
IoTDB supports SSL encryption during synchronization to securely transmit data between IoTDB instances. By configuring SSL-related parameters such as the certificate path (`ssl.trust-store-path`) and password (`ssl.trust-store-pwd`), data can be protected by SSL encryption during synchronization.
| table-name | When the user connects with `sql_dialect` set to `table`, this parameter can be specified. Determines the scope of data capture, affecting the `data` in `inclusion`. Specifies the table name to filter. It can be a specific table name or a Java-style regular expression to match multiple tables. By default, all tables are matched. | String: Data table name or data table regular expression pattern string, which can be uncreated or non - existent tables. | No | ".*" |
520
485
| start-time | Determines the scope of data capture, affecting the `data` in `inclusion`. Data with an event time **greater than or equal to** this parameter will be selected for stream processing in the pipe. | Long: [Long.MIN_VALUE, Long.MAX_VALUE](Unix bare timestamp)orString: ISO format timestamp supported by IoTDB | No | Long: [Long.MIN_VALUE, Long.MAX_VALUE](Unix bare timestamp) |
521
486
| end-time | Determines the scope of data capture, affecting the `data` in `inclusion`. Data with an event time **less than or equal to** this parameter will be selected for stream processing in the pipe. | Long: [Long.MIN_VALUE, Long.MAX_VALUE](Unix bare timestamp)orString: ISO format timestamp supported by IoTDB | No | Long: [Long.MIN_VALUE, Long.MAX_VALUE](Unix bare timestamp) |
522
-
| mode.double-living | Whether to enable full dual-active mode. When enabled, the system will ignore the `-sql_dialect` connection method to capture all tree-table model data and not forward data synced from another pipe (to avoid circular synchronization). | Boolean: true / false | No | false |
523
487
524
488
> 💎 **Note:** The difference between the values of true and false for the data extraction mode `mode.streaming`
Copy file name to clipboardExpand all lines: src/UserGuide/latest-Table/User-Manual/Data-Sync_apache.md
+4-40Lines changed: 4 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -292,41 +292,7 @@ WITH SINK (
292
292
'node-urls'='127.0.0.1:6668'-- The URL of the DataNode's data service port in the target IoTDB instance.
293
293
)
294
294
```
295
-
### 3.3 Bidirectional Data Transmission
296
-
297
-
This example demonstrates a scenario where two IoTDB instances act as dual-active systems. The data pipeline is shown below:
298
-
299
-

300
-
301
-
To avoid infinite data loops, the `source.mode.double-living` parameter must be set to `true` on both IoTDB A and B, indicating that data forwarded from another pipe will not be retransmitted.
302
-
303
-
SQL Example: On IoTDB A:
304
-
305
-
```SQL
306
-
CREATE PIPE AB
307
-
WITH SOURCE (
308
-
'source.mode.double-living'='true'-- Do not forward data from other pipes
309
-
)
310
-
WITH SINK (
311
-
'sink'='iotdb-thrift-sink',
312
-
'node-urls'='127.0.0.1:6668'-- URL of the DataNode service port on the target IoTDB
313
-
)
314
-
```
315
-
316
-
On IoTDB B:
317
-
318
-
```SQL
319
-
CREATE PIPE BA
320
-
WITH SOURCE (
321
-
'source.mode.double-living'='true'-- Do not forward data from other pipes
322
-
)
323
-
WITH SINK (
324
-
'sink'='iotdb-thrift-sink',
325
-
'node-urls'='127.0.0.1:6667'-- URL of the DataNode service port on the target IoTDB
326
-
)
327
-
```
328
-
329
-
### 3.4 Edge-to-Cloud Data Transmission
295
+
### 3.3 Edge-to-Cloud Data Transmission
330
296
331
297
This example demonstrates synchronizing data from multiple IoTDB clusters (B, C, D) to a central IoTDB cluster (A). The data pipeline is shown below:
332
298
@@ -376,13 +342,12 @@ WITH SINK (
376
342
)
377
343
```
378
344
379
-
### 3.5 Cascaded Data Transmission
345
+
### 3.4 Cascaded Data Transmission
380
346
381
347
This example demonstrates cascading data transmission from IoTDB A to IoTDB B and then to IoTDB C. The data pipeline is shown below:
382
348
383
349

384
350
385
-
To synchronize data from cluster A to cluster C, the `source.mode.double-living` parameter is set to `true` in the pipe between B and C.
386
351
387
352
SQL Example: On IoTDB A:
388
353
@@ -407,7 +372,7 @@ WITH SINK (
407
372
```
408
373
409
374
410
-
### 3.6 Compressed Synchronization
375
+
### 3.5 Compressed Synchronization
411
376
412
377
IoTDB supports specifying data compression methods during synchronization. The `compressor` parameter can be configured to enable real-time data compression and transmission. Supported algorithms include `snappy`, `gzip`, `lz4`, `zstd`, and `lzma2`. Multiple algorithms can be combined and applied in the configured order. The `rate-limit-bytes-per-second` parameter (supported in V1.3.3 and later) limits the maximum number of bytes transmitted per second (calculated after compression). If set to a value less than 0, there is no limit.
413
378
@@ -423,7 +388,7 @@ WITH SINK (
423
388
```
424
389
425
390
426
-
### 3.7 Encrypted Synchronization
391
+
### 3.6 Encrypted Synchronization
427
392
428
393
IoTDB supports SSL encryption during synchronization to securely transmit data between IoTDB instances. By configuring SSL-related parameters such as the certificate path (`ssl.trust-store-path`) and password (`ssl.trust-store-pwd`), data can be protected by SSL encryption during synchronization.
| table-name | When the user connects with `sql_dialect` set to `table`, this parameter can be specified. Determines the scope of data capture, affecting the `data` in `inclusion`. Specifies the table name to filter. It can be a specific table name or a Java-style regular expression to match multiple tables. By default, all tables are matched. | String: Data table name or data table regular expression pattern string, which can be uncreated or non - existent tables. | No | ".*" |
520
485
| start-time | Determines the scope of data capture, affecting the `data` in `inclusion`. Data with an event time **greater than or equal to** this parameter will be selected for stream processing in the pipe. | Long: [Long.MIN_VALUE, Long.MAX_VALUE](Unix bare timestamp)orString: ISO format timestamp supported by IoTDB | No | Long: [Long.MIN_VALUE, Long.MAX_VALUE](Unix bare timestamp) |
521
486
| end-time | Determines the scope of data capture, affecting the `data` in `inclusion`. Data with an event time **less than or equal to** this parameter will be selected for stream processing in the pipe. | Long: [Long.MIN_VALUE, Long.MAX_VALUE](Unix bare timestamp)orString: ISO format timestamp supported by IoTDB | No | Long: [Long.MIN_VALUE, Long.MAX_VALUE](Unix bare timestamp) |
522
-
| mode.double-living | Whether to enable full dual-active mode. When enabled, the system will ignore the `-sql_dialect` connection method to capture all tree-table model data and not forward data synced from another pipe (to avoid circular synchronization). | Boolean: true / false | No | false |
523
487
524
488
> 💎 **Note:** The difference between the values of true and false for the data extraction mode `mode.streaming`
0 commit comments