Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 46777200B6B for ; Thu, 11 Aug 2016 03:04:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 44F94160AB1; Thu, 11 Aug 2016 01:04:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F33B5160AA4 for ; Thu, 11 Aug 2016 03:04:11 +0200 (CEST) Received: (qmail 61031 invoked by uid 500); 11 Aug 2016 01:04:11 -0000 Mailing-List: contact user-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ambari.apache.org Delivered-To: mailing list user@ambari.apache.org Received: (qmail 61022 invoked by uid 99); 11 Aug 2016 01:04:11 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2016 01:04:11 +0000 Received: from [192.168.1.106] (unknown [120.62.195.160]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 265771A01BB for ; Thu, 11 Aug 2016 01:03:56 +0000 (UTC) User-Agent: Microsoft-MacOutlook/f.18.0.160709 Date: Wed, 10 Aug 2016 18:03:38 -0700 Subject: Re: Build Error From: Don Bosco Durai To: Message-ID: <3CE8B717-5DFB-4CBD-9988-2A8AD7125C57@apache.org> Thread-Topic: Build Error References: <2C456553-16C4-40D8-B286-139E834DAD4E@apache.org> <8D8E5332-DD65-435D-88A9-9C59025B1578@apache.org> <1EF43B32-1114-4A0E-A289-11150F3FDF07@esgyn.com> <35CCC29A-8871-443B-810A-1983D7B1BC76@apache.org> In-Reply-To: Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3553697036_434180299" archived-at: Thu, 11 Aug 2016 01:04:14 -0000 > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3553697036_434180299 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable Amanda, thanks for trying out. I got similar error when I was using an olde= r AMI on AWS. After moving to the latest, it was solved.=20 =20 Seems this is more of a Docker host issue than the script. So it might not = be worth debugging this.=20 =20 We can revisit this again if anyone else is interested. =20 Thanks =20 Bosco =20 =20 =20 =20 From: Amanda Moran Reply-To: Date: Monday, August 8, 2016 at 10:56 AM To: Subject: Re: Build Error =20 Hi there Bosco- I tried this out on Centos 6.7. I did this to install docker: Edit /etc/yum.repos.d/docker-main.repo : [docker-main-repo] name=3DDocker main Repository baseurl=3Dhttps://yum.dockerproject.org/repo/main/centos/$releasever enabled=3D1 gpgcheck=3D1 gpgkey=3Dhttps://yum.dockerproject.org/gpg Install docker: yum install docker-engine Start docker daemon: service docker start =20 I then followed your steps exactly.=20 =20 I got this error: Step 8 : ADD https://www.apache.org/dist/maven/maven-3/3.3.9/binaries/apach= e-maven-3.3.9-bin.tar.gz.md5 /tools Downloading [=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] 32 B/= 32 B stat /var/lib/docker/devicemapper/mnt/2ffd5d75bab0324b15b8410254a9677673489= a01d5204f1db8b75ccab0c4206c/rootfs/tools/tmp: not a directory + docker run --rm -it -v /home/centos/ambari:/ambari -w /ambari -v /home/ce= ntos/.m2:/home/build/.m2 --user build ambari_dev mvn -B clean install packag= e -DskipTests '-Dpython.ver=3Dpython\>=3D2.6' -Preplaceurl Unable to find image 'ambari_dev:latest' locally Pulling repository ambari_dev Error: image library/ambari_dev:latest not found =20 =20 I just wanted to test this out for you since I was curious. Don't worry abo= ut debugging this for my use especially if centos 6.7 isn't supported. =20 Thanks!=20 =20 Amanda=20 =20 =20 On Sun, Aug 7, 2016 at 7:36 PM, Don Bosco Durai wrote: Thanks for trying it out. It seems there is a permission issue when the mvn= build from the Docker container is accessing your mounted file system.=20 =20 Can you try this? =20 Login as yourself (or build user) cd $HOME sudo rm -rf .m2/repository tar xfz cd =20 wget https://issues.apache.org/jira/secure/attachment/12822494/build_ambari= _using_docker.sh chmod a+x build_ambari_using_docker.sh ./build_ambari_using_docker.sh -build_image or sudo ./build_ambari_using_docker.sh -build_image =20 =20 Can someone who has Docker, please try it out and let me know it works for = you? I have tested the below steps in my Ubuntu host and a fresh AWS EC2 env= ironment and it worked.=20 1. If not docker is not installed, please install docker 2. sudo usermod -a -G docker $USER 3. Close terminal and open a new terminal 4. Make sure "id" has group "docker" in the list 5. cd $AMBARI_GIT_SRC_FOLDER or cd $HOME; git clone git://git.apache.org/am= bari.git; cd ambari 5. git checkout trunk 6. git pull 7. wget https://issues.apache.org/jira/secure/attachment/12822494/build_amb= ari_using_docker.sh 8. chmod a+x build_ambari_using_docker.sh 9. ./build_ambari_using_docker.sh=20 =20 Please let me know your host OS=E2=80=A6 =20 Thanks =20 Bosco =20 =20 =20 From: Ascot Moss Reply-To: Date: Sunday, August 7, 2016 at 6:35 AM To: Subject: Re: Build Error =20 and tried the following: (run as root) =20 docker rmi ambari_dev =20 /build_ambari_using_docker.sh =20 [INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 a= pproved: 1274 licence. [INFO]=20 [INFO] --- maven-assembly-plugin:2.2-beta-5:single (make-assembly) @ ambari= --- [INFO] Reading assembly descriptor: /ambari/ambari-project/src/main/assembl= ies/empty.xml [INFO]=20 [INFO] --- maven-install-plugin:2.4:install (default-install) @ ambari --- [INFO] Installing /ambari/pom.xml to /home/build/.m2/repository/org/apache/= ambari/ambari/2.2.2.0.0/ambari-2.2.2.0.0.pom [INFO] --------------------------------------------------------------------= ---- [INFO] Reactor Summary: [INFO]=20 [INFO] Ambari Main ........................................ FAILURE [ 1.72= 2 s] [INFO] Apache Ambari Project POM .......................... SKIPPED [INFO] Ambari Web ......................................... SKIPPED [INFO] Ambari Views ....................................... SKIPPED [INFO] Ambari Admin View .................................. SKIPPED [INFO] ambari-metrics ..................................... SKIPPED [INFO] Ambari Metrics Common .............................. SKIPPED [INFO] Ambari Metrics Hadoop Sink ......................... SKIPPED [INFO] Ambari Metrics Flume Sink .......................... SKIPPED [INFO] Ambari Metrics Kafka Sink .......................... SKIPPED [INFO] Ambari Metrics Storm Sink .......................... SKIPPED [INFO] Ambari Metrics Collector ........................... SKIPPED [INFO] Ambari Metrics Monitor ............................. SKIPPED [INFO] Ambari Metrics Grafana ............................. SKIPPED [INFO] Ambari Metrics Assembly ............................ SKIPPED [INFO] Ambari Server ...................................... SKIPPED [INFO] Ambari Agent ....................................... SKIPPED [INFO] Ambari Client ...................................... SKIPPED [INFO] Ambari Python Client ............................... SKIPPED [INFO] Ambari Groovy Client ............................... SKIPPED [INFO] Ambari Shell ....................................... SKIPPED [INFO] Ambari Python Shell ................................ SKIPPED [INFO] Ambari Groovy Shell ................................ SKIPPED [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 2.071 s [INFO] Finished at: 2016-08-07T13:33:26+00:00 [INFO] Final Memory: 28M/702M [INFO] --------------------------------------------------------------------= ---- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugi= n:2.4:install (default-install) on project ambari: Failed to install artifac= t org.apache.ambari:ambari:pom:2.2.2.0.0: /home/build/.m2/repository/org/apa= che/ambari/ambari/2.2.2.0.0/ambari-2.2.2.0.0.pom (Permission denied) -> [Hel= p 1] [ERROR]=20 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e= switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]=20 [ERROR] For more information about the errors and possible solutions, pleas= e read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecu= tionException as already run as root, not sure why still got=20 /home/build/.m2/repository/org/apache/ambari/ambari/2.2.2.0.0/ambari-2.2.2= .0.0.pom (Permission denied)=20 =20 =20 =20 =20 On Sun, Aug 7, 2016 at 9:22 PM, Ascot Moss wrote: HI, Tried again. =20 Added:=20 echo $MAVEN_HOME /opt/apache-maven-3.3.9 =20 =20 (command) mvn -B -e clean install package -DskipTests=3Dtrue =20 (log) npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: = fsevents@0.2.1 npm WARN Ambari@2.1.3 No license field. [INFO]=20 [INFO] --- exec-maven-plugin:1.2.1:exec (compile-brunch) @ ambari-web --- /usr/lib/node_modules/brunch/lib/watch.js:433 throw new Error("You probably need to execute `npm install` to = install brunch plugins. " + error); ^ =20 Error: You probably need to execute `npm install` to install brunch plugins= . SyntaxError: Setter must have exactly one formal parameter. at /usr/lib/node_modules/brunch/lib/watch.js:433:19 at Array.map (native) at loadDeps (/usr/lib/node_modules/brunch/lib/watch.js:418:10) at loadPackages (/usr/lib/node_modules/brunch/lib/watch.js:438:15) at /usr/lib/node_modules/brunch/lib/watch.js:458:19 at /usr/lib/node_modules/brunch/lib/helpers.js:529:16 at /usr/lib/node_modules/brunch/lib/helpers.js:485:14 at /usr/lib/node_modules/brunch/node_modules/read-components/index.js:263= :16 at /usr/lib/node_modules/brunch/node_modules/read-components/index.js:72:= 14 at FSReqWrap.cb [as oncomplete] (fs.js:257:19) =20 [INFO] --------------------------------------------------------------------= ---- [INFO] Reactor Summary: [INFO]=20 [INFO] Ambari Main ........................................ SUCCESS [ 2.57= 7 s] [INFO] Apache Ambari Project POM .......................... SUCCESS [ 0.03= 6 s] [INFO] Ambari Web ......................................... FAILURE [ 22.12= 4 s] [INFO] Ambari Views ....................................... SKIPPED [INFO] Ambari Admin View .................................. SKIPPED [INFO] ambari-metrics ..................................... SKIPPED [INFO] Ambari Metrics Common .............................. SKIPPED [INFO] Ambari Metrics Hadoop Sink ......................... SKIPPED [INFO] Ambari Metrics Flume Sink .......................... SKIPPED [INFO] Ambari Metrics Kafka Sink .......................... SKIPPED [INFO] Ambari Metrics Storm Sink .......................... SKIPPED [INFO] Ambari Metrics Collector ........................... SKIPPED [INFO] Ambari Metrics Monitor ............................. SKIPPED [INFO] Ambari Metrics Grafana ............................. SKIPPED [INFO] Ambari Metrics Assembly ............................ SKIPPED [INFO] Ambari Server ...................................... SKIPPED [INFO] Ambari Agent ....................................... SKIPPED [INFO] Ambari Client ...................................... SKIPPED [INFO] Ambari Python Client ............................... SKIPPED [INFO] Ambari Groovy Client ............................... SKIPPED [INFO] Ambari Shell ....................................... SKIPPED [INFO] Ambari Python Shell ................................ SKIPPED [INFO] Ambari Groovy Shell ................................ SKIPPED [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 25.063 s [INFO] Finished at: 2016-08-07T21:13:30+08:00 [INFO] Final Memory: 32M/991M [INFO] --------------------------------------------------------------------= ---- [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:ex= ec (compile-brunch) on project ambari-web: Command execution failed. Process= exited with an error: 1 (Exit value: 1) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute g= oal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile-brunch) on proje= ct ambari-web: Command execution failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja= va:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja= va:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja= va:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(= LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(= LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreade= dBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleSt= arter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launche= r.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2= 29) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launc= her.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356= ) Caused by: org.apache.maven.plugin.MojoExecutionException: Command executio= n failed. at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:362) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui= ldPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja= va:207) ... 20 more Caused by: org.apache.commons.exec.ExecuteException: Process exited with an= error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.= java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160= ) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:610) at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:352) ... 22 more [ERROR]=20 [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]=20 [ERROR] For more information about the errors and possible solutions, pleas= e read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecu= tionException [ERROR]=20 [ERROR] After correcting the problems, you can resume the build with the co= mmand [ERROR] mvn -rf :ambari-web =20 =20 =20 On Mon, Aug 1, 2016 at 11:21 PM, Amanda Moran wrot= e: Sorry if you already answered this.=20 =20 Is maven in your path?=20 =20 Thanks.=20 On Aug 1, 2016, at 7:18 AM, Ascot Moss wrote: HI, =20 Still have compilation error: sudo yum install -y python-setuptools sudo pip install psutil sudo npm install -g brunch@1.7.20 sudo pip install psutil mvn -B -e clean install package rpm:rpm -Dbuild-rpm -Dpython.ver=3D'python >=3D= 2.6'=20 [INFO] RPM build errors: [INFO] --------------------------------------------------------------------= ---- [INFO] Reactor Summary: [INFO] [INFO] Ambari Main ........................................ SUCCESS [ 3.30= 5 s] [INFO] Apache Ambari Project POM .......................... SUCCESS [ 0.48= 9 s] [INFO] Ambari Web ......................................... SUCCESS [04:30 = min] [INFO] Ambari Views ....................................... SUCCESS [ 1.53= 0 s] [INFO] Ambari Admin View .................................. SUCCESS [ 17.83= 5 s] [INFO] ambari-metrics ..................................... SUCCESS [ 1.03= 6 s] [INFO] Ambari Metrics Common .............................. SUCCESS [ 1.10= 4 s] [INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS [ 1.93= 6 s] [INFO] Ambari Metrics Flume Sink .......................... SUCCESS [ 1.39= 8 s] [INFO] Ambari Metrics Kafka Sink .......................... SUCCESS [ 0.99= 0 s] [INFO] Ambari Metrics Storm Sink .......................... SUCCESS [ 2.38= 5 s] [INFO] Ambari Metrics Collector ........................... SUCCESS [01:41 = min] [INFO] Ambari Metrics Monitor ............................. SUCCESS [ 1.50= 1 s] [INFO] Ambari Metrics Grafana ............................. SUCCESS [ 15.49= 8 s] [INFO] Ambari Metrics Assembly ............................ SUCCESS [04:55 = min] [INFO] Ambari Server ...................................... SUCCESS [33:51 = min] [INFO] Ambari Agent ....................................... SUCCESS [ 32.12= 4 s] [INFO] Ambari Client ...................................... SUCCESS [ 15.31= 8 s] [INFO] Ambari Python Client ............................... FAILURE [ 13.88= 4 s] [INFO] Ambari Groovy Client ............................... SKIPPED [INFO] Ambari Shell ....................................... SKIPPED [INFO] Ambari Python Shell ................................ SKIPPED [INFO] Ambari Groovy Shell ................................ SKIPPED [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 46:49 min [INFO] Finished at: 2016-08-01T16:32:25+08:00 [INFO] Final Memory: 325M/2743M [INFO] --------------------------------------------------------------------= ---- [ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1-alpha= -2:rpm (default-cli) on project python-client: RPM build execution returned:= '1' executing '/bin/sh -c cd /usr/local/apache-ambari-2.2.2-src/ambari-clie= nt/python-client/target/rpm/python-client/SPECS && rpmbuild -bb --buildroot = /usr/local/apache-ambari-2.2.2-src/ambari-client/python-client/target/rpm/py= thon-client/buildroot --define '_topdir /usr/local/apache-ambari-2.2.2-src/a= mbari-client/python-client/target/rpm/python-client' --target x86_64-redhat-= linux python-client.spec' -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute g= oal org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-2:rpm (default-cli) on proj= ect python-client: RPM build execution returned: '1' executing '/bin/sh -c c= d /usr/local/apache-ambari-2.2.2-src/ambari-client/python-client/target/rpm/= python-client/SPECS && rpmbuild -bb --buildroot /usr/local/apache-ambari-2.2= .2-src/ambari-client/python-client/target/rpm/python-client/buildroot --defi= ne '_topdir /usr/local/apache-ambari-2.2.2-src/ambari-client/python-client/t= arget/rpm/python-client' --target x86_64-redhat-linux python-client.spec' at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExe= cutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExe= cutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExe= cutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build= Project(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build= Project(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.Singl= eThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lif= ecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor= Impl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced= (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launche= r.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCo= de(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.= java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: RPM build execut= ion returned: '1' executing '/bin/sh -c cd /usr/local/apache-ambari-2.2.2-sr= c/ambari-client/python-client/target/rpm/python-client/SPECS && rpmbuild -bb= --buildroot /usr/local/apache-ambari-2.2.2-src/ambari-client/python-client/= target/rpm/python-client/buildroot --define '_topdir /usr/local/apache-ambar= i-2.2.2-src/ambari-client/python-client/target/rpm/python-client' --target x= 86_64-redhat-linux python-client.spec' at org.codehaus.mojo.rpm.RPMHelper.buildPackage(RPMHelper.java:150) at org.codehaus.mojo.rpm.AbstractRPMMojo.execute(AbstractRPMMojo.ja= va:792) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(De= faultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExe= cutor.java:207) ... 20 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, pleas= e read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecu= tionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the co= mmand [ERROR] mvn -rf :python-client =20 On Sat, Jul 30, 2016 at 3:35 PM, Don Bosco Durai wrote: I was able to reproduce your issue. It seems, the build user I am creating = didn=E2=80=99t have the permission to write to the local folder. I have updated th= e script to create the build user with the same UID from the host user. I ha= ve also using CentOS 6 image to build (as per the documentation). =20 I have updated the JIRA with the updated script. https://issues.apache.org/= jira/browse/AMBARI-17944 =20 Please do the following: =20 1. docker rmi ambari_dev 2. Go to root folder of your Ambari source 3. $YOUR_PATH/build_ambari_using_docker.sh =20 Let me know how it goes. =20 Thanks =20 Bosco =20 =20 =20 =20 From: Ascot Moss Reply-To: Date: Thursday, July 28, 2016 at 4:11 PM To: Subject: Re: Build Error =20 Hi, yum install -y python-setuptools Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.vpshosting.com.hk * epel: ftp.cuhk.edu.hk * extras: mirror.vpshosting.com.hk * updates: mirror.vpshosting.com.hk Package python-setuptools-0.9.8-4.el7.noarch already installed and latest v= ersion Nothing to do =20 =20 "My script should have done the complete build. What is the error you are g= etting?" The error as follows: [INFO] --------------------------------------------------------------------= ---- [INFO] Reactor Summary: [INFO]=20 [INFO] Ambari Main ........................................ FAILURE [ 2.13= 5 s] [INFO] Apache Ambari Project POM .......................... SKIPPED [INFO] Ambari Web ......................................... SKIPPED [INFO] Ambari Views ....................................... SKIPPED [INFO] Ambari Admin View .................................. SKIPPED [INFO] ambari-metrics ..................................... SKIPPED [INFO] Ambari Metrics Common .............................. SKIPPED [INFO] Ambari Metrics Hadoop Sink ......................... SKIPPED [INFO] Ambari Metrics Flume Sink .......................... SKIPPED [INFO] Ambari Metrics Kafka Sink .......................... SKIPPED [INFO] Ambari Metrics Storm Sink .......................... SKIPPED [INFO] Ambari Metrics Collector ........................... SKIPPED [INFO] Ambari Metrics Monitor ............................. SKIPPED [INFO] Ambari Metrics Grafana ............................. SKIPPED [INFO] Ambari Metrics Assembly ............................ SKIPPED [INFO] Ambari Server ...................................... SKIPPED [INFO] Ambari Agent ....................................... SKIPPED [INFO] Ambari Client ...................................... SKIPPED [INFO] Ambari Python Client ............................... SKIPPED [INFO] Ambari Groovy Client ............................... SKIPPED [INFO] Ambari Shell ....................................... SKIPPED [INFO] Ambari Python Shell ................................ SKIPPED [INFO] Ambari Groovy Shell ................................ SKIPPED [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 3.035 s [INFO] Finished at: 2016-07-28T23:09:34+00:00 [INFO] Final Memory: 17M/479M [INFO] --------------------------------------------------------------------= ---- [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check = (default) on project ambari: Could not create report parent directory /ambar= i/target -> [Help 1] [ERROR]=20 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e= switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]=20 [ERROR] For more information about the errors and possible solutions, pleas= e read the following articles =20 =20 =20 =20 =20 =20 On Fri, Jul 29, 2016 at 12:49 AM, Don Bosco Durai wrote: > Step 1: run your script > [INFO] Ambari Main ........................................ FAILURE [ 0.= 521 s] My script should have done the complete build. What is the error you are ge= tting? =20 > Is "mvn clean install package -DskipTests" correct command to build Amba= ri? Depends what do you want to do? For released versions, Apache Ambari alread= y gives you the final binary bits, including RPM. So shouldn=E2=80=99t be needing = to build. =20 (From your very recent build)=E2=80=A6 > mvn -B -e clean install package rpm:rpm -Dbuild-rpm -Dpython.ver=3D'python = >=3D 2.6' =E2=80=93DskipTests If you are compiling outside Docker, then try installing =E2=80=9Cyum install -y = python-setuptools=E2=80=9D. My script might not be able to take the space in the =E2= =80=9Cpython >=3D 2.6=E2=80=9D. But if you want, I can look into it. =20 Thanks =20 Bosco =20 =20 =20 =20 =20 =20 =20 --=20 Thanks,=20 =20 Amanda Moran --B_3553697036_434180299 Content-type: text/html; charset="UTF-8" Content-transfer-encoding: quoted-printable

Amanda, thanks for trying out. I got similar error when I was= using an older AMI on AWS. After moving to the latest, it was solved. =

 

Seems this is more of a Docker host issue t= han the script. So it might not be worth debugging this. <= /p>

 

We can revisit this again if anyone else is interested.

 

Thanks

 <= /span>

Bosco

 

 

<= p class=3DMsoNormal>&n= bsp;

 

From: Amanda Moran <amanda.moran@esgyn.com>
<= b>Reply-To: <user@ambari.apache.org>
Date: Monday, Augus= t 8, 2016 at 10:56 AM
To: <user@ambari.apache.org>
Sub= ject: Re: Build Error

 

Hi there Bosco-

I= tried this out on Centos 6.7. I did this to install docker:

Edit /et= c/yum.repos.d/docker-main.repo :

[docker-main-repo]
name=3DDocker ma= in Repository
baseurl=3Dhttps://yum.dockerproject.org/repo/main/centos/$releasever=
enabled=3D1
gpgcheck=3D1
gpgkey=3Dhttps://yum.dockerproject.org/gpg

Install docker: yum i= nstall docker-engine
Start docker daemon: service docker start=

 

I then followed your steps exactly. 

 

I got this e= rror:

Downloading [=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D&g= t;]     32 B/32 B

stat= /var/lib/docker/devicemapper/mnt/2ffd5d75bab0324b15b8410254a9677673489a01d5= 204f1db8b75ccab0c4206c/rootfs/tools/tmp: not a directory

+ docker run --rm -it -v /home/centos/ambari:/ambar= i -w /ambari -v /home/centos/.m2:/home/build/.m2 --user build ambari_dev mvn= -B clean install package -DskipTests '-Dpython.ver=3Dpython\>=3D2.6' -Prepla= ceurl

Unable to find image 'amba= ri_dev:latest' locally

Pulling r= epository ambari_dev

Error: imag= e library/ambari_dev:latest not found

 

 

I just wanted to test this out for you= since I was curious. Don't worry about debugging this for my use especially= if centos 6.7 isn't supported.

=  

Thanks! <= /p>

 

Amanda 

 =

 

On Sun, Aug 7, 2016 at 7:36 PM, Don Bosco Durai <bosco@apache.org> wrote:

Thanks for trying it out. It = seems there is a permission issue when the mvn build from the Docker contain= er is accessing your mounted file system.

 

Can you try this?<= /o:p>

 <= o:p>

Login as = yourself (or build user)

cd $HOME

sudo rm -rf .m2/repository

tar xfz <ambari sr= c tar file>

cd <ambari source folder>

wget https://issues.apache.org/jira/secure/attachment/12822494/build_am= bari_using_docker.sh

chmod a+x build_ambari_using_docker.sh

./build_ambari_u= sing_docker.sh -build_image

or

sudo ./build_ambari_using_docker.sh -build_image<= /span>

&n= bsp;

 

Can someone who has Docker, please try it out and let me know it wor= ks for you? I have tested the below steps in my Ubuntu host and a fresh AWS = EC2 environment and it worked.

1. If not docker is not installed, please inst= all docker

2. sudo usermod -a -G docker $USER

3. Close terminal and open a new t= erminal

4. Make sure "id" has group "docker" in the list

5. = cd $AMBARI_GIT_SRC_FOLDER or cd $HOME; git clone git://git.apache.org/ambari.git; cd amba= ri

5. git checkout trunk

6. git pull

7. wget = https://issues.apache.org/jira/secure/attachment/12822494/build_ambari_using= _docker.sh

8. chmod a+x build_ambari_using_docker.sh

=

9. ./build_ambari_using= _docker.sh

 

Please let me know your host OS…

<= p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'= > =

Thanks<= /o:p>

 <= o:p>

Bosco

 = ;

=  

 

From: Ascot Moss <ascot.= moss@gmail.com>
Reply-To: <user@ambari.apache.org>
Date: Su= nday, August 7, 2016 at 6:35 AM


To: <user@ambari.apache.org>
Subject: Re: Build Error<= /o:p>

 

=

and tried the following:


(run as root)=

 

docker rmi ambari_dev &nb= sp; 

/build_ambari_using_docker.sh   

[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0= approved: 1274 licence.

[INFO] 

[INFO]= --- maven-assembly-plugin:2.2-beta-5:single (make-assembly) @ ambari ---

[INFO] Reading assembly descriptor: /ambari/ambari-project/src= /main/assemblies/empty.xml

[INFO] 

[INF= O] --- maven-install-plugin:2.4:install (default-install) @ ambari ---<= /o:p>

[INFO] Installing /ambari/pom.xml to /home/build/.m2/repository/o= rg/apache/ambari/ambari/2.2.2.0.0/ambari-2.2.2.0.0.pom

[INFO= ] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] Ambari Main ........................................ FAILURE = [  1.722 s]

[INFO] Apache Ambari Project POM ..........= ................ SKIPPED

[INFO] Ambari Web .................= ........................ SKIPPED

[INFO] Ambari Views .......= ................................ SKIPPED

[INFO] Ambari Admin= View .................................. SKIPPED

[INFO] amba= ri-metrics ..................................... SKIPPED

[IN= FO] Ambari Metrics Common .............................. SKIPPED<= /p>

[INFO] Ambari Metrics Hadoop Sink ......................... SKIPPED

[INFO] Ambari Metrics Flume Sink .......................... SKI= PPED

[INFO] Ambari Metrics Kafka Sink ......................= .... SKIPPED

[INFO] Ambari Metrics Storm Sink ..............= ............ SKIPPED

[INFO] Ambari Metrics Collector .......= .................... SKIPPED

[INFO] Ambari Metrics Monitor .= ............................ SKIPPED

[INFO] Ambari Metrics G= rafana ............................. SKIPPED

[INFO] Ambari M= etrics Assembly ............................ SKIPPED

[INFO] = Ambari Server ...................................... SKIPPED

<= p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'= >[INFO] Ambari Agent ....................................... SKIPPED

[INFO] Ambari Client ...................................... SKIPPED=

[INFO] Ambari Python Client ...............................= SKIPPED

[INFO] Ambari Groovy Client .......................= ........ SKIPPED

[INFO] Ambari Shell .......................= ................ SKIPPED

[INFO] Ambari Python Shell ........= ........................ SKIPPED

[INFO] Ambari Groovy Shell = ................................ SKIPPED

[INFO] ------------= ------------------------------------------------------------

<= p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'= >[INFO] BUILD FAILURE

[INFO] -------------------------------= -----------------------------------------

[INFO] Total time:= 2.071 s

[INFO] Finished at: 2016-08-07T13:33:26+00:00<= /o:p>

[INFO] Final Memory: 28M/702M

[INFO] ------------= ------------------------------------------------------------

<= p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'= >[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugi= n:2.4:install (default-install) on project ambari: Failed to install artifac= t org.apache.ambari:ambari:pom:2.2.2.0.0: /home/build/.m2/repository/org/apa= che/ambari/ambari/2.2.2.0.0/ambari-2.2.2.0.0.pom (Permission denied) -> [= Help 1]

[ERROR] 

[ERROR] To see the ful= l stack trace of the errors, re-run Maven with the -e switch.

=

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information abou= t the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/= confluence/display/MAVEN/MojoExecutionException





a= s already run as root, not sure why still got 
 /home/build/.m2= /repository/org/apache/ambari/ambari/2.2.2.0.0/ambari-2.2.2.0.0.pom (Permiss= ion denied) 

 

 

 

 

On S= un, Aug 7, 2016 at 9:22 PM, Ascot Moss <ascot.moss@gmail.com> wrote:

HI,

Tried again.

 <= /o:p>

Added: 
echo $MAVEN_HOME

/opt/apache-ma= ven-3.3.9

 

 

(command)

mvn -B -e clean install package -Ds= kipTests=3Dtrue

 

(log)

<= /div>

npm WARN optional Skipping failed optional dependency /chokidar= /fsevents:

npm WARN notsup Not compatible with your operati= ng system or architecture: fsevents@0.2.1

npm WARN Ambari@2= .1.3 No license field.

[INFO] 

[INFO]= --- exec-maven-plugin:1.2.1:exec (compile-brunch) @ ambari-web ---

/usr/lib/node_modules/brunch/lib/watch.js:433

&nbs= p;           throw new Error("You probably nee= d to execute `npm install` to install brunch plugins. " + error);<= /o:p>

            ^

&nb= sp;

Error: You probably need to execute `npm install` to in= stall brunch plugins. SyntaxError: Setter must have exactly one formal param= eter.

  at /usr/lib/node_modules/brunch/lib/watch.js:4= 33:19

  at Array.map (native)

  = at loadDeps (/usr/lib/node_modules/brunch/lib/watch.js:418:10)

  at loadPackages (/usr/lib/node_modules/brunch/lib/watch.js:438:15= )

  at /usr/lib/node_modules/brunch/lib/watch.js:458:1= 9

  at /usr/lib/node_modules/brunch/lib/helpers.js:529= :16

  at /usr/lib/node_modules/brunch/lib/helpers.js:4= 85:14

  at /usr/lib/node_modules/brunch/node_modules/r= ead-components/index.js:263:16

  at /usr/lib/node_modu= les/brunch/node_modules/read-components/index.js:72:14

&nbs= p; at FSReqWrap.cb [as oncomplete] (fs.js:257:19)

 

[INFO] ------------------------------------------------------= ------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] Ambari Main ..........................= .............. SUCCESS [  2.577 s]

