You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Shrijeet Paliwal (Commented) (JIRA)" <ji...@apache.org> on 2012/04/20 20:56:44 UTC
[jira] [Commented] (HBASE-5846) HBase rpm packing is broken at
multiple places
[ https://issues.apache.org/jira/browse/HBASE-5846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258467#comment-13258467 ]
Shrijeet Paliwal commented on HBASE-5846:
-----------------------------------------
Here is what happens if one runs update :
{noformat}
D: install: %post(hbase-0.92.1-2.x86_64) synchronous scriptlet start
D: install: %post(hbase-0.92.1-2.x86_64) execv(/bin/sh) pid 26772
+ /usr/share/hbase/sbin/update-hbase-env.sh --prefix=/usr --bin-dir=/usr/bin --conf-dir=/etc/hbase --log-dir=/var/log/hbase --pid-dir=/var/run/hbase
D: install: waitpid(26772) rc 26772 status 0 secs 0.038
D: ========== --- hbase-0.92.1-1 x86_64-linux 0x0
D: erase: hbase-0.92.1-1 has 224 files, test = 0
D: erase: %preun(hbase-0.92.1-1.x86_64) asynchronous scriptlet start
D: erase: %preun(hbase-0.92.1-1.x86_64) execv(/bin/sh) pid 26819
+ /usr/share/hbase/sbin/update-hbase-env.sh --prefix=/usr --bin-dir=/usr/bin --conf-dir=/etc/hbase --log-dir=/var/log/hbase --pid-dir=/var/run/hbase --uninstall
{noformat}
This is out put of rpm -Uvv . Note how install post runs followed by preun . preun erases all the work that was done by install post.
> HBase rpm packing is broken at multiple places
> ----------------------------------------------
>
> Key: HBASE-5846
> URL: https://issues.apache.org/jira/browse/HBASE-5846
> Project: HBase
> Issue Type: Bug
> Components: build
> Affects Versions: 0.92.1
> Environment: CentOS release 5.7 (Final)
> Reporter: Shrijeet Paliwal
>
> Here is how I executed rpm build:
> {noformat}
> MAVEN_OPTS="-Xmx2g" mvn clean package assembly:single -Prpm -DskipTests
> {noformat}
> The issues with the rpm build are:
> * There is no clean (%clean) section in the hbase.spec file . Last run can leave stuff in RPM_BUILD_ROOT which in turn will fail build. As a fix I added 'rm -rf $RPM_BUILD_ROOT' to %clean section
> * The Buildroot is set to _build_dir . The build fails with this error.
> {noformat}
> cp: cannot copy a directory, `/data/9adda425-1f1e-4fe5-8a53-83bd2ce5ad45/app/jenkins/workspace/hbase.92/target/rpm/hbase/BUILD', into itself, `/data/9adda425-1f1e-4fe5-8a53-83bd2ce5ad45/app/jenkins/workspace/hbase.92/target/rpm/hbase/BUILD/BUILD'
> {noformat}
> If we set it to ' %{_tmppath}/%{name}-%{version}-root' build passes
> * The src/packages/update-hbase-env.sh script will leave inconsistent state if 'yum update hbase' is executed. It deletes data from /etc/init.d/hbase* and does not put scripts back during update.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira