Skip to content
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4064a1b
[hotfix] update dingding image
Jul 23, 2021
e660a1f
Merge branch '1.12_test_4.3.x'
a49a Oct 18, 2021
1985eaf
Update mysql-sink.md
geosmart Oct 21, 2021
e81cd61
Merge branch '1.12_release_4.3.x'
a49a Nov 4, 2021
a616488
Merge branch '1.12_dev'
a49a Nov 30, 2021
39d9998
Merge pull request #527 from geosmart/patch-3
Dec 23, 2021
12fe7a8
Merge branch 'release_1.12_5.0'
a49a Jan 15, 2022
97a5cc3
[fix][connectors redis]redis sink values保留字段类型方便反序列化
jefftlin Jan 21, 2022
9ef4398
fix doc
Su1024 Jan 26, 2022
b2cabc0
Merge pull request #595 from Su1024/patch-1
Feb 7, 2022
f80e0c3
fix(doc): fix doc
Su1024 Feb 7, 2022
397289f
fix postgre jdbc upsert mode has not been
Feb 9, 2022
dc4085d
Merge pull request #598 from Su1024/patch-2
Feb 10, 2022
a55f400
Merge pull request #600 from chaozwn/fix_postgre
FlechazoW Feb 14, 2022
10bc231
[docs][docs] Modify the reademe file and rename flinkx to chunjun.
Feb 21, 2022
3ff2fbe
Merge pull request #589 from jefftlin/flinkx-connectors-redis/fixSink…
Mar 2, 2022
683e800
修改git clone地址
toadprince Mar 29, 2022
2160ad8
Merge pull request #644 from toadprince/patch-1
Mar 29, 2022
6df4576
Merge branch 'master' of https://github.com/DTStack/chunjun
zoudaokoulife Jun 9, 2022
3adfd5b
Merge remote-tracking branch 'origin/master'
zoudaokoulife Jun 15, 2022
eadff48
Merge branch 'master' of https://github.com/DTStack/chunjun
zoudaokoulife Aug 12, 2022
190bb12
Merge remote-tracking branch 'origin/master'
zoudaokoulife Sep 5, 2022
72daf01
resolve hive load driver confilict
mukekein Sep 5, 2022
9b87828
resolve hive load driver confilict
mukekein Sep 5, 2022
7b3e72a
Merge remote-tracking branch 'origin/hotfix_1158_hive2' into hotfix_1…
mukekein Sep 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.dtstack.chunjun.constants.ConstantValue;
import com.dtstack.chunjun.security.KerberosUtil;
import com.dtstack.chunjun.throwable.ChunJunRuntimeException;
import com.dtstack.chunjun.util.ClassUtil;
import com.dtstack.chunjun.util.ExceptionUtil;
import com.dtstack.chunjun.util.FileSystemUtil;
import com.dtstack.chunjun.util.RetryUtil;
Expand All @@ -47,7 +48,6 @@
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.Callable;
import java.util.concurrent.locks.ReentrantLock;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

Expand All @@ -72,7 +72,6 @@ public class HiveDbUtil {
"hive.server2.authentication.kerberos.keytab";
private static final Logger LOG = LoggerFactory.getLogger(HiveDbUtil.class);
private static final String ERROR_MSG_NO_DB = "NoSuchDatabaseException";
private static final ReentrantLock lock = new ReentrantLock();
public static Pattern HIVE_JDBC_PATTERN =
Pattern.compile(
"(?i)jdbc:hive2://(?<host>[^:]+):(?<port>\\d+)/(?<db>[^;]+)(?<param>[\\?;#].*)*");
Expand Down Expand Up @@ -205,10 +204,10 @@ public static Connection connect(ConnectionInfo connectionInfo) {
}

private static Connection connect(ConnectionInfo connectionInfo, Properties prop) {
lock.lock();
try {
Class.forName("org.apache.hive.jdbc.HiveDriver");
DriverManager.setLoginTimeout(connectionInfo.getTimeout());
ClassUtil.forName(
"org.apache.hive.jdbc.HiveDriver",
Thread.currentThread().getContextClassLoader());
return getHiveConnection(connectionInfo.getJdbcUrl(), prop);
} catch (SQLException e) {
if (SQLSTATE_USERNAME_PWD_ERROR.equals(e.getSQLState())) {
Expand All @@ -228,8 +227,6 @@ private static Connection connect(ConnectionInfo connectionInfo, Properties prop
+ connectionInfo.getJdbcUrl()
+ " error message :"
+ ExceptionUtil.getErrorMessage(e1));
} finally {
lock.unlock();
}
}

Expand Down