[INFO] Apache Ambar= i Project POM .......................... SUCCESS [  0.036 s]=

[INFO] Ambari Web ......................................... FAILURE [= 22.124 s]

[INFO] Ambari Views ............................= ........... SKIPPED

[INFO] Ambari Admin View ..............= .................... SKIPPED

[INFO] ambari-metrics ........= ............................. SKIPPED

[INFO] Ambari Metrics= Common .............................. SKIPPED

[INFO] Ambar= i Metrics Hadoop Sink ......................... SKIPPED

[IN= FO] Ambari Metrics Flume Sink .......................... SKIPPED<= /p>

[INFO] Ambari Metrics Kafka Sink .......................... SKIPPED

[INFO] Ambari Metrics Storm Sink .......................... S= KIPPED

[INFO] Ambari Metrics Collector ....................= ....... SKIPPED

[INFO] Ambari Metrics Monitor .............= ................ SKIPPED

[INFO] Ambari Metrics Grafana ....= ......................... SKIPPED

[INFO] Ambari Metrics Ass= embly ............................ SKIPPED

[INFO] Ambari Se= rver ...................................... SKIPPED

[INFO] = Ambari Agent ....................................... SKIPPED

<= p>[INFO] Ambari Client ...................................... SKIPPED

[INFO] Ambari Python Client ............................... SKIPP= ED

