Ambari编译安装问题总结

1.

[INFO] --- exec-maven-plugin:1.6.0:exec (Bower install) @ ambari-admin ---
bower restangular#1.4.0CERT_NOT_YET_VALID Request to https://registry.bower.io/packages/restangular failed: certificate is not yet valid
[ERROR] Command execution failed.
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (Bower install) on project ambari-admin: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]

解决:必须保证系统时间是正确的,在证书的范围内。

1.2

  [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (azuredb-gen) on project ambari-server: Command execution failed. Cannot run program "/ambaripkg/2.6.1/ambari-server/src/main/sh/azuredb_create_generator.sh" (in directory   "/ambaripkg/2.6.1/ambari-server"): error=13, 权限不够 -> [Help 1]

    解决:所有文件目录赋权限777

2

2

 3  

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (psutils-compile) on project ambari-metrics-host-monitoring: An Ant BuildException has occured: exec returned: 1

[ERROR] around Ant part ...<exec failonerror="true" dir="/ambaripkg/apache-ambari-2.5.0-src/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/psutil" executable="/ambaripkg/apache-ambari-2.5.0-src/ambari-metrics/ambari-metrics-host-monitoring/../../ambari-common/src/main/unix/ambari-python-wrap">... @ 4:285 in /ambaripkg/apache-ambari-2.5.0-src/ambari-metrics/ambari-metrics-host-monitoring/target/antrun/build-psutils-compile.xml

解决:yum install python-devel.x86_64

4. 提示ImportError: No module named setuptools

 解决:yum install python-setuptools  (yum install setuptool是不行的的)

5.Failed to execute goal org.codehaus.mojo:xml-maven-plugin:1.0:transform (default) on project ambari-server: Failed to transform input file /ambaripkg/apache-ambari-2.5.0-src/ambari-server/target/findbugs/findbugsXml.html: The entity name must immediately follow the '&' in the entity reference. -> [Help 1]

网络问题,如果网络情况不好,这一步就很难过去。那只好修改pom.xml文件,将findbugs内容注释掉:/apache-ambari-2.5.0-src/ambari-server/pom.xml

6、Too many files with unapproved license
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project ambari: Too many files with unapproved license: 780 See RAT report in: /home/kylin/apache-ambari-2.4.2-src/target/rat.txt -> [Help 1]
解决办法:加上-Drat.skip=true

解决:

6.   /ambari-metrics/ambari-metrics-host-monitoring/src/main/python/psutil" executable="/ambaripkg/apache-ambari-2.6.1.0-w/ambari-metrics/ambari-metrics-host-monitoring/../../ambari-common/src/main/unix/ambari-python-wrap">... @ 4:287

解决: 手动查了xml文件,并执行一下。

7.Failed to execute goal org.codehaus.mojo:xml-maven-plugin:1.0:transform (default) on project ambari-server: Failed to transform input file /ambaripkg/apache-ambari-2.6.1.0/ambari-server/target/findbugs/findbugsXml.html: The entity name must immediately

解决:修改pom文件中检查:vim ambari-server/pom.xml

mvn -B install rpm:rpm -DnewVersion=2.6.1.0.0 -DskipTests -Drat.skip=true -Dpython.ver="python >= 2.6"

 

原文地址:https://www.cnblogs.com/wang--lei/p/8257238.html