Skip to content

Commit

Permalink
web datasource-postgresql-cdc] support web add pg cdc dadasourcehttps…
Browse files Browse the repository at this point in the history
  • Loading branch information
Xishu Fan committed Aug 20, 2024
1 parent 14a939c commit 11553dd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ public class DatasourceLoadConfig {
public static final Map<String, String> classLoaderJarName;
public static final String[] DEFAULT_PARENT_FIRST_PATTERNS =
new String[] {
"java.",
"javax.xml",
"org.xml",
"org.w3c",
"scala.",
"javax.annotation.",
"org.slf4j",
"org.apache.log4j",
"org.apache.seatunnel.api",
"org.apache.logging",
"org.apache.commons",
"com.fasterxml.jackson"
"java.",
"javax.xml",
"org.xml",
"org.w3c",
"scala.",
"javax.annotation.",
"org.slf4j",
"org.apache.log4j",
"org.apache.seatunnel.api",
"org.apache.logging",
"org.apache.commons",
"com.fasterxml.jackson"
};

static {
Expand Down Expand Up @@ -78,6 +78,9 @@ public class DatasourceLoadConfig {
classLoaderFactoryName.put(
"MYSQL-CDC",
"org.apache.seatunnel.datasource.plugin.cdc.mysql.MysqlCDCDataSourceFactory");
classLoaderFactoryName.put(
"POSTGRES-CDC",
"org.apache.seatunnel.datasource.plugin.cdc.postgresql.PostgresCDCDataSourceFactory");
classLoaderFactoryName.put(
"S3", "org.apache.seatunnel.datasource.plugin.s3.S3DataSourceFactory");
classLoaderFactoryName.put(
Expand Down Expand Up @@ -114,7 +117,7 @@ public class DatasourceLoadConfig {

classLoaderJarName.put("SQLSERVER-CDC", "datasource-sqlserver-cdc-");
classLoaderJarName.put("MYSQL-CDC", "datasource-mysql-cdc-");

classLoaderJarName.put("POSTGRES-CDC", "datasource-postgresql-cdc-");
classLoaderJarName.put("ELASTICSEARCH", "datasource-elasticsearch-");
classLoaderJarName.put("S3", "datasource-s3-");
classLoaderJarName.put("HIVE", "datasource-hive-");
Expand All @@ -140,6 +143,7 @@ public class DatasourceLoadConfig {
"JDBC-TiDB",
"Kafka",
"MySQL-CDC",
"POSTGRES-CDC",
"S3",
"SqlServer-CDC",
"StarRocks",
Expand Down
2 changes: 2 additions & 0 deletions seatunnel-datasource/seatunnel-datasource-plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
<module>datasource-jdbc-db2</module>
<module>datasource-fakesource</module>
<module>datasource-console</module>
<module>datasource-postgresql-cdc</module>

</modules>

</project>

0 comments on commit 11553dd

Please sign in to comment.