I was able to reproduce your issue. It seems, the build user I am creating didn’t have 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 using 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_using_docker.sh Let me know how it goes. Thanks Bosco From: Ascot Moss <[email protected]> Reply-To: <[email protected]> Date: Thursday, July 28, 2016 at 4:11 PM To: <[email protected]> Subject: Re: Build Error 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 version Nothing to do "My script should have done the complete build. What is the error you are getting?" The error as follows: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Ambari Main ........................................ FAILURE [ 2.135 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 /ambari/target -> [Help 1] [ERROR] [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] [ERROR] For more information about the errors and possible solutions, please read the following articles On Fri, Jul 29, 2016 at 12:49 AM, Don Bosco Durai <[email protected]> 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 getting? > Is "mvn clean install package -DskipTests" correct command to build Ambari? Depends what do you want to do? For released versions, Apache Ambari already gives you the final binary bits, including RPM. So shouldn’t be needing to build. (From your very recent build)… > mvn -B -e clean install package rpm:rpm -Dbuild-rpm -Dpython.ver='python >= > 2.6' –DskipTests If you are compiling outside Docker, then try installing “yum install -y python-setuptools”. My script might not be able to take the space in the “python >= 2.6”. But if you want, I can look into it. Thanks Bosco
