You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metron.apache.org by ni...@apache.org on 2019/10/10 16:54:16 UTC

[metron] branch feature/METRON-2088-support-hdp-3.1 updated: METRON-2279 Unable to Index to Solr with Kerberos (nickwallen) closes apache/metron#1528

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

nickallen pushed a commit to branch feature/METRON-2088-support-hdp-3.1
in repository https://gitbox.apache.org/repos/asf/metron.git


The following commit(s) were added to refs/heads/feature/METRON-2088-support-hdp-3.1 by this push:
     new 8a23972  METRON-2279 Unable to Index to Solr with Kerberos (nickwallen) closes apache/metron#1528
8a23972 is described below

commit 8a239727b759aba7a90ac4d494e6c81cae275068
Author: nickwallen <ni...@apache.org>
AuthorDate: Thu Oct 10 12:53:49 2019 -0400

    METRON-2279 Unable to Index to Solr with Kerberos (nickwallen) closes apache/metron#1528
---
 metron-platform/metron-solr/metron-solr-storm/pom.xml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/metron-platform/metron-solr/metron-solr-storm/pom.xml b/metron-platform/metron-solr/metron-solr-storm/pom.xml
index f160447..da12b0e 100644
--- a/metron-platform/metron-solr/metron-solr-storm/pom.xml
+++ b/metron-platform/metron-solr/metron-solr-storm/pom.xml
@@ -29,6 +29,8 @@
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
         <commons.config.version>1.10</commons.config.version>
         <guava_version>${global_hbase_guava_version}</guava_version>
+        <!-- the version of httpclient required by solr 7.4.0 -->
+        <http_client_version>4.5.3</http_client_version>
     </properties>
     <dependencies>
         <dependency>
@@ -170,6 +172,21 @@
                                     <shadedPattern>org.apache.metron.guava.${guava_version}</shadedPattern>
                                 </relocation>
                                 <relocation>
+                                    <!--
+                                      Need to relocate httpclient 4.5.3 and httpcore 4.4.6 as these versions are required
+                                      by Solr 7.4.0. This will relocate all HttpComponents libraries pulled-in including
+                                      `httpclient`, `httpcore`, and `httpmime` because each share a common base package
+                                      namespace (org.apache.http).
+
+                                      When running with kerberos, Storm adds all jars in `$STORM_HOME/contrib/storm-autocreds`
+                                      to the classpath at runtime.  This includes httpcore 4.4.1 and httpclient 4.3.6, which are
+                                      incompatible with Solr 7.4.0. This is only a problem when running Storm with
+                                      kerberos.
+                                    -->
+                                    <pattern>org.apache.http</pattern>
+                                    <shadedPattern>org.apache.metron.http.${http_client_version}</shadedPattern>
+                                </relocation>
+                                <relocation>
                                     <pattern>com.fasterxml.jackson</pattern>
                                     <shadedPattern>org.apache.metron.jackson</shadedPattern>
                                 </relocation>