Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ IoTDB supports three methods for data import:
| `-u` | `--username` | Username. | No | `root` |
| `-pw` | `--password` | Password. Supported for hidden input since V2.0.9-beta | 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` | - |
| ` -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). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ IoTDB supports three methods for data import:
| `-u` | `--username` | Username. | No | `root` |
| `-pw` | `--password` | Password. Supported for hidden input since V2.0.9.1 | No | `TimechoDB@2021`(Before V2.0.6 it is 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` | - |
| ` -db ` | `--database` | ​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table`;<br>Starting from version V2.0.9.2, 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). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ IoTDB supports three methods for data import:
| `-u` | `--username` | Username. | No | `root` |
| `-pw` | `--password` | Password. Supported for hidden input since V2.0.9-beta | 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` | - |
| ` -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). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ IoTDB supports three methods for data import:
| `-u` | `--username` | Username. | No | `root` |
| `-pw` | `--password` | Password. Supported for hidden input since V2.0.9.1 | No | `TimechoDB@2021`(Before V2.0.6 it is 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` | - |
| ` -db ` | `--database` | ​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table`;<br>Starting from version V2.0.9.2, 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). |
Expand All @@ -60,6 +60,7 @@ IoTDB supports three methods for data import:
| `-ts` | `--trust_store` | Trust store. Supports hidden input. Supported since V2.0.9.1 | No | - |
| `-tpw` | `--trust_store_password` | Trust store password. Supports hidden input. Supported since V2.0.9.1 | No | - |


### 2.2 CSV Format

#### 2.2.1 Command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ IoTDB 支持三种方式进行数据导入:
| -pw | --password | 密码,自 V2.0.9-beta 起支持隐藏输入 | 否 | root |
| -s | --source | 待加载的脚本文件(夹)的本地目录路径<br>如果为 csv sql tsfile 这三个支持的格式,直接导入<br>不支持的格式,报错提示`The file name must end with "csv" or "sql"or "tsfile"!` | √ |
| -sql_dialect | --sql_dialect | 选择 server 是树模型还是表模型,当前支持 tree 和 table 类型 | 否 | tree |
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填 | - |
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填;<br>V2.0.9-beta 版本起,当文件格式为 SQL 时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - |
| -table | --table | 数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - |
| -tn | --thread\_num | 最大并行线程数 | 否 | 8<br>范围:0~Integer.Max=2147483647 |
| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ IoTDB 支持三种方式进行数据导入:
| -pw | --password | 密码,自 V2.0.9.1 起支持隐藏输入 | 否 | TimechoDB@2021 (V2.0.6 版本之前为 root) |
| -s | --source | 待加载的脚本文件(夹)的本地目录路径<br>如果为 csv sql tsfile 这三个支持的格式,直接导入<br>不支持的格式,报错提示`The file name must end with "csv" or "sql"or "tsfile"!` | √ |
| -sql_dialect | --sql_dialect | 选择 server 是树模型还是表模型,当前支持 tree 和 table 类型 | 否 | tree |
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填 | - |
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填;<br>V2.0.9.2 版本起,当文件格式为 SQL 时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - |
| -table | --table | 数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - |
| -tn | --thread\_num | 最大并行线程数 | 否 | 8<br>范围:0~Integer.Max=2147483647 |
| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 |
Expand All @@ -63,6 +63,7 @@ IoTDB 支持三种方式进行数据导入:
| -tpw | --trust_store_password | 信任库密码。支持隐藏输入,自 V2.0.9.1 起支持 | 否 | - |



### 2.2 CSV 格式

#### 2.2.1 运行命令
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ IoTDB 支持三种方式进行数据导入:
| -pw | --password | 密码,自 V2.0.9-beta 起支持隐藏输入 | 否 | root |
| -s | --source | 待加载的脚本文件(夹)的本地目录路径<br>如果为 csv sql tsfile 这三个支持的格式,直接导入<br>不支持的格式,报错提示`The file name must end with "csv" or "sql"or "tsfile"!` | √ |
| -sql_dialect | --sql_dialect | 选择 server 是树模型还是表模型,当前支持 tree 和 table 类型 | 否 | tree |
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填 | - |
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填;<br>V2.0.9-beta 版本起,当文件格式为 SQL 时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - |
| -table | --table | 数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - |
| -tn | --thread\_num | 最大并行线程数 | 否 | 8<br>范围:0~Integer.Max=2147483647 |
| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 |
Expand Down
Loading
Loading