-
Notifications
You must be signed in to change notification settings - Fork 115
doc: update loader doc #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -807,47 +807,71 @@ schema: 必填 | |||||
|
|
||||||
| ##### 3.4.1 参数说明 | ||||||
|
|
||||||
| | 参数 | 默认值 | 是否必传 | 描述信息 | | ||||||
| |---------------------------|-----------|------|-------------------------------------------------------------------| | ||||||
| | `-f` 或 `--file` | | Y | 配置脚本的路径 | | ||||||
| | `-g` 或 `--graph` | | Y | 图名称 | | ||||||
| | `-gs` 或 `--graphspace` | DEFAULT | | 图空间 | | ||||||
| | `-s` 或 `--schema` | | Y | schema 文件路径 | | ||||||
| | `-h` 或 `--host` 或 `-i` | localhost | | HugeGraphServer 的地址 | | ||||||
| | `-p` 或 `--port` | 8080 | | HugeGraphServer 的端口号 | | ||||||
| | `--username` | null | | 当 HugeGraphServer 开启了权限认证时,当前图的 username | | ||||||
| | `--password` | null | | 当 HugeGraphServer 开启了权限认证时,当前图的 password | | ||||||
| | `--create-graph` | false | | 是否在图不存在时自动创建 | | ||||||
| | `--token` | null | | 当 HugeGraphServer 开启了权限认证时,当前图的 token | | ||||||
| | `--protocol` | http | | 向服务端发请求的协议,可选 http 或 https | | ||||||
| | `--pd-peers` | | | PD 服务节点地址 | | ||||||
| | `--pd-token` | | | 访问 PD 服务的 token | | ||||||
| | `--meta-endpoints` | | | 元信息存储服务地址 | | ||||||
| | `--direct` | false | | 是否直连 HugeGraph-Store | | ||||||
| | `--route-type` | NODE_PORT | | 路由选择方式(可选值:NODE_PORT / DDS / BOTH) | | ||||||
| | `--cluster` | hg | | 集群名 | | ||||||
| | `--trust-store-file` | | | 请求协议为 https 时,客户端的证书文件路径 | | ||||||
| | `--trust-store-password` | | | 请求协议为 https 时,客户端证书密码 | | ||||||
| | `--clear-all-data` | false | | 导入数据前是否清除服务端的原有数据 | | ||||||
| | `--clear-timeout` | 240 | | 导入数据前清除服务端的原有数据的超时时间 | | ||||||
| | `--incremental-mode` | false | | 是否使用断点续导模式,仅输入源为 FILE 和 HDFS 支持该模式,启用该模式能从上一次导入停止的地方开始导入 | | ||||||
| | `--failure-mode` | false | | 失败模式为 true 时,会导入之前失败了的数据,一般来说失败数据文件需要在人工更正编辑好后,再次进行导入 | | ||||||
| | `--batch-insert-threads` | CPUs | | 批量插入线程池大小 (CPUs 是当前 OS 可用**逻辑核**个数) | | ||||||
| | `--single-insert-threads` | 8 | | 单条插入线程池的大小 | | ||||||
| | `--max-conn` | 4 * CPUs | | HugeClient 与 HugeGraphServer 的最大 HTTP 连接数,**调整线程**的时候建议同时调整此项 | | ||||||
| | `--max-conn-per-route` | 2 * CPUs | | HugeClient 与 HugeGraphServer 每个路由的最大 HTTP 连接数,**调整线程**的时候建议同时调整此项 | | ||||||
| | `--batch-size` | 500 | | 导入数据时每个批次包含的数据条数 | | ||||||
| | `--max-parse-errors` | 1 | | 最多允许多少行数据解析错误,达到该值则程序退出 | | ||||||
| | `--max-insert-errors` | 500 | | 最多允许多少行数据插入错误,达到该值则程序退出 | | ||||||
| | `--timeout` | 60 | | 插入结果返回的超时时间(秒) | | ||||||
| | `--shutdown-timeout` | 10 | | 多线程停止的等待时间(秒) | | ||||||
| | `--retry-times` | 0 | | 发生特定异常时的重试次数 | | ||||||
| | `--retry-interval` | 10 | | 重试之前的间隔时间(秒) | | ||||||
| | `--check-vertex` | false | | 插入边时是否检查边所连接的顶点是否存在 | | ||||||
| | `--print-progress` | true | | 是否在控制台实时打印导入条数 | | ||||||
| | `--dry-run` | false | | 打开该模式,只解析不导入,通常用于测试 | | ||||||
| | `--help` | false | | 打印帮助信息 | | ||||||
|
|
||||||
| | 参数 | 默认值 | 是否必传 | 描述信息 | | ||||||
| |-----------------------------------------|-------------|------|-------------------------------------------------------------------| | ||||||
| | `-f` 或 `--file` | | Y | 配置脚本的路径 | | ||||||
| | `-g` 或 `--graph` | | Y | 图名称 | | ||||||
| | `--graphspace` | DEFAULT | | 图空间 | | ||||||
|
||||||
| | `--graphspace` | DEFAULT | | 图空间 | | |
| | `-gs` 或 `--graphspace` | DEFAULT | | 图空间 | |
Copilot
AI
Jan 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The --help parameter now shows --help 或 -help as alternatives. However, the standard convention for help flags is typically --help or -h. The short form -help is unusual and may not work as expected in many CLI frameworks. This should be verified against the actual implementation, and if -h is the correct short form, it should be used instead of -help.
| | `--help` 或 `-help` | false | | 打印帮助信息 | | |
| | `--help` 或 `-h` | false | | 打印帮助信息 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 参数分组建议 - 提升易用性
当前参数表格包含 49 个参数,对新用户来说信息量过大。建议按功能分组,例如:
基础参数 (必填/常用):
-f,-g,-s,-h,-p等性能调优参数:
--batch-insert-threads,--max-conn,--batch-size,--parallel-count等高级特性参数:
--incremental-mode,--failure-mode,--dry-run等HBase 后端参数:
--vertex-partitions,--hbase-zk-quorum等CDC 相关参数:
--cdc-flush-interval,--cdc-sink-parallelism等这样可以帮助用户快速找到需要的参数。