You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by bh...@apache.org on 2019/08/17 15:13:11 UTC

[impala] 02/02: IMPALA-8872: Override httpcore from libthrift to 4.4.9

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

bharathv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit 7d387d97eef83f3e8e8f2a5e6868c2dcd677b0a4
Author: Bharath Vissapragada <bh...@cloudera.com>
AuthorDate: Fri Aug 16 19:17:26 2019 -0700

    IMPALA-8872: Override httpcore from libthrift to 4.4.9
    
    When deploying a cluster with Ranger publishing audits to SOLR,
    we noticed that the SPNEGO request consistently fails with
    httpcore 4.4.1 pulled in by thrift.
    
    The error goes away with httpcore v4.4.9 (manually tested). This
    patch overrides the dependency.
    
    Change-Id: I675356d002354b0aff439f0635e30f4610a96989
    Reviewed-on: http://gerrit.cloudera.org:8080/14087
    Reviewed-by: Bharath Vissapragada <bh...@cloudera.com>
    Tested-by: Bharath Vissapragada <bh...@cloudera.com>
---
 fe/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/fe/pom.xml b/fe/pom.xml
index bddec61..40005a5 100644
--- a/fe/pom.xml
+++ b/fe/pom.xml
@@ -348,6 +348,22 @@ under the License.
       <groupId>org.apache.thrift</groupId>
       <artifactId>libthrift</artifactId>
       <version>${thrift.version}</version>
+      <!-- httpcore overriden below -->
+      <exclusions>
+        <exclusion>
+          <groupId>org.apache.httpcomponents</groupId>
+          <artifactId>httpcore</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+
+    <!-- Override httpcore from libthrift to a later maintenance version. Noticed
+        certain SPNEGO auth errors when connecting to kerberized HTTP endpoints
+        using v4.4.1 pulled by libthrift. -->
+    <dependency>
+      <groupId>org.apache.httpcomponents</groupId>
+      <artifactId>httpcore</artifactId>
+      <version>${httpcomponents.core.version}</version>
     </dependency>
 
     <dependency>