Index: /nutchez-0.2/src/test/nutchez
===================================================================
--- /nutchez-0.2/src/test/nutchez	(revision 182)
+++ /nutchez-0.2/src/test/nutchez	(revision 183)
@@ -64,7 +64,8 @@
 $DIALOG --clear --backtitle "= [NutchEz Management Interface] ~by NCHC =" \
     --title "[Management Options]" \
-        --menu "Plz choose: " 15 60 6 \
+        --menu "Plz choose: " 15 60 7 \
         "cluster_status" "Check cluster status" \
-        "cluster_setup" "Setup your datanode & tasktracker" \
+        "server_setup" "Setup namenode & jobtracker" \
+        "cluster_setup" "Setup datanode & tasktracker" \
         "tomcat_switch" "Start/Stop/Restart Tomcat" \
         "tomcat_port" "Change Tomcat port" \
@@ -109,4 +110,51 @@
      --title "[Cluster Status]" --textbox $clusterStatus 20 90
 }
+
+
+## [Cluster Setup (namenode & jobtracker)] ##
+function server_setup(){
+serverSetup=/tmp/serverSetup
+pid_name=$(jps | grep NameNode)
+pid_job=$(jps | grep JobTracker)
+
+if [ -z "$pid_name" -a -z "$pid_job" ]; then                                                                                               
+    $DIALOG --clear --backtitle "= [NutchEz Management Interface] ~by NCHC =" --title "[Server Status]" \
+    --msgbox "Namenode & Jobtracker are not running" 7 50
+elif [ -z "$pid_name" -a -n "$pid_job" ]; then
+    $DIALOG --clear --backtitle "= [NutchEz Management Interface] ~by NCHC =" --title "[Server Status]" \
+    --msgbox "Jobtracker is running, Namenode is not running" 7 50
+elif [ -n "$pid_name" -a -z "$pid_job" ]; then
+    $DIALOG --clear --backtitle "= [NutchEz Management Interface] ~by NCHC =" --title "[Server Status]" \
+    --msgbox "Namenode is running, Jobtracker is not running" 7 50
+else
+    $DIALOG --clear --backtitle "= [NutchEz Management Interface] ~by NCHC =" --title "[Server Status]" \
+    --msgbox "Namenode & Jobtracker are running" 7 50
+fi
+
+$DIALOG --clear --backtitle "= [NutchEz Management Interface] ~by NCHC =" --title "[Namenode & Jobtracker Setup]" \
+    --menu "Plz choose: " 15 65 4 \
+    "start" "Start namenode & jobtracker" \
+    "stop" "Stop namenode & jobtracker" \
+    "restart" "restart namenode & jobtracker" \
+    "exit" "Exit" 2>$serverSetup
+
+if [ "$(cat $serverSetup)" == "start" ]; then
+    $NutchEZ_Install_PATH/nutch/bin/start-dfs.sh
+    $NutchEZ_Install_PATH/nutch/bin/start-mapred.sh
+elif [ "$(cat $serverSetup)" == "stop" ]; then
+    $NutchEZ_Install_PATH/nutch/bin/stop-dfs.sh
+    $NutchEZ_Install_PATH/nutch/bin/stop-mapred.sh
+elif [ "$(cat $serverSetup)" == "restart" ]; then
+    $NutchEZ_Install_PATH/nutch/bin/stop-dfs.sh
+    $NutchEZ_Install_PATH/nutch/bin/stop-mapred.sh
+    $NutchEZ_Install_PATH/nutch/bin/start-dfs.sh
+    $NutchEZ_Install_PATH/nutch/bin/start-mapred.sh
+else
+    exit
+fi
+
+
+}
+
 
 ## [Cluster Setup (datanode & tasktracker)] ##
@@ -289,4 +337,6 @@
     "cluster_status")
         cluster_status;;
+    "server_setup")    
+        server_setup;;
     "cluster_setup")
         cluster_setup;;