[INFO] Ambari Groovy Client ............................= ... SKIPPED

[INFO] Ambari Shell ...........................= ............ SKIPPED

[INFO] Ambari Python Shell ...........= ..................... SKIPPED

[INFO] Ambari Groovy Shell ..= .............................. SKIPPED

[INFO] -------------= -----------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------= ------------------------------------------

[INFO] Total tim= e: 25.063 s

[INFO] Finished at: 2016-08-07T21:13:30+08:00

[INFO] Final Memory: 32M/991M

[INFO] ------= ------------------------------------------------------------------

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1= .2.1:exec (compile-brunch) on project ambari-web: Command execution failed. = Process exited with an error: 1 (Exit value: 1) -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execut= e goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile-brunch) on pr= oject ambari-web: Command execution failed.

at org.apache.m= aven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExe= cutor.java:153)

at org.apache.maven.lifecycle.internal.Mojo= Executor.execute(MojoExecutor.java:145)

at org.apache.maven= .lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuild= er.java:116)

at org.apache.maven.lifecycle.internal.Lifecyc= leModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

<= p>at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThread= edBuilder.build(SingleThreadedBuilder.java:51)

at org.apach= e.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:12= 8)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.= java:307)

at org.apache.maven.DefaultMaven.doExecute(Defaul= tMaven.java:193)

