Index: nutchez-0.2/src/test/master_remove.sh
===================================================================
--- nutchez-0.2/src/test/master_remove.sh	(revision 206)
+++ nutchez-0.2/src/test/master_remove.sh	(revision 213)
@@ -33,13 +33,13 @@
   debug_info "check_root"
   if [ $USER != "root" ]; then
-    show_info "$check_root_1" # "請切換成 root 身份執行移除程式!!!"
+    show_info "$MR_check_root_1" # "請切換成 root 身份執行移除程式!!!"
     exit
   fi
-  show_info "$check_root_2" # "已確認為root身份, 將繼續執行此移除程式！"
+  show_info "$MR_check_root_2" # "已確認為root身份, 將繼續執行此移除程式！"
 }
 
 # shutdown service
 function shutdown_service () {
-  show_info "$shutdown_service_echo_1" # "停止其他尚未關閉的slaves服務..."
+  show_info "$MR_shutdown_service_echo_1" # "停止其他尚未關閉的slaves服務..."
   slaves_list=`cat $nutch_PATH'/nutch_nodes' | cut -d' ' -f1`
   for nutch_node in $slaves_list
@@ -48,16 +48,16 @@
     su nutchuser -c "ssh nutchuser@$nutch_node /opt/nutchez/nutch/bin/hadoop-daemon.sh stop tasktracker"
   done
-  show_info "$shutdown_service_echo_2" # "關閉本機服務..."
+  show_info "$MR_shutdown_service_echo_2" # "關閉本機服務..."
   su nutchuser -c "/opt/nutchez/nutch/bin/stop-all.sh"
   su nutchuser -c "/opt/nutchez/tomcat/bin/shutdown.sh"
-  show_info "$shutdown_service_echo_3" # "本機服務已關閉"
+  show_info "$MR_shutdown_service_echo_3" # "本機服務已關閉"
 }
 
 # 移除檔案及資料夾
 function remove_folders () {
-  show_info "$remove_folders_echo_1" # "正在刪除安裝時所建立的檔案及資料夾..."
+  show_info "$MR_remove_folders_echo_1" # "正在刪除安裝時所建立的檔案及資料夾..."
   rm -rf /opt/nutchez
   rm -rf /var/nutchez
-  show_info "$remove_folders_echo_2" # "安裝時所建立的檔案及資料夾已刪除"
+  show_info "$MR_remove_folders_echo_2" # "安裝時所建立的檔案及資料夾已刪除"
 }
 
@@ -65,29 +65,30 @@
 # 還原/etc/hosts
 function edit_hosts () {
-  show_info "$edit_hosts_echo_1" # "修改/etc/hosts..."
-  slaves_list=`cat $nutch_PATH'/nutch_nodes' | cut -d' ' -f1`
-  for nutch_node in $slaves_list
-  do
-    Line_NO=`cat /etc/hosts | grep -n $nutch_node | sed 's/:.*//g'`
-    if [[ $Line_NO -ge 1 ]]; then
-      sed -i ''$Line_NO'd' /etc/hosts
-    fi
-  done
-  show_info "$edit_hosts_echo_2" # "完成修改/etc/hosts"
+  show_info "$MR_edit_hosts_echo_1" # "修改/etc/hosts..."
+#  slaves_list=`cat $nutch_PATH'/nutch_nodes' | cut -d' ' -f1`
+#  for nutch_node in $slaves_list
+#  do
+#    Line_NO=`cat /etc/hosts | grep -n $nutch_node | sed 's/:.*//g'`
+#    if [[ $Line_NO -ge 1 ]]; then
+#      sed -i ''$Line_NO'd' /etc/hosts
+#    fi
+#  done
+  cat > /etc/hosts < /home/nutchuser/nutchez/system/hosts.bak
+  show_info "$MR_edit_hosts_echo_2" # "完成修改/etc/hosts"
 }
 
 # 移除使用者
 function user_delete () {
-  show_info "$user_delete_echo_1" # "正在刪除nutchuser使用者..."
+  show_info "$MR_user_delete_echo_1" # "正在刪除nutchuser使用者..."
   userdel -r nutchuser
-  show_info "$user_delete_echo_2" # "使用者nutchuser已刪除"
+  show_info "$MR_user_delete_echo_2" # "使用者nutchuser已刪除"
 }
 
 # Main function
 function main () {
-  show_info "$main_echo_1" #"警告 - 此一程式為移除nutchEZ程式, 若您為誤執行此一程式, 請按Ctrl+c離開此程序！"
-  show_info "$main_echo_2" #"本執行程序將會移除安裝nutchEZ時所新增的檔案及nutchuser使用者帳號"
+  show_info "$MR_main_echo_1" #"警告 - 此一程式為移除nutchEZ程式, 若您為誤執行此一程式, 請按Ctrl+c離開此程序！"
+  show_info "$MR_main_echo_2" #"本執行程序將會移除安裝nutchEZ時所新增的檔案及nutchuser使用者帳號"
 # 詢問是否繼續
-  read -p "$main_echo_3" confirm # "請問是否確定移除此一節點：1.確定 2.取消"
+  read -p "$MR_main_echo_3" confirm # "請問是否確定移除此一節點：1.確定 2.取消"
 # 確認移除
   if [ $confirm -eq 1 ]; then
@@ -97,8 +98,8 @@
     edit_hosts
     user_delete
-    show_info "$main_echo_4" # "移除程序已完成！"
+    show_info "$MR_main_echo_4" # "移除程序已完成！"
   elif [ $confirm -eq 2 ]; then
-    show_info "$main_echo_5" # "您已取消移除程序！"
-    show_info "$main_echo_6" # "若要移除請再重新執行！"
+    show_info "$MR_main_echo_5" # "您已取消移除程序！"
+    show_info "$MR_main_echo_6" # "若要移除請再重新執行！"
   fi
 }
