[
https://issues.apache.org/jira/browse/RANGER-3908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17603526#comment-17603526
]
Vikas Kumar commented on RANGER-3908:
-------------------------------------
Thanks [~ramackri] for your response.
I tried the above suggestion, but now it's failing with following reason:
[*ERROR*] Failed to execute goal
com.github.eirslett:frontend-maven-plugin:1.6:npm *(npm install for packaging)*
on project security-admin-web: *Failed to run task*: 'npm install' failed.
java.io.IOException: Cannot run program
"/Users/vikas/apacheranger/ranger/security-admin/target/node/node" (in
directory "/Users/vikas/apacheranger/ranger/security-admin/target/jsmain"):
error=2, No such file or directory -> [Help 1]
And suggested configuration is a code change, shouldn't we consider this as bug
and provide a fix ?
I have found one similar Jira in NIFI project, just for reference,
https://issues.apache.org/jira/browse/NIFI-4327
> Ranger "Security Admin Web Application" module build is failing on Apple M1
> Chip machine
> ----------------------------------------------------------------------------------------
>
> Key: RANGER-3908
> URL: https://issues.apache.org/jira/browse/RANGER-3908
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 2.3.0
> Environment: Apple M1 (Chip) Pro MacOS
> Reporter: Vikas Kumar
> Priority: Major
>
> While building latest ({*}master{*} branch) Ranger, I started getting
> following build error :
> Failed to execute goal
> com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm *(install
> node and npm)* on project security-admin-web: *Could not download Node.js:
> Got error code 404 from the server.*
> Module Failed: *Security Admin Web Application*
> Command executed: mvn -DskipTests=true clean compile package install
> assembly:assembly
> *Self Analysis:* Further I found security-admin module was trying to download
> node plugin that actually doesn't exists.
> Following is the trace from build log.
> *INFO*] *---* frontend-maven-plugin:1.6:install-node-and-npm *(install node
> and npm)* @ security-admin-web *---*
> [*INFO*] Installing node version v8.12.0
> [*INFO*] Downloading
> *https://nodejs.org/dist/v8.12.0/node-v8.12.0-darwin-arm64.tar.gz* to
> /Users/vikaskr/.m2/repository/com/github/eirslett/node/8.12.0/node-8.12.0-darwin-arm64.tar.gz
> [*INFO*] No proxies configured
> [*INFO*] No proxy was configured, downloading directly
>
> *Possible RCA:* It could be due to my machine configuration which is *"Apple
> M1 (Chip) Pro".* Maven is trying to download the ARM64 based artifact but
> NodeJS v16.0.0 onwards has such artifacts ([https://nodejs.org/dist/v16.0.0/)]
> After updating the version in pom.xml, it worked.
> <nodeVersion>v16.9.1</nodeVersion>. // existing version is v8.12.0
> <npmVersion>7.24.2</npmVersion>. // existing version is 6.4.1
>
> Either nodeJS and npm versions should be updated or it should be made
> configurable to pass the version through mvn command line.
> Please suggest if any work around (or such configurations ) already exists.
>
> h1.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)