Skip to content

Commit 23ed0fc

Browse files
authored
[Improve][Zeta] Move driver into lib directory and change operation count (apache#4845)
1 parent c7745e6 commit 23ed0fc

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

docs/en/connector-v2/sink/Jdbc.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ semantics (using XA transaction guarantee).
99

1010
:::tip
1111

12-
Warn: for license compliance, you have to provide database driver yourself, copy to `$SEATNUNNEL_HOME/plugins/jdbc/lib/` directory in order to make them work.
12+
Warn: for license compliance, you have to provide database driver yourself, copy to `$SEATNUNNEL_HOME/lib/` directory in order to make them work.
1313

14-
e.g. If you use MySQL, should download and copy `mysql-connector-java-xxx.jar` to `$SEATNUNNEL_HOME/plugins/jdbc/lib/`
14+
e.g. If you use MySQL, should download and copy `mysql-connector-java-xxx.jar` to `$SEATNUNNEL_HOME/lib/`. For Spark/Flink, you should also copy it to `$SPARK_HOME/jars/` or `$FLINK_HOME/lib/`.
1515

1616
:::
1717

docs/en/connector-v2/source/Jdbc.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Read external data source data through JDBC.
88

99
:::tip
1010

11-
Warn: for license compliance, you have to provide database driver yourself, copy to `$SEATNUNNEL_HOME/plugins/jdbc/lib/` directory in order to make them work.
11+
Warn: for license compliance, you have to provide database driver yourself, copy to `$SEATNUNNEL_HOME/lib/` directory in order to make them work.
1212

13-
e.g. If you use MySQL, should download and copy `mysql-connector-java-xxx.jar` to `$SEATNUNNEL_HOME/plugins/jdbc/lib/`
13+
e.g. If you use MySQL, should download and copy `mysql-connector-java-xxx.jar` to `$SEATNUNNEL_HOME/lib/`. For Spark/Flink, you should also copy it to `$SPARK_HOME/jars/` or `$FLINK_HOME/lib/`.
1414

1515
:::
1616

plugins/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This directory used to store some third party jar package dependency by connector running, such as jdbc drivers.
44

5+
!!!Attention: If you use Zeta Engine, please add jar to `$SEATUNNEL_HOME/lib/` directory on each node.
6+
57
## directory structure
68

79
The jar dependency by connector need put in `plugins/${connector name}/lib/` dir.

seatunnel-dist/src/main/assembly/assembly-bin-ci.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
<include>net.snowflake.snowflake-jdbc:jar</include>
205205
</includes>
206206
<outputFileNameMapping>${artifact.file.name}</outputFileNameMapping>
207-
<outputDirectory>/plugins/jdbc/lib</outputDirectory>
207+
<outputDirectory>/lib</outputDirectory>
208208
<scope>provided</scope>
209209
</dependencySet>
210210
</dependencySets>

0 commit comments

Comments
 (0)