This is an automated email from the ASF dual-hosted git repository.

xuyang pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
     new aca678ba069 [fix](s3) fix SdkClientException: Multiple HTTP 
implementations were found on the classpath #17136 (#34580)
aca678ba069 is described below

commit aca678ba069a9786fb00293aaa28ff1271f5079f
Author: xueweizhang <[email protected]>
AuthorDate: Thu May 9 17:14:45 2024 +0800

    [fix](s3) fix SdkClientException: Multiple HTTP implementations were found 
on the classpath #17136 (#34580)
    
    cherry-pick from #17136
    
    Signed-off-by: nextdreamblue <[email protected]>
---
 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 6fb315dced9..1bbf9e2f595 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to