at org.apache.maven.DefaultMaven.execute(D= efaultMaven.java:106)

at org.apache.maven.cli.MavenCli.exec= ute(MavenCli.java:863)

at org.apache.maven.cli.MavenCli.doM= ain(MavenCli.java:288)

at org.apache.maven.cli.MavenCli.mai= n(MavenCli.java:199)

at sun.reflect.NativeMethodAccessorImp= l.invoke0(Native Method)

at sun.reflect.NativeMethodAccesso= rImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.refle= ct.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)=

at java.lang.reflect.Method.invoke(Method.java:498)

at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanc= ed(Launcher.java:289)

at org.codehaus.plexus.classworlds.la= uncher.Launcher.launch(Launcher.java:229)

at org.codehaus.p= lexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)=

at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launc= her.java:356)

Caused by: org.apache.maven.plugin.MojoExecut= ionException: Command execution failed.

at org.codehaus.moj= o.exec.ExecMojo.execute(ExecMojo.java:362)

at org.apache.ma= ven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j= ava:134)

at org.apache.maven.lifecycle.internal.MojoExecuto= r.execute(MojoExecutor.java:207)

... 20 more

=

Caused by: org.apache.commons.exec.ExecuteException: Process exited with = an error: 1 (Exit value: 1)

at org.apache.commons.exec.Defa= ultExecutor.executeInternal(DefaultExecutor.java:377)

