From ambari-dev-return-377-apmail-incubator-ambari-dev-archive=incubator.apache.org@incubator.apache.org Mon Dec 26 21:42:05 2011 Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA2D59ACC for ; Mon, 26 Dec 2011 21:42:05 +0000 (UTC) Received: (qmail 60261 invoked by uid 500); 26 Dec 2011 21:42:05 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 60233 invoked by uid 500); 26 Dec 2011 21:42:05 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 60225 invoked by uid 99); 26 Dec 2011 21:42:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Dec 2011 21:42:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.210.175] (HELO mail-iy0-f175.google.com) (209.85.210.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Dec 2011 21:41:58 +0000 Received: by iakh37 with SMTP id h37so15819780iak.6 for ; Mon, 26 Dec 2011 13:41:37 -0800 (PST) Received: by 10.43.117.194 with SMTP id fn2mr26597666icc.53.1324935697060; Mon, 26 Dec 2011 13:41:37 -0800 (PST) Received: from [192.168.1.4] (c-76-21-120-131.hsd1.ca.comcast.net. [76.21.120.131]) by mx.google.com with ESMTPS id rc7sm62173550igb.0.2011.12.26.13.41.35 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Dec 2011 13:41:36 -0800 (PST) Subject: Re: Build Error while running build script Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Devaraj Das In-Reply-To: Date: Mon, 26 Dec 2011 13:41:33 -0800 Cc: 'Eric Yang' Content-Transfer-Encoding: quoted-printable Message-Id: <6545796D-ACEF-4016-930E-8B14F795A9BC@hortonworks.com> References: To: ambari-dev@incubator.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org On Dec 25, 2011, at 10:16 PM, RohithSharma wrote: > Hi Eric, >=20 > As per your suggestion, I used "mvn clean install" in the top=20= >=20 > level. After building, only jars got created for agent, client=20 >=20 > and controller. >=20 > Currently, I have following files for each module >=20 > Agent ----> *.rpm , *.tar.gz and *.jar created > Client ----> only *.jar created > Controller ----> only *.jar created >=20 > Could you kindly help me with the following, >=20 > 1. How can I deploy using above files?=20 >=20 Rohith, not sure what you meant by deploying. There are two aspects -=20 1. Ambari deployment - this is currently assumed to be done by the = cluster admin in whatever way he seems fit. Ambari will be packaged as = RPM and some other package formats. The admin can choose to deploy = Ambari using methods that he uses to deploy any other software in the = cluster. 2. Hadoop deployment using Ambari - currently the dev-community is in = the process of building the infrastructure. It is not yet in a shape = where you can deploy Hadoop & friends with Ambari. There should be a = release within 6 weeks and that will allow you to deploy Hadoop and some = friends. > 2. Is there any other way to build tarball for client and controller? >=20 >=20 > Thanks & Regards > Rohith Sharma K S >=20 >=20 >=20 > -----Original Message----- > From: Eric Yang [mailto:eric818@gmail.com]=20 > Sent: Saturday, December 24, 2011 12:04 AM > To: rohithsharmaks@huawei.com > Cc: ambari-dev@incubator.apache.org > Subject: Re: Build Error while running build script >=20 > It looks like the build command is running as mvn clean package -P rpm = from > the top level. However, only agent module supports rpm build. When > building from the top level, use mvn clean install. Client and = controller > only support tarball build only. We will eventually merge all modules = into > one package. However, that is not done currently. >=20 > Sent from my iPhone >=20 > On Dec 23, 2011, at 2:19 AM, RohithSharma = wrote: >=20 >> Hi Eric, >>=20 >> Thanks for your quick bug fix(AMBARI-173), it resolved my present = issue. >>=20 >> I tried to build once again but got a failure in building the client >>=20 >> I would like to add my analysis=20 >> 1.Agent and ambari build was successful. >>=20 >> 2.While building the client , it got failed at the point where = copying the >=20 >>=20 >> ambari-client.tar.gz is done. >>=20 >> On further analysis we found that the tar file is supposed to be = available >=20 >>=20 >> under the path "client/target/ambari-client-0.1.0-SNAPSHOT.tar.gz" = where > as=20 >>=20 >> there is no tarball available under that location.=20 >>=20 >> Any inputs would be appreciated. >>=20 >> Given below is the build trace. >>=20 > = --------------------------------------------------------------------------= -- >> main:=20 >>=20 >> package-rpm:=20 >> [mkdir] Created dir: >> = /home/isap/.hudson/jobs/Ambari/workspace/client/target/rpm/hms/SOURCES=20= >> [mkdir] Created dir: >> /home/isap/.hudson/jobs/Ambari/workspace/client/target/rpm/hms/BUILD=20= >> [mkdir] Created dir: >> /home/isap/.hudson/jobs/Ambari/workspace/client/target/rpm/hms/RPMS=20= >> [mkdir] Created dir: >> = /home/isap/.hudson/jobs/Ambari/workspace/client/target/rpm/hms/buildroot=20= >> [INFO] >> = ------------------------------------------------------------------------=20= >> [INFO] Reactor Summary:=20 >> [INFO]=20 >> [INFO] agent ............................................. SUCCESS > [15.735s] >>=20 >> [INFO] ambari ............................................ SUCCESS > [1.166s]=20 >> [INFO] client ............................................ FAILURE > [11.460s] >>=20 >> [INFO] controller ........................................ SKIPPED=20 >> [INFO] >> = ------------------------------------------------------------------------=20= >> [INFO] BUILD FAILURE=20 >> [INFO] >> = ------------------------------------------------------------------------=20= >> [INFO] Total time: 29.962s=20 >> [INFO] Finished at: Fri Dec 23 14:15:50 IST 2011=20 >> [INFO] Final Memory: 16M/38M=20 >> [INFO] >> = ------------------------------------------------------------------------=20= >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-antrun-plugin:1.6:run (build-rpm) on > project >> ambari-client: An Ant BuildException has occured: The following error >> occurred while executing this line:=20 >> [ERROR] >> = /home/isap/.hudson/jobs/Ambari/workspace/client/src/packages/build.xml:62:= >> Warning: Could not find file >>=20 > = /home/isap/.hudson/jobs/Ambari/workspace/client/target/ambari-client-0.1.0= -S >> NAPSHOT.tar.gz to copy.=20 >> [ERROR] -> [Help 1]=20 >> [ERROR]=20 >> [ERROR] To see the full stack trace of the errors, re-run Maven with = the > -e >> switch.=20 >> [ERROR] Re-run Maven using the -X switch to enable full debug = logging.=20 >> [ERROR]=20 >> [ERROR] For more information about the errors and possible solutions, > please >> read the following articles:=20 >> [ERROR] [Help 1] >> = http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >> [ERROR]=20 >> [ERROR] After correcting the problems, you can resume the build with = the >> command=20 >> [ERROR] mvn -rf :ambari-client >>=20 > = --------------------------------------------------------------------------= -- >>=20 >>=20 >>=20 >> Thanks $ Regards >> Rohith Sharma K S >>=20 >>=20 >> -----Original Message----- >> From: Eric Yang [mailto:eric818@gmail.com]=20 >> Sent: Friday, December 23, 2011 11:44 AM >> To: rohithsharmaks@huawei.com >> Cc: ambari-dev@incubator.apache.org >> Subject: Re: Build Error while running build script >>=20 >> It turns out that rpmbuild on SUSE is different from RHEL5. In = RHEL5, >> we are able to specify Buildroot directory >> to be: target/ambari/rpm/BUILD, but SUSE's rpmbuild has a regression >> to force the build root directory to: >>=20 >> target/ambari/rpm/BUILDROOT. >>=20 >> This regression is documented here: >>=20 >> https://bugzilla.novell.com/show_bug.cgi?id=3D683874 >>=20 >> I will add a workaround to specify = --buildroot=3Dtarget/ambari/rpm/BUILD >> in this jira: >>=20 >> https://issues.apache.org/jira/browse/AMBARI-173 >>=20 >> Thanks for the report. >>=20 >> regards, >> Eric >>=20 >> On Thu, Dec 22, 2011 at 2:37 AM, RohithSharma = >> wrote: >>> Hi Eric, >>>=20 >>>> Can you find the rpm .spec file in target directory and paste it = here? >>> okay.. I am pasting complete file content here.Please let me know if = u > get >>> any hint of what has gone wrong. >>>=20 >>> -------------------------------------------------------------- >>> # Licensed to the Apache Software Foundation (ASF) under one or = more >>> # contributor license agreements. See the NOTICE file distributed = with >>> # this work for additional information regarding copyright = ownership. >>> # The ASF licenses this file to You under the Apache License, = Version >> 2.0 >>> # (the "License"); you may not use this file except in compliance = with >>> # the License. You may obtain a copy of the License at >>> # >>> # http://www.apache.org/licenses/LICENSE-2.0 >>> # >>> # Unless required by applicable law or agreed to in writing, = software >>> # distributed under the License is distributed on an "AS IS" = BASIS, >>> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or >> implied. >>> # See the License for the specific language governing permissions = and >>> # limitations under the License. >>>=20 >>> # >>> # RPM Spec file for HBase version 0.1.0 >>> # >>>=20 >>> %define name ambari-agent >>> %define version 0.1.0 >>> %define release 1 >>>=20 >>> # Installation Locations >>> %define _final_name ambari-agent-0.1.0 >>> %define _prefix /usr >>> %define _bin_dir %{_prefix}/bin >>> %define _conf_dir /etc/ambari >>> %define _include_dir %{_prefix}/include >>> %define _lib_dir %{_prefix}/lib >>> %define _lib64_dir %{_prefix}/lib64 >>> %define _libexec_dir %{_prefix}/libexec >>> %define _log_dir /var/log/ambari >>> %define _man_dir %{_prefix}/man >>> %define _pid_dir /var/run/ambari >>> %define _sbin_dir %{_prefix}/sbin >>> %define _share_dir %{_prefix}/share/ambari >>> %define _src_dir %{_prefix}/src >>> %define _var_dir %{_prefix}/var/lib >>>=20 >>> # Build time settings >>> %define _build_dir >>> = /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD >>> %define debug_package %{nil} >>>=20 >>> Summary: Hadoop Management System Agent >>> License: Apache License, Version 2.0 >>> URL: http://incubator.apache.org/ambari >>> Vendor: Apache Software Foundation >>> Group: Development/Libraries >>> Name: %{name} >>> Version: %{version} >>> Release: %{release} >>> Source0: %{_final_name}.tar.gz >>> Prefix: %{_bin_dir} >>> Prefix: %{_conf_dir} >>> Prefix: %{_log_dir} >>> Prefix: %{_pid_dir} >>> Buildroot: %{_build_dir} >>> Requires: sh-utils, textutils, /usr/sbin/useradd, /usr/sbin/usermod, >>> /sbin/chkconfig, /sbin/service, transmission-cli, zkpython, > zookeeper-lib, >>> BitTorrent-bencode, mimerender, simplejson, mimeparse, web.py, >>> python-setuptools, libevent >=3D 2.0.10, avahi-tools, = python-iniparse, >>> /sbin/ethtool >>> AutoReqProv: no >>> Provides: ambari-agent >>>=20 >>> %description >>> Ambari Agent manage software installation and configuration for = Hadoop >>> software stack. >>>=20 >>> %prep >>>=20 >>> %setup -D -a 0 -n usr >>>=20 >>> %build >>> if [ -d ${RPM_BUILD_DIR}%{_log_dir} ]; then >>> rm -rf ${RPM_BUILD_DIR}%{_log_dir} >>> fi >>>=20 >>> if [ -d ${RPM_BUILD_DIR}%{_conf_dir} ]; then >>> rm -rf ${RPM_BUILD_DIR}%{_conf_dir} >>> fi >>>=20 >>> if [ -d ${RPM_BUILD_DIR}%{_pid_dir} ]; then >>> rm -rf ${RPM_BUILD_DIR}%{_pid_dir} >>> fi >>>=20 >>> mkdir -p ${RPM_BUILD_DIR}%{_conf_dir} >>> mkdir -p ${RPM_BUILD_DIR}%{_log_dir} >>> mkdir -p ${RPM_BUILD_DIR}%{_conf_dir} >>> mkdir -p ${RPM_BUILD_DIR}/etc/init.d >>>=20 >>> cp ${RPM_BUILD_DIR}/../../../../src/packages/rpm/init.d/ambari-agent >>> ${RPM_BUILD_DIR}/etc/init.d/ambari-agent >>> chmod 0755 ${RPM_BUILD_DIR}/etc/init.d/ambari-agent >>>=20 >>> %preun >>> rm -rf /etc/default/ambari-agent-env.sh >>>=20 >>> %pre >>> getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -g = 123 > -r >>> hadoop >>> /usr/sbin/useradd --comment "Ambari" -u 210 --shell /bin/bash -M -r >> --groups >>> hadoop --home /home/ambari ambari 2> /dev/null || : >>>=20 >>> %post >>> mkdir -p ${RPM_INSTALL_PREFIX2} >>> mkdir -p ${RPM_INSTALL_PREFIX3} >>> echo "AMBARI_LOG_DIR=3D${RPM_INSTALL_PREFIX2}" > >>> /etc/default/ambari-agent-env.sh >>> echo "AMBARI_PID_DIR=3D${RPM_INSTALL_PREFIX3}" >> >>> /etc/default/ambari-agent-env.sh >>> mkdir -p /home/ambari/var/tmp >>> mkdir -p /home/ambari/var/cache/downloads >>> mkdir -p /home/ambari/apps >>>=20 >>> %files >>> %defattr(-,root,root) >>> %{_prefix} >>> /etc/init.d/ambari-agent >>> %config %{_conf_dir} >>> ---------------------------------------------------------------- >>>=20 >>>=20 >>>=20 >>> Thanks & Regards >>> Rohith Sharma K S >>>=20 >>>=20 >>> -----Original Message----- >>> From: Eric Yang [mailto:eric818@gmail.com] >>> Sent: Thursday, December 22, 2011 1:41 PM >>> To: ambari-dev@incubator.apache.org; rohithsharmaks@huawei.com >>> Subject: Re: Build Error while running build script >>>=20 >>> The script is automatically generated by rpmbuild command. What >>> should have happen is >>>=20 >>> mkdir $RPM_BUILD_ROOT >>>=20 >>> then shell script should untar the >>> ambari-agent-0.1.0.linux-i686.tar.gz because this >>> tarball contains usr structure. >>>=20 >>> However, it looks like the script is missing the untar command = because >>> rpmbuild >>> python script can not find Source0 tag from rpm spec file. >>> Can you find the rpm .spec file in target directory and paste it = here? >>> It would give us more data point to find out what went wrong. >>>=20 >>> Thanks >>>=20 >>> regards, >>> Eric >>>=20 >>> On Wed, Dec 21, 2011 at 10:46 PM, RohithSharma >>> wrote: >>>> Hi Eric, >>>>=20 >>>>> Could you check target/ambari-agent-0.1.0/dist and see if there is = a >>>>> tarball? >>>>=20 >>>> No Eric, there is no file present under >>>> agent/target/ambari-agent-0.1.0/dist, but >>>> we have a tarball ambari-agent-0.1.0.linux-i686.tar.gz in under = target >>>> folder inside agent. >>>>=20 >>>>=20 >>>> I would like to add my suspection here, >>>>=20 >>>> we are inside >>>> = "/home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD" >>>> which is RPM_BUILD_ROOT. >>>> then we are deleting and creating $RPM_BUILD_ROOT directory only, = not > the >>>> usr directory inside it. >>>> then we are trying cd usr, >>>>=20 >>>> I feel this part of the script is the problem... correct me, if I = am >> wrong >>>>=20 >>>>=20 >>>>>=20 > = RPM_BUILD_ROOT=3D"/home/isap/.hudson/jobs/Ambari/workspace/agent/target/rp= m >> / >>> a >>>> mbari/BUILD" >>>>> export RPM_BUILD_ROOT >>>>> set -x >>>>> umask 022 >>>>> cd >>>> = "/home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD" >>>>> /bin/rm -rf "$RPM_BUILD_ROOT" >>>>> /bin/mkdir -p `dirname "$RPM_BUILD_ROOT"` >>>>> /bin/mkdir "$RPM_BUILD_ROOT" >>>>>=20 >>>>> cd 'usr' >>>>=20 >>>>=20 >>>> Thanks & Regards >>>>=20 >>>> Rohith Sharma K S >>>>=20 >>>>=20 >>>> -----Original Message----- >>>> From: Eric Yang [mailto:eric818@gmail.com] >>>> Sent: Thursday, December 22, 2011 11:37 AM >>>> To: ambari-dev@incubator.apache.org; rohithsharmaks@huawei.com >>>> Subject: Re: Build Error while running build script >>>>=20 >>>> I think I have some clue why this is happening. >>>> We are using python setup tools to generate a tarball which = contains >>>> binaries for the compiled OS. On redhat, it would >>>> generate a tarball with filename pattern: >>> ambari-agent-0.1.0-linux-*.tar.gz >>>>=20 >>>> It appears that on SUSE, it may not be following the same filename >>>> pattern. When rpmbuild process tries to expand the >>>> source tarball, it doesn't exist. Hence the follow up action to = "cd > usr" >>>> fails. >>>>=20 >>>> Could you check target/ambari-agent-0.1.0/dist and see if there is = a >>>> tarball? It would help us to refine the file name pattern >>>> to match the source tarball for rpm to repackage. Thanks >>>>=20 >>>> regards, >>>> Eric >>>>=20 >>>> On Wed, Dec 21, 2011 at 8:51 PM, RohithSharma > >>>> wrote: >>>>> Hi Eric, >>>>>=20 >>>>> Thanks for the quick response. >>>>>=20 >>>>>> Is Python executable located outside of /usr? >>>>> No Eric, Python is installed in /usr itself. >>>>>=20 >>>>>> The rpm spec file expect the output of artifact to live in a = directory >>>>>> called usr. Python output on suse is generated outside of usr. >>>>>=20 >>>>> In my machine, the Python output is generated inside usr = (stacktrace >>>>> attached), but I am not sure why this problem still persists and = fails >>>> with >>>>> [rpm] RPM build errors: >>>>> [rpm] + cd usr >>>>> [rpm] /var/tmp/rpm-tmp.94888: line 26: cd: usr: No such file = or >>>>> directory >>>>>=20 >>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>=20 > = __________________________________________________________________________= __ >>>>>=20 >>>>> The snippet from var/tmp/rpm-tmp.94888 script which is failing = giving >> the >>>>> above error. >>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>=20 > = RPM_BUILD_ROOT=3D"/home/isap/.hudson/jobs/Ambari/workspace/agent/target/rp= m/am >>>>> bari/BUILD" >>>>> export RPM_BUILD_ROOT >>>>> set -x >>>>> umask 022 >>>>> cd >>>> = "/home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD" >>>>> /bin/rm -rf "$RPM_BUILD_ROOT" >>>>> /bin/mkdir -p `dirname "$RPM_BUILD_ROOT"` >>>>> /bin/mkdir "$RPM_BUILD_ROOT" >>>>>=20 >>>>> cd 'usr' >>>>> if [ -d ${RPM_BUILD_DIR}/var/log/ambari ]; then >>>>> rm -rf ${RPM_BUILD_DIR}/var/log/ambari >>>>> fi >>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>=20 > = __________________________________________________________________________= __ >>>>>=20 >>>>>=20 >>>>> Additional trace: >>>>>=20 >>>>> [rpm] -rw-r--r-- root/root 10613 2011-12-21 14:23 >>>>> = ./usr/local/lib/python2.6/site-packages/ambari_component/package.py >>>>> [rpm] -rw-r--r-- root/root 1667 2011-12-21 14:23 >>>>> = ./usr/local/lib/python2.6/site-packages/ambari_component/__init__.pyc >>>>> [rpm] -rw-r--r-- root/root 1751 2011-12-21 14:23 >>>>> ./usr/local/lib/python2.6/site-packages/ambari_component/main.py >>>>> [rpm] drwxr-xr-x root/root 0 2011-12-21 14:23 >>>> ./usr/local/bin/ >>>>>=20 >>>>> [rpm] -rwxr-xr-x root/root 295 2011-12-21 14:23 >>>>> ./usr/local/bin/ambari-agent >>>>> [rpm] -rwxr-xr-x root/root 317 2011-12-21 14:23 >>>>> ./usr/local/bin/ambari-torrent-callback >>>>> [rpm] ++ /usr/bin/id -u >>>>> [rpm] + '[' 0 =3D 0 ']' >>>>> [rpm] + /bin/chgrp -Rhf root . >>>>> [rpm] + /bin/chmod -Rf a+rX,u+w,g-w,o-w . >>>>> [rpm] + exit 0 >>>>> [rpm] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.94888 >>>>> [rpm] + umask 022 >>>>> [rpm] + cd >>>>> = /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD >>>>> [rpm] + /bin/rm -rf >>>>> = /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD >>>>> [rpm] ++ dirname >>>>> = /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD >>>>> [rpm] + /bin/mkdir -p >>>>> /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari >>>>> [rpm] + /bin/mkdir >>>>> = /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD >>>>> [rpm] >>>>> [rpm] >>>>> [rpm] RPM build errors: >>>>> [rpm] + cd usr >>>>>=20 >>>>=20 >>>=20 >>=20 > = __________________________________________________________________________= __ >>>>>=20 >>>>> Thanks & Regards >>>>>=20 >>>>> Rohith Sharma K S >>>>>=20 >>>>>=20 >>>>>=20 >>>>> -----Original Message----- >>>>> From: Eric Yang [mailto:eric818@gmail.com] >>>>> Sent: Wednesday, December 21, 2011 10:31 PM >>>>> To: ambari-dev@incubator.apache.org >>>>> Subject: Re: Build Error while running build script >>>>>=20 >>>>> Rpm build is design to build on redhat only. Is Python executable >>> located >>>>> outside of /usr? The rpm spec file expect the output of artifact = to >> live >>>> in >>>>> a directory called usr. Python output on suse is generated = outside of >>>> usr. >>>>> Hence the build procedure fails. There should be debian and suse >> package >>>>> build process in the future, but the project is not there yet. = There > is >>>>> also plan to make one artifact for all components. It may be a = while >>>> before >>>>> Debian and suse are supported. >>>>>=20 >>>>> Sent from my iPhone >>>>>=20 >>>>> On Dec 21, 2011, at 4:53 AM, RohithSharma = >>>> wrote: >>>>>=20 >>>>>> Hi >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> Thank you for response..! >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> I am trying to build on LInux : SuSe-11 SP0 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> Thanks & Regards >>>>>>=20 >>>>>> RohithSharma K S >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> From: Ahmed Fathalla [mailto:afathalla@gmail.com] >>>>>> Sent: Wednesday, December 21, 2011 4:30 PM >>>>>> To: ambari-dev@incubator.apache.org; rohithsharmaks@huawei.com >>>>>> Subject: Re: Build Error while running build script >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> This happened to me when I tried to build the rpm on Ubuntu, are = you >>>> using >>>>> a >>>>>> Debian based system? >>>>>>=20 >>>>>> On Wed, Dec 21, 2011 at 12:45 PM, RohithSharma >>>> >>>>>> wrote: >>>>>>=20 >>>>>> Hi Everyone, >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> I am trying to build Ambari from svn following instructions = given in >>>>>> read me, as there is no Ambari distribution available in the = Apache. >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> Following are the steps performed >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> Installed Python2.6 and its dependencies. >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> Executed the command "mvn clean package -P rpm -DskipTests -X" in = the >>>>>> Ambari_Home folder. >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> While RPM task execution , it failed. Appreciate if you can tell = me >>> what >>>>>> I'm doing wrong >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> [rpm] -rwxr-xr-x root/root 295 2011-12-21 14:23 >>>>>> ./usr/local/bin/ambari-agent >>>>>> [rpm] -rwxr-xr-x root/root 317 2011-12-21 14:23 >>>>>> ./usr/local/bin/ambari-torrent-callback >>>>>> [rpm] ++ /usr/bin/id -u >>>>>> [rpm] + '[' 0 =3D 0 ']' >>>>>> [rpm] + /bin/chgrp -Rhf root . >>>>>> [rpm] + /bin/chmod -Rf a+rX,u+w,g-w,o-w . >>>>>> [rpm] + exit 0 >>>>>> [rpm] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.94888 >>>>>> [rpm] + umask 022 >>>>>> [rpm] + cd >>>>>> = /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD >>>>>> [rpm] + /bin/rm -rf >>>>>> = /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD >>>>>> [rpm] ++ dirname >>>>>> = /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD >>>>>> [rpm] + /bin/mkdir -p >>>>>> /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari >>>>>> [rpm] + /bin/mkdir >>>>>> = /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD >>>>>> [rpm] >>>>>> [rpm] >>>>>> [rpm] RPM build errors: >>>>>> [rpm] + cd usr >>>>>> [rpm] /var/tmp/rpm-tmp.94888: line 26: cd: usr: No such file = or >>>>>> directory >>>>>> [rpm] error: Bad exit status from /var/tmp/rpm-tmp.94888 = (%build) >>>>>> [rpm] Bad exit status from /var/tmp/rpm-tmp.94888 (%build) >>>>>> [INFO] >>>>>>=20 >> = ------------------------------------------------------------------------ >>>>>> [INFO] Reactor Summary: >>>>>> [INFO] >>>>>> [INFO] agent ............................................. = FAILURE >>>>> [19.360s] >>>>>>=20 >>>>>> [INFO] ambari ............................................ = SKIPPED >>>>>> [INFO] client ............................................ = SKIPPED >>>>>> [INFO] controller ........................................ = SKIPPED >>>>>> [INFO] >>>>>>=20 >> = ------------------------------------------------------------------------ >>>>>> [INFO] BUILD FAILURE >>>>>> [INFO] >>>>>>=20 >> = ------------------------------------------------------------------------ >>>>>> [INFO] Total time: 20.854s >>>>>> [INFO] Finished at: Wed Dec 21 14:23:14 IST 2011 >>>>>> [INFO] Final Memory: 5M/15M >>>>>> [INFO] >>>>>>=20 >> = ------------------------------------------------------------------------ >>>>>> [ERROR] Failed to execute goal >>>>>> org.apache.maven.plugins:maven-antrun-plugin:1.6:run (build-rpm) = on >>>>> project >>>>>> ambari-agent: An Ant BuildException has occured: The following = error >>>>>> occurred while executing this line: >>>>>> [ERROR] >>>>>>=20 >>> = /home/isap/.hudson/jobs/Ambari/workspace/agent/src/packages/build.xml:94: >>>>>> '/usr/bin/rpmbuild' failed with exit code 1 >>>>>> [ERROR] -> [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: >>>>>> [ERROR] [Help 1] >>>>>>=20 > = http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> Thanks & Regards >>>>>>=20 >>>>>> Rohith Sharma K S >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> -- >>>>>> Ahmed Fathalla >>>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>=20 >=20