1.下載源碼
https://github.com/apache/seatunnel.git
2.編譯
mvn clean package -pl seatunnel-dist -am -Dmaven.test.skip=true
3. 下載驅(qū)動
sh bin/install-plugin.sh
4.測試類
選擇 seatunnel-examples
├── seatunnel-engine-examples
├── seatunnel-flink-connector-v2-example
├── seatunnel-spark-connector-v2-example
5.Spark 引擎調(diào)試
注意:需要調(diào)試哪些數(shù)據(jù)庫,使用相應(yīng) connector ,就要在 pom 文件中添加。文章來源:http://www.zghlxwxcb.cn/news/detail-709170.html
<!-- 添加 postgresql 驅(qū)動>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5</version>
</dependency>
<!-- 添加 oracle 驅(qū)動-->
<dependency>
<groupId>com.oracle.ojdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>19.3.0.0</version>
</dependency>
<!-- 添加 hive 相關(guān) 驅(qū)動>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-file</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-hive</artifactId>
<version>${project.version}</version>
</dependency>
如果需要其他的,自己補充即可文章來源地址http://www.zghlxwxcb.cn/news/detail-709170.html
到了這里,關(guān)于01 - Apache Seatunnel 源碼調(diào)試的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!