ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Cheng (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-19853) BUILD FAILURE at Ambari Server
Date Thu, 02 Feb 2017 16:50:51 GMT
Simon Cheng created AMBARI-19853:
------------------------------------

             Summary: BUILD FAILURE at Ambari Server
                 Key: AMBARI-19853
                 URL: https://issues.apache.org/jira/browse/AMBARI-19853
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.4.2
         Environment: $ cat /etc/redhat-release

Red Hat Enterprise Linux Server release 7.3 (Maipo)


$ mvn -version

Picked up _JAVA_OPTIONS: -Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51:28-0500)
Maven home: /home/ec2-user/maven/apache-maven-3.0.5
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.7.0_71/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-514.el7.x86_64", arch: "amd64", family: "unix"

$ python -V

Python 2.7.5

$ node -v

v0.10.46

$ npm -v

2.15.1

$ brunch -V

1.7.20


$ sudo yum install -y git

$ sudo yum groupinstall "Development Tools"

$ sudo ./setuptools-0.6c11-py2.7.egg

$ sudo yum install python-devel.x86_64






            Reporter: Simon Cheng
            Priority: Critical


$ mkdir ambari

$ cd ambari

$ curl -OL http://www.apache.org/dist/ambari/ambari-2.4.2/apache-ambari-2.4.2-src.tar.gz

$ tar xfvz apache-ambari-2.4.2-src.tar.gz

$ cd apache-ambari-2.4.2-src

$ mvn versions:set -DnewVersion=2.4.2.0.0

// BUILD SUCCESS, only Ambari Main


$ mvn -B -e clean install package rpm:rpm -Dbuild-rpm versions:set -DnewVersion=2.4.2.0.0
-Dpython.ver='python > 2.6' -DskipTests -Drat.skip

[ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.4:rpm (default-cli)
on project ambari-server: RPM build execution returned: '1' executing '/bin/sh -c cd '/home/ec2-user/ambari/apache-ambari-2.4.2-src/ambari-server/target/rpm/ambari-server/SPECS'
&& 'rpmbuild' '-bb' '--target' 'x86_64-redhat-linux' '--buildroot' '/home/ec2-user/ambari/apache-ambari-2.4.2-src/ambari-server/target/rpm/ambari-server/buildroot'
'--define' '_topdir /home/ec2-user/ambari/apache-ambari-2.4.2-src/ambari-server/target/rpm/ambari-server'
'--define' '_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' '--define'
'_builddir %{_topdir}/BUILD' '--define' '_rpmdir %{_topdir}/RPMS' '--define' '_sourcedir %{_topdir}/SOURCES'
'--define' '_specdir %{_topdir}/SPECS' '--define' '_srcrpmdir %{_topdir}/SRPMS' 'ambari-server.spec''
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.4:rpm
(default-cli) on project ambari-server: RPM build execution returned: '1' executing '/bin/sh
-c cd '/home/ec2-user/ambari/apache-ambari-2.4.2-src/ambari-server/target/rpm/ambari-server/SPECS'
&& 'rpmbuild' '-bb' '--target' 'x86_64-redhat-linux' '--buildroot' '/home/ec2-user/ambari/apache-ambari-2.4.2-src/ambari-server/target/rpm/ambari-server/buildroot'
'--define' '_topdir /home/ec2-user/ambari/apache-ambari-2.4.2-src/ambari-server/target/rpm/ambari-server'
'--define' '_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' '--define'
'_builddir %{_topdir}/BUILD' '--define' '_rpmdir %{_topdir}/RPMS' '--define' '_sourcedir %{_topdir}/SOURCES'
'--define' '_specdir %{_topdir}/SPECS' '--define' '_srcrpmdir %{_topdir}/SRPMS' 'ambari-server.spec''
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: RPM build execution returned: '1'
executing '/bin/sh -c cd '/home/ec2-user/ambari/apache-ambari-2.4.2-src/ambari-server/target/rpm/ambari-server/SPECS'
&& 'rpmbuild' '-bb' '--target' 'x86_64-redhat-linux' '--buildroot' '/home/ec2-user/ambari/apache-ambari-2.4.2-src/ambari-server/target/rpm/ambari-server/buildroot'
'--define' '_topdir /home/ec2-user/ambari/apache-ambari-2.4.2-src/ambari-server/target/rpm/ambari-server'
'--define' '_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' '--define'
'_builddir %{_topdir}/BUILD' '--define' '_rpmdir %{_topdir}/RPMS' '--define' '_sourcedir %{_topdir}/SOURCES'
'--define' '_specdir %{_topdir}/SPECS' '--define' '_srcrpmdir %{_topdir}/SRPMS' 'ambari-server.spec''
	at org.codehaus.mojo.rpm.RPMHelper.buildPackage(RPMHelper.java:169)
	at org.codehaus.mojo.rpm.AbstractRPMMojo.execute(AbstractRPMMojo.java:706)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
[ERROR] 
[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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ambari-server




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message