Changeset 243 for nutchez-0.2/src/shell/nutchez
- Timestamp:
- Jun 29, 2010, 5:09:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/shell/nutchez
r238 r243 111 111 ping -c1 -w1 $ip 2>&1 > /dev/null || ip_status="offline" 112 112 # Check Hadoop/Nutch service through ssh 113 Task_Data_status="s top"113 Task_Data_status="shutdown" 114 114 if [ $ip_status == "online" ]; then 115 115 Task_Data=$(ssh -o StrictHostKeyChecking=no $ip "jps |grep TaskTracker ; jps | grep DataNode") … … 155 155 --menu "$dia_choose" 15 65 4 \ 156 156 "start" "$dia_server_menu_1_1" \ 157 "s top" "$dia_server_menu_1_2" \157 "shutdown" "$dia_server_menu_1_2" \ 158 158 "restart" "$dia_server_menu_1_3" \ 159 159 "main" "$dia_backto_main" 2>$serverSetup … … 165 165 main_menu 166 166 menu_choose 167 elif [ "$(cat $serverSetup)" == "s top" ]; then167 elif [ "$(cat $serverSetup)" == "shutdown" ]; then 168 168 $NutchEZ_Install_PATH/nutch/bin/stop-dfs.sh 169 169 $NutchEZ_Install_PATH/nutch/bin/stop-mapred.sh … … 213 213 --checklist "$dia_cluster_setup_check_1" 15 55 7 $(cat $NutchEZ_HOME/system/nutch_nodes | \ 214 214 grep -v '^$' | grep -v '#' | awk '{print $1 "\t" $2 "\t" "$LIST_status" }') 2>$runNodes 215 # read -p "$runNodes and $(cat $runNodes)" 215 216 elif [ "$(cat $allpart)" == "Main" ]; then 216 217 main_menu … … 222 223 if [ -z "$(cat $runNodes)" ]; then 223 224 exit 224 #else225 #$(cat $runNodes) | sed -i 's/"//g' $runNodes225 else 226 $(cat $runNodes) | sed -i 's/"//g' $runNodes 226 227 fi 227 228 … … 229 230 --menu "$dia_choose" 15 65 4 \ 230 231 "start" "$dia_cluster_setup_menu_2_1" \ 231 "s top" "$dia_cluster_setup_menu_2_2" \232 "shutdown" "$dia_cluster_setup_menu_2_2" \ 232 233 "restart" "$dia_cluster_setup_menu_2_3" \ 233 234 "main" "$dia_backto_main" 2>$clusterSetup … … 243 244 main_menu 244 245 menu_choose 245 elif [ "$(cat $clusterSetup)" == "s top" ]; then246 elif [ "$(cat $clusterSetup)" == "shutdown" ]; then 246 247 echo -e "\n$cluster_setup_echo_3" 247 248 for node in $(cat $runNodes) … … 291 292 --menu "$dia_choose" 15 55 4 \ 292 293 "start" "$dia_tomcat_switch_menu_1_1" \ 293 "s top" "$dia_tomcat_switch_menu_1_2" \294 "shutdown" "$dia_tomcat_switch_menu_1_2" \ 294 295 "restart" "$dia_tomcat_switch_menu_1_3" \ 295 296 "main" "$dia_backto_main" 2>$tomcatSwitch … … 317 318 echo "$tomcat_switch_echo_3" 318 319 $Tomcat_HOME/bin/startup.sh 319 elif [ "$(cat $tomcatSwitch)" == "s top" ]; then320 elif [ "$(cat $tomcatSwitch)" == "shutdown" ]; then 320 321 echo "$tomcat_switch_echo_4" 321 322 $Tomcat_HOME/bin/shutdown.sh
Note: See TracChangeset
for help on using the changeset viewer.