Author: rvs
Date: Tue Apr 17 17:29:14 2012
New Revision: 1327197
URL: http://svn.apache.org/viewvc?rev=1327197&view=rev
Log:
BIGTOP-534. Need init.d script for zkfc
Added:
incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-hdfs-zkfc.svc
Modified:
incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/control
incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/rules
incubator/bigtop/trunk/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
Added:
incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-hdfs-zkfc.svc
URL:
http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-hdfs-zkfc.svc?rev=1327197&view=auto
==============================================================================
---
incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-hdfs-zkfc.svc
(added)
+++
incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-hdfs-zkfc.svc
Tue Apr 17 17:29:14 2012
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+HADOOP_NAME="zkfc"
+DAEMON="hadoop-hdfs-$HADOOP_NAME"
+DESC="Hadoop $HADOOP_NAME"
+EXEC_PATH="/usr/lib/hadoop/sbin/hadoop-daemon.sh"
+SVC_USER="hdfs"
+DAEMON_FLAGS="$HADOOP_NAME"
+CONF_DIR="/etc/hadoop/conf"
+PIDFILE="/var/run/hadoop-hdfs/hadoop-$SVC_USER-$HADOOP_NAME.pid"
+LOCKFILE="/var/lock/subsys/hadoop-$HADOOP_NAME"
+
+CHKCONFIG="2345 85 15"
+INIT_DEFAULT_START="3 4 5"
+INIT_DEFAULT_STOP="0 1 2 6"
Modified: incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/control
URL:
http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/control?rev=1327197&r1=1327196&r2=1327197&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/control (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/control Tue Apr 17
17:29:14 2012
@@ -159,6 +159,17 @@ Description: Secondary Name Node for Had
It is _not_ a failover pair for the namenode, and may safely be run on the
same machine.
+Package: hadoop-hdfs-zkfc
+Provides: hadoop-hdfs-zkfc
+Architecture: all
+Depends: hadoop-hdfs (= ${source:Version})
+Description: Hadoop HDFS failover controller
+ The Hadoop HDFS failover controller is a ZooKeeper client which also
+ monitors and manages the state of the NameNode. Each of the machines
+ which runs a NameNode also runs a ZKFC, and that ZKFC is responsible
+ for: Health monitoring, ZooKeeper session management, ZooKeeper-based
+ election.
+
Package: hadoop-hdfs-datanode
Provides: hadoop-hdfs-datanode
Architecture: all
Modified: incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/rules
URL:
http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/rules?rev=1327197&r1=1327196&r2=1327197&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/rules (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/rules Tue Apr 17
17:29:14 2012
@@ -79,7 +79,7 @@ install: build
# Run dh_lintian if we've got it - this doesn't exist on debhelper 6 (eg
Ubuntu Hardy)
(dh_lintian) || /bin/true
-hadoop_svcs=hdfs-namenode hdfs-secondarynamenode hdfs-datanode \
+hadoop_svcs=hdfs-namenode hdfs-secondarynamenode hdfs-datanode hdfs-zkfc \
yarn-resourcemanager yarn-nodemanager yarn-proxyserver \
mapreduce-historyserver httpfs
Modified:
incubator/bigtop/trunk/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
URL:
http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec?rev=1327197&r1=1327196&r2=1327197&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
(original)
+++ incubator/bigtop/trunk/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec Tue
Apr 17 17:29:14 2012
@@ -56,7 +56,7 @@
%define doc_hadoop %{_docdir}/%{name}-%{hadoop_version}
%define httpfs_services httpfs
%define mapreduce_services mapreduce-historyserver
-%define hdfs_services hdfs-namenode hdfs-secondarynamenode hdfs-datanode
+%define hdfs_services hdfs-namenode hdfs-secondarynamenode hdfs-datanode
hdfs-zkfc
%define yarn_services yarn-resourcemanager yarn-nodemanager yarn-proxyserver
%define hadoop_services %{hdfs_services} %{mapreduce_services}
%{yarn_services} %{httpfs_services}
# Hadoop outputs built binaries into %{hadoop_build}
@@ -160,6 +160,7 @@ Source19: mapreduce.default
Source20: hdfs.default
Source21: yarn.default
Source22: hadoop-layout.sh
+Source23: hadoop-hdfs-zkfc.svc
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id} -u -n)
BuildRequires: python >= 2.4, git, fuse-devel,fuse, automake, autoconf
Requires: coreutils, /usr/sbin/useradd, /usr/sbin/usermod, /sbin/chkconfig,
/sbin/service, bigtop-utils, zookeeper >= 3.4.0
@@ -274,6 +275,18 @@ The Secondary Name Node periodically com
into a checkpoint. This compaction ensures that Name Node restarts
do not incur unnecessary downtime.
+%package hdfs-zkfc
+Summary: Hadoop HDFS failover controller
+Group: System/Daemons
+Requires: %{name}-hdfs = %{version}-%{release}
+Requires(pre): %{name} = %{version}-%{release}
+
+%description hdfs-zkfc
+The Hadoop HDFS failover controller is a ZooKeeper client which also
+monitors and manages the state of the NameNode. Each of the machines
+which runs a NameNode also runs a ZKFC, and that ZKFC is responsible
+for: Health monitoring, ZooKeeper session management, ZooKeeper-based
+election.
%package hdfs-datanode
Summary: Hadoop Data Node
@@ -623,6 +636,7 @@ fi
%service_macro hdfs-namenode
%service_macro hdfs-secondarynamenode
+%service_macro hdfs-zkfc
%service_macro hdfs-datanode
%service_macro yarn-resourcemanager
%service_macro yarn-nodemanager