at or= g.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)=

at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.= java:610)

at org.codehaus.mojo.exec.ExecMojo.execute(ExecMo= jo.java:352)

... 22 more

[ERROR] 

[ERROR] Re-run Maven using the -X switch to enable full debug = logging.

[ERROR] 

[ERROR] For more in= formation about the errors and possible solutions, please read the following= articles:

[ERROR] [Help 1] http://cw= iki.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-web

 

&= nbsp;

 

<= p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'= >On Mon, Aug 1, 2016 at 11:21 PM, Amanda Moran <amanda.moran@esgyn.com> wrote:

Sorry if you already answered this. <= /o:p>

 

Is maven in your pat= h? 

 

Thanks= . 


On Aug 1, 2016, at 7:18 AM, Ascot= Moss <ascot.moss@g= mail.com> wrote:

HI,

 

Still have compilation error:

sudo yum i= nstall -y python-setuptools

sudo pip install psutil

sudo npm install -g brunch@1.7.20

sudo = pip install psutil

mvn -B -e clean instal= l package rpm:rpm -Dbuild-rpm -Dpython.ver=3D'python >=3D 2.6' =

[INFO] RPM build errors:

[INFO] --------------= ----------------------------------------------------------

= [INFO] Reactor Summary:

[INFO]

[INFO] Amba= ri Main ........................................ SUCCESS [  3.305 s]

