FreeBSD Bugzilla – Attachment 163082 Details for
Bug 204514
devel/hadoop2: Create rc.d script for ZKFC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Hadoop 2.7.1_1 with zkfailovercontroller rc.d script
hadoop2_2.7.1_1.diff (text/plain), 2.01 KB, created by
Johannes Jost Meixner
on 2015-11-13 08:39:44 UTC
(
hide
)
Description:
Hadoop 2.7.1_1 with zkfailovercontroller rc.d script
Filename:
MIME Type:
Creator:
Johannes Jost Meixner
Created:
2015-11-13 08:39:44 UTC
Size:
2.01 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 400934) >+++ Makefile (working copy) >@@ -7,6 +7,7 @@ > # no problems encountered so far. Thanks. > PORTNAME= hadoop > PORTVERSION= 2.7.1 >+PORTREVISION= 1 > CATEGORIES= devel java > MASTER_SITES= APACHE/${PORTNAME}/common/stable \ > LOCAL/demon/:maven \ >@@ -56,7 +57,7 @@ > GROUPS= ${HADOOP_GROUP} > > SUB_FILES= hadoop-layout.sh >-USE_RC_SUBR= historyserver nodemanager resourcemanager webappproxyserver datanode namenode secondarynamenode journalnode >+USE_RC_SUBR= historyserver nodemanager resourcemanager webappproxyserver datanode namenode secondarynamenode journalnode zkfailovercontroller > > PLIST_SUB= PORTVERSION="${PORTVERSION}" \ > HADOOP_LOGDIR="${HADOOP_LOGDIR}" \ >Index: files/zkfailovercontroller.in >=================================================================== >--- files/zkfailovercontroller.in (revision 0) >+++ files/zkfailovercontroller.in (working copy) >@@ -0,0 +1,33 @@ >+#!/bin/sh >+# >+# $FreeBSD$ >+# >+# PROVIDE: zkfailovercontroller >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+# >+# zkfailovercontroller_enable (bool): >+# Set to NO by default. >+# Set it to YES to enable zkfailovercontroller. >+ >+. /etc/rc.subr >+ >+export PATH=${PATH}:%%LOCALBASE%%/bin >+name=zkfailovercontroller >+rcvar=zkfailovercontroller_enable >+ >+load_rc_config "${name}" >+ >+: ${zkfailovercontroller_enable:=NO} >+: ${zkfailovercontroller_user:=%%HDFS_USER%%} >+ >+command="%%PREFIX%%/sbin/hadoop-daemon.sh" >+command_args='--config %%ETCDIR%% start zkfc' >+ >+stop_cmd=zkfailovercontroller_stop >+ >+zkfailovercontroller_stop () { >+ su -m ${zkfailovercontroller_user} -c "${command} --config %%ETCDIR%% stop zkfc" >+} >+ >+run_rc_command "$1" > >Property changes on: files/zkfailovercontroller.in >___________________________________________________________________ >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
koobs
:
maintainer-approval?
(
demon
)
Actions:
View
|
Diff
Attachments on
bug 204514
: 163082