You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by da...@apache.org on 2023/02/26 07:32:50 UTC
[doris] branch master updated: [fix](s3) fix SdkClientException: Multiple HTTP implementations were found on the classpath (#17136)
This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new e9619368e9 [fix](s3) fix SdkClientException: Multiple HTTP implementations were found on the classpath (#17136)
e9619368e9 is described below
commit e9619368e9748ed19b89b87d788edcc277775521
Author: Mingyu Chen <mo...@163.com>
AuthorDate: Sun Feb 26 15:32:43 2023 +0800
[fix](s3) fix SdkClientException: Multiple HTTP implementations were found on the classpath (#17136)
---
fe/fe-core/src/main/java/org/apache/doris/PaloFe.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java b/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java
index 61095e141d..6de318fd7b 100755
--- a/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/PaloFe.java
@@ -134,6 +134,14 @@ public class PaloFe {
return;
}
+ // To resolve: "SdkClientException: Multiple HTTP implementations were found on the classpath"
+ // Currently, there are 2 implements of HTTP client: ApacheHttpClient and UrlConnectionHttpClient
+ // The UrlConnectionHttpClient is introduced by #16602, and it causes the exception.
+ // So we set the default HTTP client to UrlConnectionHttpClient.
+ // TODO: remove this after we remove ApacheHttpClient
+ System.setProperty("software.amazon.awssdk.http.service.impl",
+ "software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService");
+
// init catalog and wait it be ready
Env.getCurrentEnv().initialize(args);
Env.getCurrentEnv().waitForReady();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org