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

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

commit 85e1a3e33b9a3f55684e321f5ad180d4fc04c5ad
Author: Laszlo Gaal <[email protected]>
AuthorDate: Wed May 31 20:22:31 2023 +0200

    IMPALA-12218: Exclude Ranger's ORC dependency
    
    Since RANGER-1837 Ranger has a dependency on ORC, as it became capable
    of writing audit information in ORC format in addition to the text-based
    formats supported earlier (JSON, CSV).
    The Impala front-end has its own direct ORC dependency, for which
    versioning is driven by the front-end's Iceberg dependency, as Iceberg
    needs quite recent versions of the file formats libraries, including
    ORC.
    
    Since the front-end's Ranger plugin requires only basic functionality
    from ORC, which is expected to be compatible across versions,
    the potential version conflict between the two dependencies is resolved
    by excluding Ranger's transitive ORC dependency from the Impala build.
    
    Tested by building the front-end locally, then passing a core-mode test
    run on Jenkins.
    
    Change-Id: I368489016795020d590ab6d12d656327d7911eb7
    Reviewed-on: http://gerrit.cloudera.org:8080/20081
    Reviewed-by: Joe McDonnell <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 fe/pom.xml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/fe/pom.xml b/fe/pom.xml
index 6cea36f97..549abf499 100644
--- a/fe/pom.xml
+++ b/fe/pom.xml
@@ -199,6 +199,14 @@ under the License.
           <groupId>org.apache.shiro</groupId>
           <artifactId>shiro-core</artifactId>
         </exclusion>
+        <!-- RANGER-1837 causes Ranger to pull in ORC dependencies.
+        We have a much tighter coupling with the ORC version required by the 
Iceberg
+        dependency (which is likely to conflict), so the indirect dependency
+        through Ranger is excluded here. -->
+        <exclusion>
+          <groupId>org.apache.orc</groupId>
+          <artifactId>*</artifactId>
+        </exclusion>
         <!--
         We do not explicitly exclude all artifacts in org.eclipse.jetty because
         jetty-client is needed.

Reply via email to