[INFO] Apache Ambari Project POM .......................... S= UCCESS [  0.489 s]

[INFO] Ambari Web .................= ........................ SUCCESS [04:30 min]

[INFO] Ambari = Views ....................................... SUCCESS [  1.530 s]<= /o:p>

[INFO] Ambari Admin View .................................. SUCC= ESS [ 17.835 s]

[INFO] ambari-metrics .....................= ................ SUCCESS [  1.036 s]

[INFO] Ambari Met= rics Common .............................. SUCCESS [  1.104 s]

[INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS= [  1.936 s]

[INFO] Ambari Metrics Flume Sink ........= .................. SUCCESS [  1.398 s]

[INFO] Ambari M= etrics Kafka Sink .......................... SUCCESS [  0.990 s]

[INFO] Ambari Metrics Storm Sink .......................... SUCCE= SS [  2.385 s]

[INFO] Ambari Metrics Collector .......= .................... SUCCESS [01:41 min]

[INFO] Ambari Metr= ics Monitor ............................. SUCCESS [  1.501 s]

[INFO] Ambari Metrics Grafana ............................. SUCCESS = [ 15.498 s]

[INFO] Ambari Metrics Assembly ................= ............ SUCCESS [04:55 min]

[INFO] Ambari Server .....= ................................. SUCCESS [33:51 min]

[INFO= ] Ambari Agent ....................................... SUCCESS [ 32.124 s]

[INFO] Ambari Client ...................................... = SUCCESS [ 15.318 s]

[INFO] Ambari Python Client ...........= .................... FAILURE [ 13.884 s]

[INFO] Ambari Groo= vy Client ............................... SKIPPED

[INFO] Am= bari Shell ....................................... SKIPPED

= [INFO] Ambari Python Shell ................................ SKIPPED

[INFO] Ambari Groovy Shell ................................ SKIPPED=

[INFO] ---------------------------------------------------= ---------------------

[INFO] BUILD FAILURE

[INFO] --------------------------------------------------------------------= ----

[INFO] Total time: 46:49 min

[INFO] F= inished at: 2016-08-01T16:32:25+08:00

[INFO] Final Memory: = 325M/2743M

[INFO] -----------------------------------------= -------------------------------

[ERROR] Failed to execute g= oal org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-2:rpm (default-cli) on proj= ect python-client: RPM build execution returned: '1' executing '/bin/sh -c c= d /usr/local/apache-ambari-2.2.2-src/ambari-client/python-client/target/rpm/= python-client/SPECS && rpmbuild -bb --buildroot /usr/local/apache-am= bari-2.2.2-src/ambari-client/python-client/target/rpm/python-client/buildroo= t --define '_topdir /usr/local/apache-ambari-2.2.2-src/ambari-client/python-= client/target/rpm/python-client' --target x86_64-redhat-linux python-client.= spec' -> [Help 1]

org.apache.maven.lifecycle.LifecycleEx= ecutionException: Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:= 2.1-alpha-2:rpm (default-cli) on project python-client: RPM build execution = returned: '1' executing '/bin/sh -c cd /usr/local/apache-ambari-2.2.2-src/am= bari-client/python-client/target/rpm/python-client/SPECS && rpmbuild= -bb --buildroot /usr/local/apache-ambari-2.2.2-src/ambari-client/python-cli= ent/target/rpm/python-client/buildroot --define '_topdir /usr/local/apache-a= mbari-2.2.2-src/ambari-client/python-client/target/rpm/python-client' --targ= et x86_64-redhat-linux python-client.spec'

    &n= bsp;   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor= .java:212)

        at org.apache.maven.lifecycle.in= ternal.MojoExecutor.execute(MojoExecutor.java:153)

