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 07:56:00 GMT

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

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

[~pradeep] I am trying to build Ranger on Linux ARM64

OS: Ubuntu 20.04.2

JDK: 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)

Ranger: current master (3af3415f6fae4f655d46ffd80dd8c2ad1c8c1dec)

Maven command: mvn clean install -DskipJSTests

 

Today's build fails with:
{code:java}
 
[INFO] --- maven-assembly-plugin:2.6:single (default) @ ranger-examples-distro ---
[INFO] Reading assembly descriptor: src/main/assembly/sampleapp.xml
[INFO] Reading assembly descriptor: src/main/assembly/plugin-sampleapp.xml
[INFO] Reading assembly descriptor: src/main/assembly/sample-client.xml
[WARNING] The following patterns were never triggered in this artifact inclusion filter:
o  'org.apache.ranger:sampleapp'[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Ranger Examples - SampleApp 3.0.0-SNAPSHOT:
[INFO] 
[INFO] Ranger Examples - SampleApp ........................ SUCCESS [  4.472 s]
[INFO] Ranger Examples - Ranger Plugin for SampleApp ...... SUCCESS [  4.626 s]
[INFO] sample-client ...................................... SUCCESS [  2.798 s]
[INFO] Apache Ranger Examples Distribution ................ FAILURE [  1.291 s]
[INFO] Ranger Tools ....................................... SKIPPED
[INFO] Atlas Security Plugin .............................. SKIPPED
[INFO] SchemaRegistry Security Plugin ..................... SKIPPED
[INFO] Sqoop Security Plugin .............................. SKIPPED
[INFO] Sqoop Security Plugin Shim ......................... SKIPPED
[INFO] Kylin Security Plugin .............................. SKIPPED
[INFO] Kylin Security Plugin Shim ......................... SKIPPED
[INFO] Presto Security Plugin ............................. SKIPPED
[INFO] Presto Security Plugin Shim ........................ SKIPPED
[INFO] Elasticsearch Security Plugin Shim ................. SKIPPED
[INFO] Elasticsearch Security Plugin ...................... SKIPPED
[INFO] Apache Ranger Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.817 s
[INFO] Finished at: 2021-05-31T08:51:11+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single (default)
on project ranger-examples-distro: Failed to create assembly: Error creating assembly archive
sampleapp: You must set at least one file. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
 {code}
I will try to solve this problem and finish the build.

After that I will paste the Maven output for JDK 11!

> 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