This is an automated email from the ASF dual-hosted git repository.

tanxinyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-docs.git


The following commit(s) were added to refs/heads/main by this push:
     new 6070715  Ecosystem-Integration: fix spark running tutorial (#319)
6070715 is described below

commit 6070715955f20a3cdab1685a63490fbcaee9a7d8
Author: Peng Junzhi <[email protected]>
AuthorDate: Fri Aug 16 12:24:54 2024 +0800

    Ecosystem-Integration: fix spark running tutorial (#319)
    
    * fix spark
    
    * fix old version
---
 .../Master/Ecosystem-Integration/Spark-IoTDB.md    | 20 ++++++++++++++++++++
 .../V1.2.x/Ecosystem-Integration/Spark-IoTDB.md    | 20 ++++++++++++++++++++
 .../latest/Ecosystem-Integration/Spark-IoTDB.md    | 20 ++++++++++++++++++++
 .../Master/Ecosystem-Integration/Spark-IoTDB.md    | 20 ++++++++++++++++++++
 .../latest/Ecosystem-Integration/Spark-IoTDB.md    | 22 +++++++++++++++++++++-
 5 files changed, 101 insertions(+), 1 deletion(-)

diff --git a/src/UserGuide/Master/Ecosystem-Integration/Spark-IoTDB.md 
b/src/UserGuide/Master/Ecosystem-Integration/Spark-IoTDB.md
index c7dee50..7e03da5 100644
--- a/src/UserGuide/Master/Ecosystem-Integration/Spark-IoTDB.md
+++ b/src/UserGuide/Master/Ecosystem-Integration/Spark-IoTDB.md
@@ -61,6 +61,26 @@ Simply execute the following command:
 cp spark-iotdb-connector_2.12.10-${iotdb.version}.jar $SPARK_HOME/jars/
 ```
 
+In addition, to ensure that spark can use JDBC and IoTDB connections, you need 
to do the following:
+
+Run the following command to compile the IoTDB JDBC connector:
+
+```shell
+mvn clean package -pl iotdb-client/jdbc -am -DskipTests -P 
get-jar-with-dependencies
+```
+
+The compiled jar package is located in the following directory:
+
+```shell
+$IoTDB_HOME/iotdb-client/jdbc/target/iotdb-jdbc-{version}-SNAPSHOT-jar-with-dependencies.jar
+```
+
+At last, copy the jar package to the ${SPARK_HOME}/jars directory. Simply 
execute the following command:
+
+```shell
+cp iotdb-jdbc-{version}-SNAPSHOT-jar-with-dependencies.jar $SPARK_HOME/jars/
+```
+
 ## Usage
 
 ### Parameters
diff --git a/src/UserGuide/V1.2.x/Ecosystem-Integration/Spark-IoTDB.md 
b/src/UserGuide/V1.2.x/Ecosystem-Integration/Spark-IoTDB.md
index c7dee50..7e03da5 100644
--- a/src/UserGuide/V1.2.x/Ecosystem-Integration/Spark-IoTDB.md
+++ b/src/UserGuide/V1.2.x/Ecosystem-Integration/Spark-IoTDB.md
@@ -61,6 +61,26 @@ Simply execute the following command:
 cp spark-iotdb-connector_2.12.10-${iotdb.version}.jar $SPARK_HOME/jars/
 ```
 
+In addition, to ensure that spark can use JDBC and IoTDB connections, you need 
to do the following:
+
+Run the following command to compile the IoTDB JDBC connector:
+
+```shell
+mvn clean package -pl iotdb-client/jdbc -am -DskipTests -P 
get-jar-with-dependencies
+```
+
+The compiled jar package is located in the following directory:
+
+```shell
+$IoTDB_HOME/iotdb-client/jdbc/target/iotdb-jdbc-{version}-SNAPSHOT-jar-with-dependencies.jar
+```
+
+At last, copy the jar package to the ${SPARK_HOME}/jars directory. Simply 
execute the following command:
+
+```shell
+cp iotdb-jdbc-{version}-SNAPSHOT-jar-with-dependencies.jar $SPARK_HOME/jars/
+```
+
 ## Usage
 
 ### Parameters
diff --git a/src/UserGuide/latest/Ecosystem-Integration/Spark-IoTDB.md 
b/src/UserGuide/latest/Ecosystem-Integration/Spark-IoTDB.md
index c7dee50..7e03da5 100644
--- a/src/UserGuide/latest/Ecosystem-Integration/Spark-IoTDB.md
+++ b/src/UserGuide/latest/Ecosystem-Integration/Spark-IoTDB.md
@@ -61,6 +61,26 @@ Simply execute the following command:
 cp spark-iotdb-connector_2.12.10-${iotdb.version}.jar $SPARK_HOME/jars/
 ```
 
+In addition, to ensure that spark can use JDBC and IoTDB connections, you need 
to do the following:
+
+Run the following command to compile the IoTDB JDBC connector:
+
+```shell
+mvn clean package -pl iotdb-client/jdbc -am -DskipTests -P 
get-jar-with-dependencies
+```
+
+The compiled jar package is located in the following directory:
+
+```shell
+$IoTDB_HOME/iotdb-client/jdbc/target/iotdb-jdbc-{version}-SNAPSHOT-jar-with-dependencies.jar
+```
+
+At last, copy the jar package to the ${SPARK_HOME}/jars directory. Simply 
execute the following command:
+
+```shell
+cp iotdb-jdbc-{version}-SNAPSHOT-jar-with-dependencies.jar $SPARK_HOME/jars/
+```
+
 ## Usage
 
 ### Parameters
diff --git a/src/zh/UserGuide/Master/Ecosystem-Integration/Spark-IoTDB.md 
b/src/zh/UserGuide/Master/Ecosystem-Integration/Spark-IoTDB.md
index ebcea70..0376fb1 100644
--- a/src/zh/UserGuide/Master/Ecosystem-Integration/Spark-IoTDB.md
+++ b/src/zh/UserGuide/Master/Ecosystem-Integration/Spark-IoTDB.md
@@ -60,6 +60,26 @@
 cp spark-iotdb-connector_2.12.10-${iotdb.version}.jar $SPARK_HOME/jars/
 ```
 
+此外,为了保证 spark 能使用 JDBC 和 IoTDB 连接,需要进行如下操作:
+
+运行如下命令来编译 IoTDB-JDBC 连接器:
+
+```shell
+mvn clean package -pl iotdb-client/jdbc -am -DskipTests -P 
get-jar-with-dependencies
+```
+
+编译后的 jar 包在如下目录中:
+
+```shell
+$IoTDB_HOME/iotdb-client/jdbc/target/iotdb-jdbc-{version}-SNAPSHOT-jar-with-dependencies.jar
+```
+
+最后再将 jar 包拷贝到 `${SPARK_HOME}/jars` 目录中即可。执行以下命令即可:
+
+```shell
+cp iotdb-jdbc-{version}-SNAPSHOT-jar-with-dependencies.jar $SPARK_HOME/jars/
+```
+
 ## 使用
 
 ### 参数
diff --git a/src/zh/UserGuide/latest/Ecosystem-Integration/Spark-IoTDB.md 
b/src/zh/UserGuide/latest/Ecosystem-Integration/Spark-IoTDB.md
index ebcea70..1531231 100644
--- a/src/zh/UserGuide/latest/Ecosystem-Integration/Spark-IoTDB.md
+++ b/src/zh/UserGuide/latest/Ecosystem-Integration/Spark-IoTDB.md
@@ -53,13 +53,33 @@
 
 ### `spark-shell` 调试
 
-如果需要在 `spark-shell` 中使用 `spark-iotdb-connetcor`,需要先在官网下载 `with-dependencies` 
版本的 jar 包。然后再将 Jar 包拷贝到 `${SPARK_HOME}/jars` 目录中即可。
+如果需要在 `spark-shell` 中使用 `spark-iotdb-connetcor`,需要先在官网下载 `with-dependencies` 
版本的 jar 包。然后再将 jar 包拷贝到 `${SPARK_HOME}/jars` 目录中即可。
 执行以下命令即可:
 
 ```shell
 cp spark-iotdb-connector_2.12.10-${iotdb.version}.jar $SPARK_HOME/jars/
 ```
 
+此外,为了保证 spark 能使用 JDBC 和 IoTDB 连接,需要进行如下操作:
+
+运行如下命令来编译 IoTDB-JDBC 连接器:
+
+```shell
+mvn clean package -pl iotdb-client/jdbc -am -DskipTests -P 
get-jar-with-dependencies
+```
+
+编译后的 jar 包在如下目录中:
+
+```shell
+$IoTDB_HOME/iotdb-client/jdbc/target/iotdb-jdbc-{version}-SNAPSHOT-jar-with-dependencies.jar
+```
+
+最后再将 jar 包拷贝到 `${SPARK_HOME}/jars` 目录中即可。执行以下命令即可:
+
+```shell
+cp iotdb-jdbc-{version}-SNAPSHOT-jar-with-dependencies.jar $SPARK_HOME/jars/
+```
+
 ## 使用
 
 ### 参数

Reply via email to