&nbs= p;       at org.apache.maven.lifecycle.internal.MojoExecutor.execute(= MojoExecutor.java:145)

        at org.apache.maven.= lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu= ilder.java:116)

        at org.apache.maven.lifecyc= le.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.j= ava:80)

        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBui= lder.java:51)

        at org.apache.maven.lifecycle= .internal.LifecycleStarter.execute(LifecycleStarter.java:128)=

        at org.apache.maven.DefaultMaven.doExecut= e(DefaultMaven.java:307)

        at org= .apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)

        at org.apache.maven.DefaultMaven.execute(Defaul= tMaven.java:106)

        at org.apache.= maven.cli.MavenCli.execute(MavenCli.java:863)

   =     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

        at org.apache.maven.cli.MavenCli.= main(MavenCli.java:199)

        at sun.= reflect.NativeMethodAccessorImpl.invoke0(Native Method)

&nb= sp;       at sun.reflect.NativeMethodAccessorImpl.invoke(Nati= veMethodAccessorImpl.java:62)

        a= t sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm= pl.java:43)

        at java.lang.reflec= t.Method.invoke(Method.java:498)

       = ; at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch= er.java:289)

        at org.codehaus.pl= exus.classworlds.launcher.Launcher.launch(Launcher.java:229)

<= p>        at org.codehaus.plexus.classworlds.launcher.La= uncher.mainWithExitCode(Launcher.java:415)

    &n= bsp;   at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launch= er.java:356)

