Support Questions
Find answers, ask questions, and share your expertise

Ambari 2.7.5 installation fail

New Contributor

按照官方链接步骤执行到这一步:mvn -B clean install rpm:rpm -DnewVersion= -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] 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] For more information about the errors and possible solutions, please rea                                                                             d the following articles:

[ERROR] [Help 1]                                                                             eption


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

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








"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= -DskipTests -Dpython.ver="python >= 2.6" -Drat.skip=true -X -rf :ambari-admin"



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:

; ;