You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Kengo Seki (Jira)" <ji...@apache.org> on 2023/02/15 00:58:00 UTC

[jira] [Commented] (BIGTOP-3902) Error building Ranger rpm using bigtop

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

Kengo Seki commented on BIGTOP-3902:
------------------------------------

Hmm, I tried the following steps with a clean CentOS 7 machine but wasn't able to reproduce the issue.
{code:java}
$ sudo yum install -y curl git java-1.8.0-openjdk-devel unzip wget
$ git clone https://github.com/apache/bigtop.git
$ cd bigtop
$ sudo bigtop_toolchain/bin/puppetize.sh 
$ ./gradlew toolchain
(logout and relogin)
$ mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/maven
Java version: 1.8.0_362, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-1160.76.1.el7.x86_64", arch: "amd64", family: "unix"
$ ./gradlew allclean ranger-pkg

...

(after retrying a few times due to dependency download failures)

BUILD SUCCESSFUL in 21m 45s
53 actionable tasks: 53 executed
{code}
I'm not sure why org.apache.kylin:kylin-core-common:jar:3.1.3 requires org.apache.kafka:kafka_2.11:jar:2.8.1 in your environment, because it depends on org.apache.kafka:kafka_2.11:2.1.1.
[https://mvnrepository.com/artifact/org.apache.kylin/kylin-core-common/3.1.3]
Maven's dependency resolution strategy may be differ from mine. What version of maven do you use?

> Error building Ranger rpm using bigtop
> --------------------------------------
>
>                 Key: BIGTOP-3902
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-3902
>             Project: Bigtop
>          Issue Type: Bug
>         Environment: ./gradlew ranger-version
> > Task :ranger-version
> Base: 2.3.0
>  
>            Reporter: Vivek Raghuwanshi
>            Priority: Blocker
>
> I am trying to build Ranger rpm for Centos, but every time it's stuck at an authentication error.
>  
>  
> [INFO] Sqoop Security Plugin Shim ......................... SUCCESS [  4.543 s]
> [INFO] Kylin Security Plugin .............................. FAILURE [  0.760 s]
> [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:  12:42 min
> [INFO] Finished at: 2023-01-17T17:42:16Z
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project ranger-kylin-plugin: Could not resolve dependencies for project org.apache.ranger:ranger-kylin-plugin:jar:2.3.0: Failed to collect dependencies at org.apache.kylin:kylin-server-base:jar:3.1.3 -> org.apache.kylin:kylin-query:jar:3.1.3 -> org.apache.kylin:kylin-core-storage:jar:3.1.3 -> org.apache.kylin:kylin-core-cube:jar:3.1.3 -> org.apache.kylin:kylin-core-metadata:jar:3.1.3 -> org.apache.kylin:kylin-core-common:jar:3.1.3 -> org.apache.kafka:kafka_2.11:jar:2.8.1: Failed to read artifact descriptor for org.apache.kafka:kafka_2.11:jar:2.8.1: Could not transfer artifact org.apache.kafka:kafka_2.11:pom:2.8.1 from/to spring-snapshots (https://repo.spring.io/libs-snapshot): authentication failed for https://repo.spring.io/libs-snapshot/org/apache/kafka/kafka_2.11/2.8.1/kafka_2.11-2.8.1.pom, status: 401 Unauthorized -> [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/DependencyResolutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <args> -rf :ranger-kylin-plugin
> error: Bad exit status from /var/tmp/rpm-tmp.XdGICe (%build)
>     Bad exit status from /var/tmp/rpm-tmp.XdGICe (%build)
> RPM build errors:
> > Task :ranger-rpm FAILED
> FAILURE: Build failed with an exception.
> * Where:
> Script '/data/builds/bigtop/packages.gradle' line: 529
> * What went wrong:
> Execution failed for task ':ranger-rpm'.
> > Process 'command 'rpmbuild'' finished with non-zero exit value 1
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
> * Get more help at https://help.gradle.org
> BUILD FAILED in 12m 51s
> 5 actionable tasks: 5 executed
>  
> ********
> I tried to access "https://repo.spring.io/libs-snapshot/org/apache/kafka/kafka_2.11/2.8.1/kafka_2.11-2.8.1.pom"
> its not accessable
>  
> But able to access [https://repo.spring.io/ui/native/libs-snapshot/org/apache/kafka_2.9.2/]
>  
> Looks like it may be url not correct in config file
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)