From 919c990d0c53572d00855617f9093a28d5bd2539 Mon Sep 17 00:00:00 2001 From: Anqi <16240361+Nicole00@users.noreply.github.com> Date: Thu, 15 Aug 2024 11:33:03 +0800 Subject: [PATCH 1/2] Update nebula-algorithm.md --- docs-2.0-zh/graph-computing/nebula-algorithm.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs-2.0-zh/graph-computing/nebula-algorithm.md b/docs-2.0-zh/graph-computing/nebula-algorithm.md index 676383c5c74..f108bc06a13 100644 --- a/docs-2.0-zh/graph-computing/nebula-algorithm.md +++ b/docs-2.0-zh/graph-computing/nebula-algorithm.md @@ -21,9 +21,9 @@ NebulaGraph Algorithm 版本和 {{nebula.name}} 内核的版本对应关系如 - {{nebula.name}} 服务已经部署并启动。详细信息,参考 [{{nebula.name}} 安装部署](../4.deployment-and-installation/1.resource-preparations.md "点击前往 {{nebula.name}} 安装部署")。 -- Spark 版本为 2.4.x。 +- 已安装 Spark2.4 或者 3.x -- Scala 版本为 2.11。 +- 已安装 Scala 2.11(对应 Spark 2.4)或 2.12(对应 Spark 3.x)。 - (可选)如果用户需要在 Github 中克隆最新的 Algorithm,并自行编译打包,可以选择安装 [Maven](https://maven.apache.org/download.cgi)。 @@ -85,6 +85,10 @@ NebulaGraph Algorithm 实现图计算的流程如下: ```bash $ git clone -b {{algorithm.branch}} https://github.com/vesoft-inc/nebula-algorithm.git ``` +如果是在 Spark 3.x 环境中运行 Algorithm,请使用 spark3 分支: + ```bash + $ git clone -b spark3 https://github.com/vesoft-inc/nebula-algorithm.git + ``` 2. 进入目录`nebula-algorithm`。 From 262c84e72a92d716ed3dd4b820b8753f296136de Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Thu, 15 Aug 2024 13:40:07 +0800 Subject: [PATCH 2/2] updates --- docs-2.0-en/graph-computing/nebula-algorithm.md | 12 +++++++++--- docs-2.0-zh/graph-computing/nebula-algorithm.md | 6 ++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/docs-2.0-en/graph-computing/nebula-algorithm.md b/docs-2.0-en/graph-computing/nebula-algorithm.md index 5d59d5adfb5..b4ff3f941c7 100644 --- a/docs-2.0-en/graph-computing/nebula-algorithm.md +++ b/docs-2.0-en/graph-computing/nebula-algorithm.md @@ -20,9 +20,9 @@ Before using the NebulaGraph Algorithm, users need to confirm the following info - The NebulaGraph services have been deployed and started. For details, see [NebulaGraph Installation](../4.deployment-and-installation/1.resource-preparations.md). -- The Spark version is 2.4.x. +- The Spark version is 2.4 or 3.x is installed. -- The Scala version is 2.11. +- The Scala version is 2.11 (for Spark 2.4) or 2.12 (for Spark 3.x) is installed. - (Optional) If users need to clone, compile, and package the latest Algorithm in Github, install [Maven](https://maven.apache.org/download.cgi). @@ -85,7 +85,13 @@ For detailed implementation methods, see [Scala file](https://github.com/vesoft- $ git clone -b {{algorithm.branch}} https://github.com/vesoft-inc/nebula-algorithm.git ``` -2. Enter the directory `nebula-algorithm`. + If running Algorithm in a Spark 3.x environment, use the spark3 branch: + + ```bash + $ git clone -b spark3 https://github.com/vesoft-inc/nebula-algorithm.git + ``` + +1. Enter the directory `nebula-algorithm`. ```bash $ cd nebula-algorithm diff --git a/docs-2.0-zh/graph-computing/nebula-algorithm.md b/docs-2.0-zh/graph-computing/nebula-algorithm.md index f108bc06a13..502ae4e8453 100644 --- a/docs-2.0-zh/graph-computing/nebula-algorithm.md +++ b/docs-2.0-zh/graph-computing/nebula-algorithm.md @@ -85,8 +85,10 @@ NebulaGraph Algorithm 实现图计算的流程如下: ```bash $ git clone -b {{algorithm.branch}} https://github.com/vesoft-inc/nebula-algorithm.git ``` -如果是在 Spark 3.x 环境中运行 Algorithm,请使用 spark3 分支: - ```bash + + 如果是在 Spark 3.x 环境中运行 Algorithm,请使用 spark3 分支: + + ```bash $ git clone -b spark3 https://github.com/vesoft-inc/nebula-algorithm.git ```