Support Questions

Find answers, ask questions, and share your expertise

Ambari 2.7.5 installation fail

avatar
New Contributor

按照官方链接步骤执行到这一步:mvn -B clean install rpm:rpm -DnewVersion=2.7.5.0.0 -DbuildNumber=5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.ver="python >= 2.6"

报错:

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:npm                                                                              (npm install) on project ambari-admin: Failed to run task: 'npm install --unsaf                                                                             e-perm' failed. (error code 1) -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit                                                                             ch.

[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 rea                                                                             d the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc                                                                             eption

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <args> -rf :ambari-admin

图片1.png

 

希望有人能帮忙看一下,不胜感激,谢谢!

官网步骤:https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.5

1 REPLY 1

avatar
Moderator

您好,请看一看下面的解决办法[1]:

"12. Error

If npm is executed under the root account, it will change the uid to the current account, or the value of the uid is obtained from the user configuration file, and the default value of uid is nobody. So when you run npm install under the root account, you need to change unsafe-perm Option plus.

Solve (and then re-edit):

# find ~/.m2/repository/ -name "*.lastUpdated" -exec rm -rf {} \;

# mvn -B clean install rpm:rpm -DnewVersion=2.7.3.0.0 -DskipTests -Dpython.ver="python >= 2.6" -Drat.skip=true -X -rf :ambari-admin"

 

[1] https://www.programmersought.com/article/72684156755/


Ferenc Erdelyi, Technical Solutions Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community: