I checkout bigtop release-1.2.1 tag from git. We are using a centos docker image and im executing the "./gralde zookeeper-sprm" and "./gradlew ranger-srpm" command which fail due to the macros has empty body error
On Mon 13 Aug, 2018, 9:29 PM Evans Ye, <[email protected]> wrote: > I just tried using centos 7 build image and it looks good to me. > Please share your build command and environment. Thanks. > > --- > [root@c72b8cb47c34 ws]# ./gradlew zookeeper-srpm > Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use > --status for details > Download https://archive.apache.org/dist//zookeeper/zookeeper-3.4. > 6/zookeeper-3.4.6.tar.gz > > > Task :zookeeper-tar > Copy /ws/dl/zookeeper-3.4.6.tar.gz to /ws/build/zookeeper/tar/ > zookeeper-3.4.6.tar.gz > > > Task :zookeeper-srpm > Wrote: /ws/build/zookeeper/rpm/SRPMS/zookeeper-3.4.6-1.el7.src.rpm > > > BUILD SUCCESSFUL in 17s > > Taher Koitawala <[email protected]> 於 2018年8月13日 週一 下午7:04寫道: > >> Hi All, >> I am currently trying to build Apache Ranger's rpm with Bigtop. >> However, the build in jenkins fails due to the following error >> >> >> *./gradlew ranger-srpm* >> >> Command rpmbuild --define _topdir /home/cloud/bigtop/build/ranger/rpm >> --define ranger_base_version 0.7.1 --define ranger_version 0.7.1 --define >> ranger_release 1%{?dist} -bs --nodeps --buildroot=/home/cloud/ >> bigtop/build/ranger/rpm/INSTALL /home/cloud/bigtop/build/ >> ranger/rpm/SPECS/ranger.spec >> >> Command exited with error status 1 >> >> When I execute the same command manually I get the following errors: >> >> Error: >> Macro %_topdir has empty body >> Macro %_topdir has empty body >> Macro %_topdir has empty body >> Macro %ranger_base_version has empty body >> Macro %ranger_base_version has empty body >> Macro %ranger_version has empty body >> Macro %ranger_version has empty body >> Macro %ranger_release has empty body >> Macro %ranger_release has empty body >> >> I get the same error when i execute *./graldew zookeeper-srpm *and even >> when *./graldew ambari-srpm* to check if native bitgtop defined >> packaging works. I am using Bigtop 1.2.1 >> >> Regards, >> Taher Koitawala >> GS Lab Pune >> +91 8407979163 >> >
