Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 14 additions & 16 deletions src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,20 @@ IoTDB supports three methods for data import:
## 2. Data Import Tool
### 2.1 Common Parameters

| Short | Full Parameter | Description | Required | Default |
| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |---------------------------------------------|
| `-ft` | `--file_type` | File type: `csv`, `sql`, `tsfile`. | ​**Yes** | - |
| `-h` | `--host` | IoTDB server hostname. | No | `127.0.0.1` |
| `-p` | `--port` | IoTDB server port. | No | `6667` |
| `-u` | `--username` | Username. | No | `root` |
| `-pw` | `--password` | Password. | No | `root` |
|
|`-sql_dialect`|`--sql_dialect`|Select server model : tree or table | No | `tree` |
|` -db `|`--database` |​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table` | - |
|`-table` |`--table `|Target table , required for CSV imports in table model | No | - |
|
| `-s` | `--source` | Local path to the file/directory to import. ​​**Supported formats**​: CSV, SQL, TsFile. Unsupported formats trigger error: `The file name must end with "csv", "sql", or "tsfile"!` | ​**Yes** | - |
| `-tn` | `--thread_num` | Maximum parallel threads | No | `8` <br> Range: 0 to Integer.Max(2147483647). |
| `-tz` | `--timezone` | Timezone (e.g., `+08:00`, `-01:00`). | No | System default |
| `-help` | `--help` | Display help (general or format-specific: `-help csv`). | No | - |
| Short | Full Parameter | Description | Required | Default |
| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------|
| `-ft` | `--file_type` | File type: `csv`, `sql`, `tsfile`. | ​**Yes** | - |
| `-h` | `--host` | IoTDB server hostname. | No | `127.0.0.1` |
| `-p` | `--port` | IoTDB server port. | No | `6667` |
| `-u` | `--username` | Username. | No | `root` |
| `-pw` | `--password` | Password. | No | `root` |
|`-sql_dialect`|`--sql_dialect`|Select server model : tree or table | No | `tree` |
|` -db `|`--database` |​Target database , applies only to `-sql_dialect=table` | Yes when `-sql_dialect = table`;<br>Starting from version V2.0.9‑beta, this parameter is optional when the file format is SQL. A prompt will be issued if the target database is not explicitly specified in either the parameter or the SQL statement. | - |
|`-table` |`--table `|Target table , required for CSV imports in table model | No | - |
| `-s` | `--source` | Local path to the file/directory to import. ​​**Supported formats**​: CSV, SQL, TsFile. Unsupported formats trigger error: `The file name must end with "csv", "sql", or "tsfile"!` | ​**Yes** | - |
| `-tn` | `--thread_num` | Maximum parallel threads | No | `8` <br> Range: 0 to Integer.Max(2147483647). |
| `-tz` | `--timezone` | Timezone (e.g., `+08:00`, `-01:00`). | No | System default |
| `-help` | `--help` | Display help (general or format-specific: `-help csv`). | No | - |

### 2.2 CSV Format

Expand Down
Loading