[
https://issues.apache.org/jira/browse/RANGER-3755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17544298#comment-17544298
]
William Lam commented on RANGER-3755:
-------------------------------------
[~aakashnand] I got the error on both commands.
{code:java}
mvn clean install -P 'ranger-trino-plugin,!ranger-jdk11' -am
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for ranger 2.3.0:
[INFO]
[INFO] ranger ............................................. SUCCESS [04:10 min]
[INFO] Credential Support ................................. SUCCESS [04:04 min]
[INFO] Audit Component .................................... SUCCESS [03:02 min]
[INFO] ranger-plugin-classloader .......................... SUCCESS [ 7.192 s]
[INFO] Common library for Plugins ......................... SUCCESS [01:19 min]
[INFO] Installer Support Component ........................ SUCCESS [ 9.479 s]
[INFO] Credential Builder ................................. SUCCESS [ 13.361 s]
[INFO] Ranger Util ........................................ SUCCESS [ 6.098 s]
[INFO] Trino Security Plugin .............................. SUCCESS [ 44.140 s]
[INFO] Trino Security Plugin Shim ......................... SUCCESS [01:13 min]
[INFO] Elasticsearch Security Plugin Shim ................. SUCCESS [ 8.335 s]
[INFO] Apache Ranger Distribution ......................... FAILURE [ 9.465 s]
[INFO] Jdbc SQL Connector ................................. SKIPPED
[INFO] ranger-intg ........................................ SKIPPED
[INFO] Embedded Web Server Invoker ........................ SKIPPED
[INFO] Key Management Service ............................. SKIPPED
[INFO] HBase Security Plugin Shim ......................... SKIPPED
[INFO] HBase Security Plugin .............................. SKIPPED
[INFO] Hdfs Security Plugin ............................... SKIPPED
[INFO] Hive Security Plugin ............................... SKIPPED
[INFO] Knox Security Plugin Shim .......................... SKIPPED
[INFO] Knox Security Plugin ............................... SKIPPED
[INFO] Storm Security Plugin .............................. SKIPPED
[INFO] YARN Security Plugin ............................... SKIPPED
[INFO] Ozone Security Plugin .............................. SKIPPED
[INFO] Unix Authentication Client ......................... SKIPPED
[INFO] User Group Synchronizer Util ....................... SKIPPED
[INFO] Security Admin Web Application ..................... SKIPPED
[INFO] KAFKA Security Plugin .............................. SKIPPED
[INFO] SOLR Security Plugin ............................... SKIPPED
[INFO] NiFi Security Plugin ............................... SKIPPED
[INFO] NiFi Registry Security Plugin ...................... SKIPPED
[INFO] Kudu Security Plugin ............................... SKIPPED
[INFO] Unix User Group Synchronizer ....................... SKIPPED
[INFO] Ldap Config Check Tool ............................. SKIPPED
[INFO] Unix Authentication Service ........................ SKIPPED
[INFO] Unix Native Authenticator .......................... SKIPPED
[INFO] KMS Security Plugin ................................ SKIPPED
[INFO] Tag Synchronizer ................................... SKIPPED
[INFO] Hdfs Security Plugin Shim .......................... SKIPPED
[INFO] Hive Security Plugin Shim .......................... SKIPPED
[INFO] YARN Security Plugin Shim .......................... SKIPPED
[INFO] OZONE Security Plugin Shim ......................... SKIPPED
[INFO] Storm Security Plugin shim ......................... SKIPPED
[INFO] KAFKA Security Plugin Shim ......................... SKIPPED
[INFO] SOLR Security Plugin Shim .......................... SKIPPED
[INFO] Atlas Security Plugin Shim ......................... SKIPPED
[INFO] KMS Security Plugin Shim ........................... SKIPPED
[INFO] ranger-examples .................................... SKIPPED
[INFO] Ranger Examples - Conditions and ContextEnrichers .. SKIPPED
[INFO] Ranger Examples - SampleApp ........................ SKIPPED
[INFO] Ranger Examples - Ranger Plugin for SampleApp ...... SKIPPED
[INFO] sample-client ...................................... SKIPPED
[INFO] Apache Ranger Examples Distribution ................ SKIPPED
[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 ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:46 min
[INFO] Finished at: 2022-05-31T08:19:58Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.6:single (default) on project
ranger-distro: Failed to create assembly: Artifact:
org.apache.ranger:ranger-hdfs-plugin-shim:jar:2.3.0 (included by module) does
not have an artifact with a file. Please ensure the package phase is run before
the assembly is generated. -> [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.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :ranger-distro{code}
{code:java}
mvn clean compile package assembly:assembly -P ranger-trino-plugin
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for ranger 2.3.0: [INFO]
[INFO] ranger ............................................. FAILURE [02:26 min]
[INFO] Jdbc SQL Connector ................................. SUCCESS [ 5.996 s]
[INFO] Credential Support ................................. SUCCESS [ 6.920 s]
[INFO] Audit Component .................................... SUCCESS [ 6.377 s]
[INFO] ranger-plugin-classloader .......................... SUCCESS [ 2.487 s]
[INFO] Common library for Plugins ......................... SUCCESS [ 24.152 s]
[INFO] ranger-intg ........................................ SUCCESS [ 15.388 s]
[INFO] Installer Support Component ........................ SUCCESS [ 1.085 s]
[INFO] Credential Builder ................................. SUCCESS [ 6.002 s]
[INFO] Embedded Web Server Invoker ........................ SUCCESS [ 20.528 s]
[INFO] Key Management Service ............................. SUCCESS [12:27 min]
[INFO] HBase Security Plugin Shim ......................... SUCCESS [05:36 min]
[INFO] HBase Security Plugin .............................. SUCCESS [02:18 min]
[INFO] Hdfs Security Plugin ............................... SUCCESS [02:02 min]
[INFO] Hive Security Plugin ............................... SUCCESS [09:33 min]
[INFO] Knox Security Plugin Shim .......................... SUCCESS [01:30 min]
[INFO] Knox Security Plugin ............................... SUCCESS [10:26 min]
[INFO] Storm Security Plugin .............................. SUCCESS [ 36.373 s]
[INFO] YARN Security Plugin ............................... SUCCESS [ 3.321 s]
[INFO] Ozone Security Plugin .............................. SUCCESS [01:25 min]
[INFO] Ranger Util ........................................ SUCCESS [ 2.492 s]
[INFO] Unix Authentication Client ......................... SUCCESS [ 5.505 s]
[INFO] User Group Synchronizer Util ....................... SUCCESS [ 18.084 s]
[INFO] Security Admin Web Application ..................... SUCCESS [05:55 min]
[INFO] KAFKA Security Plugin .............................. SUCCESS [02:49 min]
[INFO] SOLR Security Plugin ............................... SUCCESS [02:14 min]
[INFO] NiFi Security Plugin ............................... SUCCESS [ 7.537 s]
[INFO] NiFi Registry Security Plugin ...................... SUCCESS [ 7.223 s]
[INFO] Presto Security Plugin ............................. SUCCESS [ 18.815 s]
[INFO] Trino Security Plugin .............................. SUCCESS [ 7.595 s]
[INFO] Kudu Security Plugin ............................... SUCCESS [ 2.377 s]
[INFO] Unix User Group Synchronizer ....................... SUCCESS [02:08 min]
[INFO] Ldap Config Check Tool ............................. SUCCESS [ 1.491 s]
[INFO] Unix Authentication Service ........................ SUCCESS [ 2.926 s]
[INFO] KMS Security Plugin ................................ SUCCESS [ 14.675 s]
[INFO] Tag Synchronizer ................................... SUCCESS [ 56.842 s]
[INFO] Hdfs Security Plugin Shim .......................... SUCCESS [ 2.817 s]
[INFO] Hive Security Plugin Shim .......................... SUCCESS [ 20.849 s]
[INFO] YARN Security Plugin Shim .......................... SUCCESS [ 2.926 s]
[INFO] OZONE Security Plugin Shim ......................... SUCCESS [ 2.975 s]
[INFO] Storm Security Plugin shim ......................... SUCCESS [ 3.526 s]
[INFO] KAFKA Security Plugin Shim ......................... SUCCESS [ 2.715 s]
[INFO] SOLR Security Plugin Shim .......................... SUCCESS [ 3.069 s]
[INFO] Atlas Security Plugin Shim ......................... SUCCESS [ 18.286 s]
[INFO] KMS Security Plugin Shim ........................... SUCCESS [ 3.465 s]
[INFO] Presto Security Plugin Shim ........................ SUCCESS [ 2.874 s]
[INFO] Trino Security Plugin Shim ......................... SUCCESS [ 2.829 s]
[INFO] ranger-examples .................................... SUCCESS [ 0.059 s]
[INFO] Ranger Examples - Conditions and ContextEnrichers .. SUCCESS [ 6.410 s]
[INFO] Ranger Examples - SampleApp ........................ SUCCESS [ 0.992 s]
[INFO] Ranger Examples - Ranger Plugin for SampleApp ...... SUCCESS [ 2.718 s]
[INFO] sample-client ...................................... SUCCESS [ 2.945 s]
[INFO] Apache Ranger Examples Distribution ................ SUCCESS [ 2.119 s]
[INFO] Ranger Tools ....................................... SUCCESS [ 22.023 s]
[INFO] Atlas Security Plugin .............................. SUCCESS [ 3.370 s]
[INFO] SchemaRegistry Security Plugin ..................... SUCCESS [07:09 min]
[INFO] Sqoop Security Plugin .............................. SUCCESS [ 21.905 s]
[INFO] Sqoop Security Plugin Shim ......................... SUCCESS [ 2.641 s]
[INFO] Kylin Security Plugin .............................. SUCCESS [03:51 min]
[INFO] Kylin Security Plugin Shim ......................... SUCCESS [ 6.041 s]
[INFO] Elasticsearch Security Plugin Shim ................. SUCCESS [ 1.716 s]
[INFO] Elasticsearch Security Plugin ...................... SUCCESS [ 3.015 s]
[INFO] Apache Ranger Distribution ......................... SUCCESS [01:11 min]
[INFO] Unix Native Authenticator .......................... SUCCESS [ 0.983 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:20 h [INFO] Finished at: 2022-05-31T10:09:21Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.6:single (default) on project
ranger-distro: Failed to create assembly: Error creating assembly archive
admin: Problem creating TAR: entry
'ranger-2.3.0-admin/ews/webapp/WEB-INF/lib/libfb303-0.9.3.jar' closed at '0'
before the '313702' bytes specified in the header were written -> [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.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles: [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <args> -rf :ranger-distro
{code}
> Build Plugin-Trino artifacts only with JDK 11
> ---------------------------------------------
>
> Key: RANGER-3755
> URL: https://issues.apache.org/jira/browse/RANGER-3755
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 3.0.0, 2.2.0
> Reporter: Ramesh Mani
> Assignee: Ramesh Mani
> Priority: Major
> Fix For: 3.0.0, 2.3.0
>
>
> Plugin Trino needs jdk 11 and about to compile and build. In order to avoid
> build issue in Apache Ranger when including Plugin Trino, we need to enable a
> profile so that default build of Apache Ranger will use JDK 1.8 and Plugin
> Trino and its artifacts can be build with JDK 11 profile.
> To build Plugin Trino artifacts following command can be executed.
> mvn clean compile package -P ranger-trino-plugin
--
This message was sent by Atlassian Jira
(v8.20.7#820007)