You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Abhishek Kumar (Jira)" <ji...@apache.org> on 2021/10/30 02:13:00 UTC

[jira] [Commented] (RANGER-3243) Build fails on JDK 8 and 11

    [ https://issues.apache.org/jira/browse/RANGER-3243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17436227#comment-17436227 ] 

Abhishek Kumar commented on RANGER-3243:
----------------------------------------

Hi [~mgrigorov],
Could you please close the review: [https://reviews.apache.org/r/73281/]
Thanks!

> Build fails on JDK 8 and 11
> ---------------------------
>
>                 Key: RANGER-3243
>                 URL: https://issues.apache.org/jira/browse/RANGER-3243
>             Project: Ranger
>          Issue Type: Task
>          Components: build-infra
>    Affects Versions: 3.0.0, 2.2.0
>            Reporter: Martin Tzvetanov Grigorov
>            Priority: Major
>             Fix For: 3.0.0, 2.2.0
>
>         Attachments: 0001-RANGER-3243-Build-fails-on-JDK-8-and-11.patch
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> The build of current master branch fails - [https://travis-ci.com/github/apache/ranger/builds/223139469]
> There are several issues:
> [Issue 1|https://reviews.apache.org/r/73281/bugs/1/]) org.apache.ranger.authorization.presto.authorizer.RangerSystemAccessControlFactory was not able to import com.google.common.base.Throwables.throwIfUnchecked because it was coming from an old copy of Guava's Throwables shaded in hive-exec.
>     By replacing hive-exec with orc-core in agents-audit module all depending modules use their preferred version of Guava (26.0-jre)
> [Issue 2|https://reviews.apache.org/r/73281/bugs/2/]) RangerSafenetKeySecure.java uses directly sun.security.pkcs11.SunPKCS11 - a class that is not available in Java 9+ and this breaks the compilation.
> This should use reflection to load SunPKCS11 class dynamically.
> [Issue 3|https://reviews.apache.org/r/73281/bugs/3/]) JAXB is no more part of JDK 11+
> [Issue 4|https://reviews.apache.org/r/73281/bugs/4/]) JUnit 4 Assert.assertThat() is deprecated in favour of Hamcrest's MatcherAssert.assertThat(). This fixes a compilation issue with JDK11.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)