Caused by: org.apache.maven.plugin.MojoExecuti= onException: RPM build execution returned: '1' executing '/bin/sh -c cd /usr= /local/apache-ambari-2.2.2-src/ambari-client/python-client/target/rpm/python= -client/SPECS && rpmbuild -bb --buildroot /usr/local/apache-ambari-2= .2.2-src/ambari-client/python-client/target/rpm/python-client/buildroot --de= fine '_topdir /usr/local/apache-ambari-2.2.2-src/ambari-client/python-client= /target/rpm/python-client' --target x86_64-redhat-linux python-client.spec'<= o:p>

        at org.codehaus.mojo.rpm.RPMHel= per.buildPackage(RPMHelper.java:150)

      &= nbsp; at org.codehaus.mojo.rpm.AbstractRPMMojo.execute(AbstractRPMMojo.java:= 792)

        at org.apache.maven.plugin= .DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

        at org.apache.maven.lifecycle.internal.M= ojoExecutor.execute(MojoExecutor.java:207)

    &n= bsp;   ... 20 more

[ERROR]

[ERROR] Re= -run Maven using the -X switch to enable full debug logging.

<= p>[ERROR]

[ERROR] For more information about the errors and= possible solutions, please read the following articles:

[E= RROR] [Help 1] http://cwiki.apache.org/confluence/disp= lay/MAVEN/MojoExecutionException

[ERROR]

=

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

[ERROR]   mvn <goals> -rf :python-client=

 

On Sat, = Jul 30, 2016 at 3:35 PM, Don Bosco Durai <bosco@apache.org> wrote:

<= div>

I was able to = reproduce your issue. It seems, the build user I am creating didn’t ha= ve the permission to write to the local folder. I have updated the script to= create the build user with the same UID from the host user. I have also usi= ng CentOS 6 image to build (as per the documentation).

=

 

I have updated the= JIRA with the updated script. https://issues.apache.org/jira/browse/AMBARI= -17944

 

Please do the following:

 

1.       docker rmi ambari_dev

2.       Go to root folder of your Ambari source

3.=        $YOUR_PATH/build_ambari_usi= ng_docker.sh

 

Let me know how it goes.

 

Thanks

 

Bosco

 =

 =

 

&nb= sp;

From: Ascot M= oss <ascot.moss@gma= il.com>
Reply-To: <user@ambari.apache.org>
Date: Thursday, = July 28, 2016 at 4:11 PM
To: <user@ambari.apache.org>
Subject: Re:= Build Error

 

Hi,

yum install -y python-setuptools

Loaded plugins: fastestmirror

Loading mirror spe= eds from cached hostfile

 * base: mirror.vpshosting.com.hk

 * epel: ftp.c= uhk.edu.hk

 * extras: mirror.vpshosting.com.hk

=  * updates: m= irror.vpshosting.com.hk

Package python-setuptools-0.9.8= -4.el7.noarch already installed and latest version

Nothing = to do

 

 

"My script should have done the complete build. What is the = error you are getting?"

The err= or as follows:

[INFO] ------------------------------= ------------------------------------------

[INFO] Reactor S= ummary:

[INFO] 

[INFO] Ambari Main ..= ...................................... FAILURE [  2.135 s]

[INFO] Apache Ambari Project POM .......................... SKIPPED

[INFO] Ambari Web ......................................... SK= IPPED

[INFO] Ambari Views .................................= ...... SKIPPED

[INFO] Ambari Admin View ...................= ............... SKIPPED

[INFO] ambari-metrics .............= ........................ SKIPPED

[INFO] Ambari Metrics Comm= on .............................. SKIPPED

[INFO] Ambari Met= rics Hadoop Sink ......................... SKIPPED

[INFO] A= mbari Metrics Flume Sink .......................... SKIPPED

[INFO] Ambari Metrics Kafka Sink .......................... SKIPPED

[INFO] Ambari Metrics Storm Sink .......................... SKIPPE= D

[INFO] Ambari Metrics Collector .........................= .. SKIPPED

[INFO] Ambari Metrics Monitor ..................= ........... SKIPPED

[INFO] Ambari Metrics Grafana .........= .................... SKIPPED

[INFO] Ambari Metrics Assembly= ............................ SKIPPED

[INFO] Ambari Server = ...................................... SKIPPED

[INFO] Ambar= i Agent ....................................... SKIPPED

[IN= FO] Ambari Client ...................................... SKIPPED<= /p>

[INFO] Ambari Python Client ............................... SKIPPED

[INFO] Ambari Groovy Client ............................... S= KIPPED

[INFO] Ambari Shell ................................= ....... SKIPPED

[INFO] Ambari Python Shell ................= ................ SKIPPED

[INFO] Ambari Groovy Shell .......= ......................... SKIPPED

[INFO] ------------------= ------------------------------------------------------

[INF= O] BUILD FAILURE

[INFO] -----------------------------------= -------------------------------------

[INFO] Total time: 3.= 035 s

[INFO] Finished at: 2016-07-28T23:09:34+00:00

[INFO] Final Memory: 17M/479M

[INFO] ------------= ------------------------------------------------------------

<= p>[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check= (default) on project ambari: Could not create report parent directory /amba= ri/target -> [Help 1]

[ERROR] 

[ER= ROR] To see the full stack trace of the errors, re-run Maven with the -e swi= tch.

[ERROR] Re-run Maven using the -X switch to enable ful= l debug logging.

[ERROR] 

[ERROR] For= more information about the errors and possible solutions, please read the f= ollowing articles

 

 =

 

 

 

 <= /o:p>

On Fri, Jul 29, 2016 at 12:49 AM, Don Bosco Durai <bosco@apache.org> wrote:<= o:p>

> St= ep 1: run your script

> [INFO] Ambari Main ................................= ........ FAILURE [  0.521 s]

My script should have done the complete buil= d. What is the error you are getting?

 

> Is "mvn clean install package -DskipTests&q= uot;  correct command to build Ambari?

Depends what do you want to do? Fo= r released versions, Apache Ambari already gives you the final binary bits, = including RPM. So shouldn’t be needing to build.

=

 

(From your very re= cent build)…

> mvn -B -e clean install package rpm:rpm -Dbuild-rpm -Dpython.ver=3D'python= >=3D 2.6' –DskipTests

If you are compiling outside Docker, then try in= stalling “yum install -y python-setuptools”. My script might not= be able to take the space in the “python >=3D 2.6”. But if you= want, I can look into it.

 

Thanks

 

Bosco

 

 

 

 

=

 

 



 

--

Thanks, 

 

Amanda Moran

--B_3553697036_434180299--