Index: /nutchez-0.2/src/shell/master_remove.sh
===================================================================
--- /nutchez-0.2/src/shell/master_remove.sh	(revision 225)
+++ /nutchez-0.2/src/shell/master_remove.sh	(revision 226)
@@ -43,16 +43,17 @@
   show_info "$MR_shutdown_service_echo_1" # "停止其他尚未關閉的slaves服務..."
   slaves_list=`cat $nutch_PATH'/nutch_nodes' | cut -d' ' -f1`
+  
   for nutch_node in $slaves_list
   do
     show_info "驗證叢集狀態"
-    TaskTrackerStatus=`ssh -o StrictHostKeyChecking=no $nutch_node "jps |grep TaskTracker |sed 's/[0-9]* //g'"`
-    DataNodeStatus=`ssh -o StrictHostKeyChecking=no $nutch_node "jps |grep DataNode |sed 's/[0-9]* //g'"`
+#   TaskTrackerStatus=`ssh -o StrictHostKeyChecking=no $nutch_node "jps |grep TaskTracker |sed 's/[0-9]* //g'"`
+#   DataNodeStatus=`ssh -o StrictHostKeyChecking=no $nutch_node "jps |grep DataNode |sed 's/[0-9]* //g'"`
 
-    if [ $TaskTrackerStatus == "TaskTracker" ]; then
+    if [ $(ssh -o StrictHostKeyChecking=no nutchuser@$nutch_node "jps |grep TaskTracker |sed 's/[0-9]* //g'") == "TaskTracker" ]; then
        show_info "TaskTracker@$nutch_node is running, we will shutdown it!"
        su nutchuser -c "ssh nutchuser@$nutch_node /opt/nutchez/nutch/bin/hadoop-daemon.sh stop tasktracker"
     fi
 
-    if [ $DataNodeStatus == "DataNode" ]; then
+    if [ $(ssh -o StrictHostKeyChecking=no nutchuser@$nutch_node "jps |grep DataNode |sed 's/[0-9]* //g'") == "DataNode" ]; then
        show_info "DataNode@$nutch_node is running, we will shutdown it!"
        show_info "Shutdown $nutch_node."
