HAD-665. Package SE "Toolbox" scripts
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/5171af33 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/5171af33 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/5171af33 Branch: refs/heads/master Commit: 5171af334eebcc1a7fd4f83d373ef7f608a14eae Parents: 6adc1d9 Author: Konstantin Boudnik <[email protected]> Authored: Thu Apr 24 14:02:42 2014 -0700 Committer: Konstantin Boudnik <[email protected]> Committed: Thu Apr 24 14:02:42 2014 -0700 ---------------------------------------------------------------------- .../SPECS/wdd-namenode-nonstop.spec | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/5171af33/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 5662b9f..ca3d867 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 @@ -37,6 +37,8 @@ AutoReq: no %define conf_checkpoints %{etc_hadoop}/checkpoints.nonstop %define server_jars server/target %define client_jars client/target +%define toolbox_scripts toolbox +%define lib_toolbox_dirname %{lib_hadoop_dirname}/toolbox %global initd_dir %{_sysconfdir}/rc.d/init.d @@ -68,6 +70,15 @@ Requires: hadoop-hdfs %description server A set of WANdisco Non-Stop namenode libraries required for client applications +%package toolbox +Summary: A set of diagnostic tools for Non-Stop HDFS namenode. +Group: Development/Tools +Requires: hadoop-hdfs + +%description toolbox +A set of diagnostic tools introduced as a stop-gap measure until the fully +functional admin UI is provided + %prep %setup -n %{artifactname}-%{wdd_namenode_nonstop_base_version} @@ -91,6 +102,12 @@ rm -rf $RPM_BUILD_ROOT %__install -m 0755 %{SOURCE14} $RPM_BUILD_ROOT/%{lib_hadoop}/sbin %__install -m 0755 %{SOURCE15} $RPM_BUILD_ROOT/%{lib_hadoop}/sbin +## toolboxing +%__install -d -m 0755 $RPM_BUILD_ROOT/%{lib_toolbox_dirname}/bin +%__install -m 0755 %{toolbox_scripts}/*.sh $RPM_BUILD_ROOT/%{lib_toolbox_dirname}/bin +%__install -m 0755 %{toolbox_scripts}/function* $RPM_BUILD_ROOT/%{lib_toolbox_dirname}/bin +%__install -m 0755 %{toolbox_scripts}/README $RPM_BUILD_ROOT/%{lib_toolbox_dirname} + ## Product specific lib %__install -m 0644 %{server_jars}/%{artifactname}-server-%{wdd_namenode_nonstop_base_version}.jar $RPM_BUILD_ROOT/%{lib_hdfs} %__install -m 0644 %{client_jars}/%{artifactname}-client-%{wdd_namenode_nonstop_base_version}.jar $RPM_BUILD_ROOT/%{lib_hdfs} @@ -214,7 +231,13 @@ rm -f %{lib_hadoop}/sbin/hadoop-nonstop-daemon.sh %files client %{lib_hdfs}/%{artifactname}-client-%{wdd_namenode_nonstop_base_version}.jar +%files toolbox +%attr(0755,root,root) +%{lib_toolbox_dirname} + %changelog +* Thu Apr 24 2014 Konstantin Boudnik <[email protected]> +- HAD-665. Package SE "Toolbox" scripts * Thu Apr 21 2014 Konstantin Boudnik <[email protected]> - HAD-666. hadoop-nonstop-daemon.sh shall be cleaned up during uninstall * Thu Mar 6 2014 Konstantin Boudnik <[email protected]>
