FreeBSD Bugzilla – Attachment 169727 Details for
Bug 208639
devel/hadoop: status doesn't work with current rc.d scripts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
hadoop2 rc.d files now work with status argument.
hadoop2_working_status.diff (text/plain), 4.31 KB, created by
Johannes Jost Meixner
on 2016-04-26 17:45:58 UTC
(
hide
)
Description:
hadoop2 rc.d files now work with status argument.
Filename:
MIME Type:
Creator:
Johannes Jost Meixner
Created:
2016-04-26 17:45:58 UTC
Size:
4.31 KB
patch
obsolete
>Index: devel/hadoop2/files/datanode.in >=================================================================== >--- devel/hadoop2/files/datanode.in (revision 413227) >+++ devel/hadoop2/files/datanode.in (working copy) >@@ -22,10 +22,12 @@ > : ${datanode_user:=%%HDFS_USER%%} > > command="%%PREFIX%%/sbin/hadoop-daemon.sh" >+command_interpreter_execution="%%JAVA_HOME%%/bin/java" > command_args='--config %%ETCDIR%% start datanode' > > start_postcmd="start_postcmd" > stop_cmd=datanode_stop >+status_precmd=find_pid > > start_postcmd () { > rc_pid=$(check_pidfile ${pidfile} %%JAVA_HOME%%/bin/java) >@@ -38,4 +40,8 @@ > su -m ${datanode_user} -c "${command} --config %%ETCDIR%% stop datanode" > } > >+find_pid () { >+ rc_pid=$(check_pidfile $pidfile $command_interpreter_execution) >+} >+ > run_rc_command "$1" >Index: devel/hadoop2/files/journalnode.in >=================================================================== >--- devel/hadoop2/files/journalnode.in (revision 413227) >+++ devel/hadoop2/files/journalnode.in (working copy) >@@ -21,12 +21,18 @@ > : ${journalnode_user:=%%HDFS_USER%%} > > command="%%PREFIX%%/sbin/hadoop-daemon.sh" >+command_interpreter_execution="%%JAVA_HOME%%/bin/java" > command_args='--config %%ETCDIR%% start journalnode' > > stop_cmd=journalnode_stop >+status_precmd=find_pid > > journalnode_stop () { > su -m ${journalnode_user} -c "${command} --config %%ETCDIR%% stop journalnode" > } > >+find_pid () { >+ rc_pid=$(check_pidfile $pidfile $command_interpreter_execution) >+} >+ > run_rc_command "$1" >Index: devel/hadoop2/files/namenode.in >=================================================================== >--- devel/hadoop2/files/namenode.in (revision 413227) >+++ devel/hadoop2/files/namenode.in (working copy) >@@ -21,12 +21,18 @@ > : ${namenode_user:=%%HDFS_USER%%} > > command="%%PREFIX%%/sbin/hadoop-daemon.sh" >+command_interpreter_execution="%%JAVA_HOME%%/bin/java" > command_args='--config %%ETCDIR%% start namenode' > > stop_cmd=namenode_stop >+status_precmd=find_pid > > namenode_stop () { > su -m ${namenode_user} -c "${command} --config %%ETCDIR%% stop namenode" > } > >+find_pid () { >+ rc_pid=$(check_pidfile $pidfile $command_interpreter_execution) >+} >+ > run_rc_command "$1" >Index: devel/hadoop2/files/nodemanager.in >=================================================================== >--- devel/hadoop2/files/nodemanager.in (revision 413227) >+++ devel/hadoop2/files/nodemanager.in (working copy) >@@ -22,10 +22,12 @@ > : ${nodemanager_user:=%%MAPRED_USER%%} > > command="%%PREFIX%%/sbin/yarn-daemon.sh" >+command_interpreter_execution="%%JAVA_HOME%%/bin/java" > command_args='--config %%ETCDIR%% start nodemanager' > > start_postcmd="start_postcmd" > stop_cmd=nodemanager_stop >+status_precmd=find_pid > > start_postcmd () { > rc_pid=$(check_pidfile ${pidfile} %%JAVA_HOME%%/bin/java) >@@ -38,4 +40,8 @@ > su -m ${nodemanager_user} -c "${command} --config %%ETCDIR%% stop nodemanager" > } > >+find_pid () { >+ rc_pid=$(check_pidfile $pidfile $command_interpreter_execution) >+} >+ > run_rc_command "$1" >Index: devel/hadoop2/files/resourcemanager.in >=================================================================== >--- devel/hadoop2/files/resourcemanager.in (revision 413227) >+++ devel/hadoop2/files/resourcemanager.in (working copy) >@@ -21,12 +21,19 @@ > : ${resourcemanager_user:=%%MAPRED_USER%%} > > command="%%PREFIX%%/sbin/yarn-daemon.sh" >+command_interpreter_execution="%%JAVA_HOME%%/bin/java" > command_args='--config %%ETCDIR%% start resourcemanager' > > stop_cmd=resourcemanager_stop >+start_postcmd="start_postcmd" >+status_precmd=find_pid > > resourcemanager_stop () { > su -m ${resourcemanager_user} -c "${command} --config %%ETCDIR%% stop resourcemanager" > } > >+find_pid () { >+ rc_pid=$(check_pidfile $pidfile $command_interpreter_execution) >+} >+ > run_rc_command "$1" >Index: devel/hadoop2/files/zkfc.in >=================================================================== >--- devel/hadoop2/files/zkfc.in (revision 413227) >+++ devel/hadoop2/files/zkfc.in (working copy) >@@ -21,12 +21,18 @@ > : ${zkfc_user:=%%HDFS_USER%%} > > command="%%PREFIX%%/sbin/hadoop-daemon.sh" >+command_interpreter_execution="%%JAVA_HOME%%/bin/java" > command_args='--config %%ETCDIR%% start zkfc' > > stop_cmd=zkfc_stop >+status_precmd=find_pid > > zkfc_stop () { > su -m ${zkfc_user} -c "${command} --config %%ETCDIR%% stop zkfc" > } > >+find_pid () { >+ rc_pid=$(check_pidfile $pidfile $command_interpreter_execution) >+} >+ > run_rc_command "$1"
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
Actions:
View
|
Diff
Attachments on
bug 208639
: 169727