Skip to content
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

Update ex-ug-para-import-command.md #772

Merged
merged 3 commits into from
Jul 27, 2021
Merged
Changes from 1 commit
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 @@ -2,9 +2,17 @@

完成配置文件修改后,可以运行以下命令将指定来源的数据导入Nebula Graph数据库。

```bash
<spark_install_path>/bin/spark-submit --master "local" --class com.vesoft.nebula.exchange.Exchange <nebula-exchange-2.x.y.jar_path> -c <csv_application.conf_path>
```
- 首次导入

```bash
<spark_install_path>/bin/spark-submit --master "local" --class com.vesoft.nebula.exchange.Exchange <nebula-exchange-2.x.y.jar_path> -c <csv_application.conf_path>
```

- 二次导入
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

定义下二次导入,是首次失败重试,还是第一次导入成功,再导入其它数据。


```bash
<spark_install_path>/bin/spark-submit --master "local" --class com.vesoft.nebula.exchange.Exchange <nebula-exchange-2.x.y.jar_path> -c <csv_application.conf_path> -r "<import_fail_file_path>"
```

!!! note
JAR文件版本号以实际编译得到的JAR文件名称为准。
Expand All @@ -18,3 +26,4 @@
| `-c`  / `--config`  | 是 | 无 | 指定配置文件的路径。 |
| `-h`  / `--hive`  | 否 | `false` | 添加这个参数表示支持从Hive中导入数据。 |
| `-D`  / `--dry`  | 否 | `false` | 添加这个参数表示检查配置文件的格式是否符合要求,但不会校验`tags`和`edges`的配置项是否正确。正式导入数据时不能添加这个参数。 |
|-r / --reload | 否 | 无 | 指定需要重新加载的文件路径。如果之前导入时有一些数据导入失败,会生成导入失败文件,可以用该参数将导入失败文件的数据再次尝试导入。 |