Hi Eric,
Thanks for the quick response.
>Is Python executable located outside of /usr?
No Eric, Python is installed in /usr itself.
>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.
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
____________________________________________________________________________
The snippet from var/tmp/rpm-tmp.94888 script which is failing giving the
above error.
RPM_BUILD_ROOT="/home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/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"
cd 'usr'
if [ -d ${RPM_BUILD_DIR}/var/log/ambari ]; then
rm -rf ${RPM_BUILD_DIR}/var/log/ambari
fi
____________________________________________________________________________
Additional trace:
[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/
[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 = 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
____________________________________________________________________________
Thanks & Regards
Rohith Sharma K S
-----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
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.
Sent from my iPhone
On Dec 21, 2011, at 4:53 AM, RohithSharma <rohithsharmaks@huawei.com> wrote:
> Hi
>
>
>
> Thank you for response..!
>
>
>
> I am trying to build on LInux : SuSe-11 SP0
>
>
>
>
>
> Thanks & Regards
>
> RohithSharma K S
>
>
>
>
>
> 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
>
>
>
> This happened to me when I tried to build the rpm on Ubuntu, are you using
a
> Debian based system?
>
> On Wed, Dec 21, 2011 at 12:45 PM, RohithSharma <rohithsharmaks@huawei.com>
> wrote:
>
> Hi Everyone,
>
>
>
> I am trying to build Ambari from svn following instructions given in
> read me, as there is no Ambari distribution available in the Apache.
>
>
>
> Following are the steps performed
>
>
>
> Installed Python2.6 and its dependencies.
>
>
>
> Executed the command "mvn clean package -P rpm -DskipTests -X" in the
> Ambari_Home folder.
>
>
>
> While RPM task execution , it failed. Appreciate if you can tell me what
> I'm doing wrong
>
>
>
> [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 = 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]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] agent ............................................. FAILURE
[19.360s]
>
> [INFO] ambari ............................................ SKIPPED
> [INFO] client ............................................ SKIPPED
> [INFO] controller ........................................ SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 20.854s
> [INFO] Finished at: Wed Dec 21 14:23:14 IST 2011
> [INFO] Final Memory: 5M/15M
> [INFO]
> ------------------------------------------------------------------------
> [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]
> /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]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
>
>
>
>
>
> Thanks & Regards
>
> Rohith Sharma K S
>
>
>
>
> --
> Ahmed Fathalla
>
|