Skip to content

Commit

Permalink
Update ex-ug-para-import-command.md (#772)
Browse files Browse the repository at this point in the history
* Update ex-ug-para-import-command.md

* Update ex-ug-para-import-command.md

* Update ex-ug-para-import-command.md
  • Loading branch information
cooper-lzy committed Jul 27, 2021
1 parent 8a0c889 commit 314f6ad
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@

完成配置文件修改后,可以运行以下命令将指定来源的数据导入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>
```

- 导入reload文件

如果首次导入时有一些数据导入失败,会将导入失败的数据存入reload文件,可以用参数`-r`尝试导入reload文件。

```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 "<reload_file_path>"
```

!!! note
JAR文件版本号以实际编译得到的JAR文件名称为准。
Expand All @@ -18,3 +28,4 @@
| `-c`  / `--config`  ||| 指定配置文件的路径。 |
| `-h`  / `--hive`  || `false` | 添加这个参数表示支持从Hive中导入数据。 |
| `-D`  / `--dry`  || `false` | 添加这个参数表示检查配置文件的格式是否符合要求,但不会校验`tags``edges`的配置项是否正确。正式导入数据时不能添加这个参数。 |
|-r / --reload ||| 指定需要重新加载的reload文件路径。 |

0 comments on commit 314f6ad

Please sign in to comment.