You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chukwa.apache.org by ey...@apache.org on 2009/04/23 01:10:55 UTC
svn commit: r767712 - in /hadoop/chukwa:
branches/chukwa-0.1/bin/stop-data-processors.sh
trunk/bin/stop-data-processors.sh
Author: eyang
Date: Wed Apr 22 23:10:54 2009
New Revision: 767712
URL: http://svn.apache.org/viewvc?rev=767712&view=rev
Log:
CHUKWA-175. Removed error message for shutting down data processors. (Eric Yang)
Modified:
hadoop/chukwa/branches/chukwa-0.1/bin/stop-data-processors.sh
hadoop/chukwa/trunk/bin/stop-data-processors.sh
Modified: hadoop/chukwa/branches/chukwa-0.1/bin/stop-data-processors.sh
URL: http://svn.apache.org/viewvc/hadoop/chukwa/branches/chukwa-0.1/bin/stop-data-processors.sh?rev=767712&r1=767711&r2=767712&view=diff
==============================================================================
--- hadoop/chukwa/branches/chukwa-0.1/bin/stop-data-processors.sh (original)
+++ hadoop/chukwa/branches/chukwa-0.1/bin/stop-data-processors.sh Wed Apr 22 23:10:54 2009
@@ -26,19 +26,19 @@
if [ -f $pidFile ]; then
echo -n "Shutting down Data Processors.."
DP_PID=`head ${pidFile}`
- kill -TERM ${DP_PID}
+ kill -TERM ${DP_PID} > /dev/null 2>&1
for i in 1 2 5; do
test_pid=`ps ax | grep ${DP_PID} | grep -v grep | grep processSinkFiles.sh | wc -l`
if [ $test_pid -ge 1 ]; then
sleep $i
- kill -TERM ${DP_PID}
+ kill -TERM ${DP_PID} > /dev/null 2>&1
else
break
fi
done
test_pid=`ps ax | grep ${DP_PID} | grep -v grep | grep processSinkFiles.sh | wc -l`
if [ $test_pid -ge 1 ]; then
- kill -9 ${DBADMIN_PID} &>/dev/null
+ kill -9 ${DBADMIN_PID} > /dev/null 2>&1
fi
rm -f ${pidFile}
rm -f $CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-processSinkFiles.sh.pid
@@ -53,19 +53,19 @@
if [ -f $pidFile ]; then
echo -n "Shutting down demux.sh.."
DEMUX_PID=`head ${pidFile}`
- kill -TERM ${DEMUX_PID}
+ kill -TERM ${DEMUX_PID} > /dev/null 2>&1
for i in 1 2 5; do
test_pid=`ps ax | grep ${DEMUX_PID} | grep -v grep | grep DemuxManager | wc -l`
if [ $test_pid -ge 1 ]; then
sleep $i
- kill -TERM ${DEMUX_PID}
+ kill -TERM ${DEMUX_PID} > /dev/null 2>&1
else
break
fi
done
test_pid=`ps ax | grep ${DEMUX_PID} | grep -v grep | grep DemuxManager | wc -l`
if [ $test_pid -ge 1 ]; then
- kill -9 ${DEMUX_PID} &>/dev/null
+ kill -9 ${DEMUX_PID} > /dev/null 2>&1
fi
rm -f ${pidFile}
rm -f $CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-demux.sh.pid
@@ -80,19 +80,19 @@
if [ -f $pidFile ]; then
echo -n "Shutting down postProcess.sh ..."
POST_PROCESS_PID=`head ${pidFile}`
- kill -TERM ${POST_PROCESS_PID}
+ kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
for i in 1 2 5; do
test_pid=`ps ax | grep ${POST_PROCESS_PID} | grep -v grep | grep PostProcessorManager | wc -l`
if [ $test_pid -ge 1 ]; then
sleep $i
- kill -TERM ${POST_PROCESS_PID}
+ kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
else
break
fi
done
test_pid=`ps ax | grep ${POST_PROCESS_PID} | grep -v grep | grep PostProcessorManager | wc -l`
if [ $test_pid -ge 1 ]; then
- kill -9 ${POST_PROCESS_PID} &>/dev/null
+ kill -9 ${POST_PROCESS_PID} > /dev/null 2>&1
fi
rm -f ${pidFile}
rm -f $CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-postProcess.sh.pid
@@ -106,19 +106,19 @@
if [ -f $pidFile ]; then
echo -n "Shutting down archive.sh ..."
POST_PROCESS_PID=`head ${pidFile}`
- kill -TERM ${POST_PROCESS_PID}
+ kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
for i in 1 2 5; do
test_pid=`ps ax | grep ${POST_PROCESS_PID} | grep -v grep | grep ChukwaArchiveManager | wc -l`
if [ $test_pid -ge 1 ]; then
sleep $i
- kill -TERM ${POST_PROCESS_PID}
+ kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
else
break
fi
done
test_pid=`ps ax | grep ${POST_PROCESS_PID} | grep -v grep | grep ChukwaArchiveManager | wc -l`
if [ $test_pid -ge 1 ]; then
- kill -9 ${POST_PROCESS_PID} &>/dev/null
+ kill -9 ${POST_PROCESS_PID} > /dev/null 2>&1
fi
rm -f ${pidFile}
rm -f $CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-postProcess.sh.pid
@@ -132,19 +132,19 @@
if [ -f $pidFile ]; then
echo -n "Shutting down Database Admin.."
DBADMIN_PID=`head ${pidFile}`
- kill -TERM ${DBADMIN_PID}
+ kill -TERM ${DBADMIN_PID} > /dev/null 2>&1
for i in 1 2 5; do
test_pid=`ps ax | grep ${DBADMIN_PID} | grep -v grep | grep dbAdmin.sh | wc -l`
if [ $test_pid -ge 1 ]; then
sleep $i
- kill -TERM ${DBADMIN_PID}
+ kill -TERM ${DBADMIN_PID} > /dev/null 2>&1
else
break
fi
done
test_pid=`ps ax | grep ${DBADMIN_PID} | grep -v grep | grep dbAdmin.sh | wc -l`
if [ $test_pid -ge 1 ]; then
- kill -9 ${DBADMIN_PID} &>/dev/null
+ kill -9 ${DBADMIN_PID} > /dev/null 2>&1
fi
rm -f ${pidFile}
rm -f $CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-dbAdmin.sh.pid
Modified: hadoop/chukwa/trunk/bin/stop-data-processors.sh
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/bin/stop-data-processors.sh?rev=767712&r1=767711&r2=767712&view=diff
==============================================================================
--- hadoop/chukwa/trunk/bin/stop-data-processors.sh (original)
+++ hadoop/chukwa/trunk/bin/stop-data-processors.sh Wed Apr 22 23:10:54 2009
@@ -26,19 +26,19 @@
if [ -f $pidFile ]; then
echo -n "Shutting down Data Processors.."
DP_PID=`head ${pidFile}`
- kill -TERM ${DP_PID}
+ kill -TERM ${DP_PID} > /dev/null 2>&1
for i in 1 2 5; do
test_pid=`ps ax | grep ${DP_PID} | grep -v grep | grep processSinkFiles.sh | wc -l`
if [ $test_pid -ge 1 ]; then
sleep $i
- kill -TERM ${DP_PID}
+ kill -TERM ${DP_PID} > /dev/null 2>&1
else
break
fi
done
test_pid=`ps ax | grep ${DP_PID} | grep -v grep | grep processSinkFiles.sh | wc -l`
if [ $test_pid -ge 1 ]; then
- kill -9 ${DBADMIN_PID} &>/dev/null
+ kill -9 ${DBADMIN_PID} > /dev/null 2>&1
fi
rm -f ${pidFile}
rm -f $CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-processSinkFiles.sh.pid
@@ -53,19 +53,19 @@
if [ -f $pidFile ]; then
echo -n "Shutting down demux.sh.."
DEMUX_PID=`head ${pidFile}`
- kill -TERM ${DEMUX_PID}
+ kill -TERM ${DEMUX_PID} > /dev/null 2>&1
for i in 1 2 5; do
test_pid=`ps ax | grep ${DEMUX_PID} | grep -v grep | grep DemuxManager | wc -l`
if [ $test_pid -ge 1 ]; then
sleep $i
- kill -TERM ${DEMUX_PID}
+ kill -TERM ${DEMUX_PID} > /dev/null 2>&1
else
break
fi
done
test_pid=`ps ax | grep ${DEMUX_PID} | grep -v grep | grep DemuxManager | wc -l`
if [ $test_pid -ge 1 ]; then
- kill -9 ${DEMUX_PID} &>/dev/null
+ kill -9 ${DEMUX_PID} > /dev/null 2>&1
fi
rm -f ${pidFile}
rm -f $CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-demux.sh.pid
@@ -80,19 +80,19 @@
if [ -f $pidFile ]; then
echo -n "Shutting down postProcess.sh ..."
POST_PROCESS_PID=`head ${pidFile}`
- kill -TERM ${POST_PROCESS_PID}
+ kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
for i in 1 2 5; do
test_pid=`ps ax | grep ${POST_PROCESS_PID} | grep -v grep | grep PostProcessorManager | wc -l`
if [ $test_pid -ge 1 ]; then
sleep $i
- kill -TERM ${POST_PROCESS_PID}
+ kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
else
break
fi
done
test_pid=`ps ax | grep ${POST_PROCESS_PID} | grep -v grep | grep PostProcessorManager | wc -l`
if [ $test_pid -ge 1 ]; then
- kill -9 ${POST_PROCESS_PID} &>/dev/null
+ kill -9 ${POST_PROCESS_PID} > /dev/null 2>&1
fi
rm -f ${pidFile}
rm -f $CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-postProcess.sh.pid
@@ -106,19 +106,19 @@
if [ -f $pidFile ]; then
echo -n "Shutting down archive.sh ..."
POST_PROCESS_PID=`head ${pidFile}`
- kill -TERM ${POST_PROCESS_PID}
+ kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
for i in 1 2 5; do
test_pid=`ps ax | grep ${POST_PROCESS_PID} | grep -v grep | grep ChukwaArchiveManager | wc -l`
if [ $test_pid -ge 1 ]; then
sleep $i
- kill -TERM ${POST_PROCESS_PID}
+ kill -TERM ${POST_PROCESS_PID} > /dev/null 2>&1
else
break
fi
done
test_pid=`ps ax | grep ${POST_PROCESS_PID} | grep -v grep | grep ChukwaArchiveManager | wc -l`
if [ $test_pid -ge 1 ]; then
- kill -9 ${POST_PROCESS_PID} &>/dev/null
+ kill -9 ${POST_PROCESS_PID} > /dev/null 2>&1
fi
rm -f ${pidFile}
rm -f $CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-postProcess.sh.pid
@@ -132,19 +132,19 @@
if [ -f $pidFile ]; then
echo -n "Shutting down Database Admin.."
DBADMIN_PID=`head ${pidFile}`
- kill -TERM ${DBADMIN_PID}
+ kill -TERM ${DBADMIN_PID} > /dev/null 2>&1
for i in 1 2 5; do
test_pid=`ps ax | grep ${DBADMIN_PID} | grep -v grep | grep dbAdmin.sh | wc -l`
if [ $test_pid -ge 1 ]; then
sleep $i
- kill -TERM ${DBADMIN_PID}
+ kill -TERM ${DBADMIN_PID} > /dev/null 2>&1
else
break
fi
done
test_pid=`ps ax | grep ${DBADMIN_PID} | grep -v grep | grep dbAdmin.sh | wc -l`
if [ $test_pid -ge 1 ]; then
- kill -9 ${DBADMIN_PID} &>/dev/null
+ kill -9 ${DBADMIN_PID} > /dev/null 2>&1
fi
rm -f ${pidFile}
rm -f $CHUKWA_PID_DIR/chukwa-$CHUKWA_IDENT_STRING-dbAdmin.sh.pid