Skip to content

Commit 69451b5

Browse files
authored
add ssl in import and export tools from 2091 (#1097)
1 parent 58cdb68 commit 69451b5

64 files changed

Lines changed: 1046 additions & 870 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/UserGuide/Master/Table/Tools-System/Data-Export-Tool_apache.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,26 @@ The data export tool `export-data.sh/bat` is located in the `tools` directory an
2828

2929
## 2. Detailed Features
3030
### 2.1 Common Parameters
31-
| Short | Full Parameter | Description | Required | Default |
32-
| ---------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------- |----------------------------------------------|
33-
| `-ft` | `--file_type` | Export file type: `csv`, `sql`, `tsfile`. |**Yes** | - |
34-
| `-h` | `--host` | Hostname of the IoTDB server. | No | `127.0.0.1` |
35-
| `-p` | `--port` | Port number of the IoTDB server. | No | `6667` |
36-
| `-u` | `--username` | Username for authentication. | No | `root` |
37-
| `-pw` | `--password` | Password for authentication. | No | `root` |
38-
| `-sql_dialect` | `--sql_dialect` | Select server model : tree or table | No | tree |
39-
| `-db ` | `--database` | The target database to be exported only takes effect when `-sql_dialect` is of the table type.| Yes when `-sql_dialect = table`| - |
40-
| `-table`|`--table` | The target table to be exported only takes effect when `-sql_dialect` is of the table type. If the `-q` parameter is specified, this parameter will not take effect. If the export type is tsfile/sql, this parameter is mandatory.| ​ No | - |
41-
| `-start_time` | `--start_time` |The start time of the data to be exported only takes effect when `-sql_dialect` is of the table type. If `-q` is specified, this parameter will not take effect. The supported time formats are the same as those for the `-tf` parameter.|No | - |
42-
|`-end_time` |`--end_time` | The end time of the data to be exported only takes effect when `-sql_dialect` is set to the table type. If `-q` is specified, this parameter will not take effect.| No | - |
43-
| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. |**Yes** | - |
44-
| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
45-
| `-q` | `--query` | SQL query command to execute. Starting from v2.0.8, semicolons in SQL statements are automatically removed, and query execution proceeds normally. | No | - |
46-
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (before v2.0.8)<br>`Long.MAX_VALUE` (v2.0.8 and later)<br>(Range: `-1~Long.MAX_VALUE`) |
47-
| `-help` | `--help` | Display help information. | No | - |
31+
| Short | Full Parameter | Description | Required | Default |
32+
|----------------|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ----------------- |----------------------------------------------|
33+
| `-ft` | `--file_type` | Export file type: `csv`, `sql`, `tsfile`. |**Yes** | - |
34+
| `-h` | `--host` | Hostname of the IoTDB server. | No | `127.0.0.1` |
35+
| `-p` | `--port` | Port number of the IoTDB server. | No | `6667` |
36+
| `-u` | `--username` | Username for authentication. | No | `root` |
37+
| `-pw` | `--password` | Password for authentication. Supported for hidden input since V2.0.9-beta | No | `root` |
38+
| `-sql_dialect` | `--sql_dialect` | Select server model : tree or table | No | tree |
39+
| `-db ` | `--database` | The target database to be exported only takes effect when `-sql_dialect` is of the table type. | Yes when `-sql_dialect = table`| - |
40+
| `-table` | `--table` | The target table to be exported only takes effect when `-sql_dialect` is of the table type. If the `-q` parameter is specified, this parameter will not take effect. If the export type is tsfile/sql, this parameter is mandatory. | ​ No | - |
41+
| `-start_time` | `--start_time` | The start time of the data to be exported only takes effect when `-sql_dialect` is of the table type. If `-q` is specified, this parameter will not take effect. The supported time formats are the same as those for the `-tf` parameter. |No | - |
42+
| `-end_time` | `--end_time` | The end time of the data to be exported only takes effect when `-sql_dialect` is set to the table type. If `-q` is specified, this parameter will not take effect. | No | - |
43+
| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. |**Yes** | - |
44+
| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
45+
| `-q` | `--query` | SQL query command to execute. Starting from v2.0.8, semicolons in SQL statements are automatically removed, and query execution proceeds normally. | No | - |
46+
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (before v2.0.8)<br>`Long.MAX_VALUE` (v2.0.8 and later)<br>(Range: `-1~Long.MAX_VALUE`) |
47+
| `-help` | `--help` | Display help information. | No | - |
48+
| `-usessl` | `--use_ssl` | Use SSL protocol. Supported since V2.0.9-beta | No | - |
49+
| `-ts` | `--trust_store` | Trust store. Supports hidden input. Supported since V2.0.9-beta | No | - |
50+
| `-tpw` | `--trust_store_password` | Trust store password. Supports hidden input. Supported since V2.0.9-beta | No | - |
4851

4952
### 2.2 CSV Format
5053
#### 2.2.1 Command

0 commit comments

Comments
 (0)