ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Tzvetanov Grigorov (Jira)" <j...@apache.org>
Subject [jira] [Commented] (RANGER-3243) Build fails on JDK 8 and 11
Date Mon, 31 May 2021 08:30:00 GMT

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

Martin Tzvetanov Grigorov commented on RANGER-3243:
---------------------------------------------------

JDK: build 11.0.11+9-Ubuntu-0ubuntu2.20.04

 
{code:java}
[INFO] Apache Ranger Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:18 min
[INFO] Finished at: 2021-05-31T09:26:59+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile
(default-compile) on project ranger-kms: Compilation failure
[ERROR] /home/ubuntu/git/apache/ranger/kms/src/main/java/org/apache/hadoop/crypto/key/RangerSafenetKeySecure.java:[72,49]
error: incompatible types: String cannot be converted to Config
[ERROR] 
[ERROR] -> [Help 1]
 {code}
This is fixed with https://github.com/apache/ranger/pull/96/files#diff-bc06b20fcb395424f2541febad5ba131085d2959eb99335da036f390188dd5eeR72

> 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
>            Reporter: Martin Tzvetanov Grigorov
>            Priority: Major
>          Time Spent: 20m
>  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)

Mime
View raw message