Skip to content

Commit

Permalink
move set position of connectionTimeout before method connect() invoked
Browse files Browse the repository at this point in the history
  • Loading branch information
baisui1981 committed Apr 5, 2023
1 parent 36cf41f commit 80ea7d4
Show file tree
Hide file tree
Showing 61 changed files with 86 additions and 78 deletions.
2 changes: 1 addition & 1 deletion cassandrareader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<artifactId>cassandrareader</artifactId>
<name>cassandrareader</name>
Expand Down
4 changes: 2 additions & 2 deletions cassandrawriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>cassandrawriter</artifactId>
<name>cassandrawriter</name>
<version>3.7.0</version>
<version>3.7.1</version>
<packaging>jar</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion clickhousewriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>

<artifactId>datax-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>

<artifactId>datax-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion doriswriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ under the License.
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion drdsreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>

<artifactId>drdsreader</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion drdswriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>

<artifactId>drdswriter</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions elasticsearchwriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>elasticsearchwriter</artifactId>

<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
<properties>
<jest.version>6.3.1</jest.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion ftp-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ public void loginFtpServer(String host, String username, String password, int po
String connectMode) {
ftpClient = new FTPClient();
try {
ftpClient.setConnectTimeout(timeout);
ftpClient.setDataTimeout(timeout);
// 连接
ftpClient.connect(host, port);
// 登录
ftpClient.login(username, password);
// 不需要写死ftp server的OS TYPE,FTPClient getSystemType()方法会自动识别
// ftpClient.configure(new FTPClientConfig(FTPClientConfig.SYST_UNIX));
ftpClient.setConnectTimeout(timeout);
ftpClient.setDataTimeout(timeout);

if ("PASV".equalsIgnoreCase(connectMode)) {
ftpClient.enterRemotePassiveMode();
ftpClient.enterLocalPassiveMode();
Expand Down
2 changes: 1 addition & 1 deletion ftpreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<artifactId>ftpreader</artifactId>
<name>ftpreader</name>
Expand Down
2 changes: 1 addition & 1 deletion ftpwriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<artifactId>ftpwriter</artifactId>
<name>ftpwriter</name>
Expand Down
4 changes: 2 additions & 2 deletions gdbreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>gdbreader</artifactId>

<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>

<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion gdbwriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>

<artifactId>gdbwriter</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions hbase094xreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>hbase094xreader</artifactId>
<name>hbase094xreader</name>
<version>3.7.0</version>
<version>3.7.1</version>


<dependencies>
Expand Down
6 changes: 3 additions & 3 deletions hbase094xwriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>hbase094xwriter</artifactId>
<name>hbase094xwriter</name>
<version>3.7.0</version>
<version>3.7.1</version>

<properties>
<commons-codec.version>1.8</commons-codec.version>
Expand Down Expand Up @@ -75,7 +75,7 @@
<dependency>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-common</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions hbase11xreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<artifactId>hbase11xreader</artifactId>
<name>hbase11xreader</name>
<version>3.7.0</version>
<version>3.7.1</version>
<packaging>jar</packaging>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions hbase11xsqlreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<artifactId>hbase11xsqlreader</artifactId>
<name>hbase11xsqlreader</name>
<version>3.7.0</version>
<version>3.7.1</version>
<packaging>jar</packaging>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions hbase11xsqlwriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>hbase11xsqlwriter</artifactId>
<name>hbase11xsqlwriter</name>
<version>3.7.0</version>
<version>3.7.1</version>
<packaging>jar</packaging>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions hbase11xwriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>hbase11xwriter</artifactId>
<name>hbase11xwriter</name>
<version>3.7.0</version>
<version>3.7.1</version>
<packaging>jar</packaging>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions hbase20xsqlreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>hbase20xsqlreader</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
<packaging>jar</packaging>

<properties>
Expand Down Expand Up @@ -63,7 +63,7 @@
<dependency>
<groupId>com.alibaba.datax</groupId>
<artifactId>plugin-rdbms-util</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions hbase20xsqlwriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>hbase20xsqlwriter</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
<packaging>jar</packaging>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions hdfsreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>hdfsreader</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
<packaging>jar</packaging>
<properties>
<hive.version>1.1.1</hive.version>
Expand Down
2 changes: 1 addition & 1 deletion hdfswriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion kingbaseesreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion kingbaseeswriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<artifactId>kingbaseeswriter</artifactId>
<name>kingbaseeswriter</name>
Expand Down
2 changes: 1 addition & 1 deletion kuduwriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion mongodbreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion mongodbwriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datax-all</artifactId>
<groupId>com.alibaba.datax</groupId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>mongodbwriter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion mysqlreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<artifactId>mysqlreader</artifactId>
<name>mysqlreader</name>
Expand Down
2 changes: 1 addition & 1 deletion mysqlwriter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.alibaba.datax</groupId>
<artifactId>datax-all</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
</parent>
<artifactId>mysqlwriter</artifactId>
<name>mysqlwriter</name>
Expand Down
Loading

0 comments on commit 80ea7d4

Please sign in to comment.