HAD-657. NsNN service isn't properly registered following HAD-620 split.
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/d7f7d717 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/d7f7d717 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/d7f7d717 Branch: refs/heads/master Commit: d7f7d717b0bf6305d9c32a30f819d5ac5900ff20 Parents: ab846a2 Author: Konstantin Boudnik <[email protected]> Authored: Mon Feb 24 13:16:01 2014 -0800 Committer: Konstantin Boudnik <[email protected]> Committed: Mon Feb 24 13:16:01 2014 -0800 ---------------------------------------------------------------------- .../rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/d7f7d717/bigtop-packages/src/rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec b/bigtop-packages/src/rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec index eed4378..a640a06 100644 --- a/bigtop-packages/src/rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec +++ b/bigtop-packages/src/rpm/wdd-namenode-nonstop/SPECS/wdd-namenode-nonstop.spec @@ -128,7 +128,7 @@ done %clean rm -rf $RPM_BUILD_ROOT -%post +%post server ## FIXME: This is awful hack. But I don't see a better way around it at the moment sed -e 's#namenode|secondarynamenode|datanode|journalnode|dfs|dfsadmin|fsck|balancer|zkfc)#nonstop|wan)#' -e 's#hdfsScript="$HADOOP_PREFIX"/bin/hdfs#hdfsScript="$HADOOP_PREFIX"/bin/nonstop#' -e 's#hdfsScript="$HADOOP_HDFS_HOME"/bin/hdfs#hdfsScript="$HADOOP_HDFS_HOME"/bin/nonstop#' %{lib_hadoop}/sbin/hadoop-daemon.sh > %{lib_hadoop}/sbin/hadoop-nonstop-daemon.sh %__chmod 755 %{lib_hadoop}/sbin/hadoop-nonstop-daemon.sh @@ -144,7 +144,7 @@ do fi done -%preun +%preun server [ -f %{initd_dir}/hadoop-hdfs-namenode.orig ] && \ (rm -f %{initd_dir}/hadoop-hdfs-namenode; \ mv -f %{initd_dir}/hadoop-hdfs-namenode.orig %{initd_dir}/hadoop-hdfs-namenode) @@ -210,6 +210,8 @@ done %{lib_hdfs}/%{artifactname}-client-%{wdd_namenode_nonstop_base_version}.jar %changelog +* Thu Feb 24 2014 Konstantin Boudnik <[email protected]> +- HAD-657. %post and %preun scripts should be package-specific * Thu Feb 20 2014 Konstantin Boudnik <[email protected]> - HAD-620. Splitting server and client packages * Thu Jan 23 2014 Konstantin Boudnik <[email protected]>
