Changeset 237 for nutchez-0.2
- Timestamp:
- Jun 29, 2010, 10:51:15 AM (14 years ago)
- Location:
- nutchez-0.2/src/shell
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/shell/lang/lang_en_US
r215 r237 308 308 dia_back='= [NutchEz Management Interface] ~by NCHC =' 309 309 dia_choose="Please choose what you want to do: " 310 dia_backto_main="Back to Main Menu" 310 311 dia_exit="Exit" 311 312 -
nutchez-0.2/src/shell/lang/lang_zh_TW
r214 r237 310 310 dia_back='= [NutchEz 管理介面] ~by NCHC =' 311 311 dia_choose="請選擇: " 312 dia_backto_main="回主選單" 312 313 dia_exit="結束" 313 314 … … 333 334 ## [Lang for cluster_status()] ## 334 335 cluster_status_echo_1="[IP] \t\t [Hostname] \t [Network] \t [Dtatnode & Tasktracker]" 335 cluster_status_echo_2="開始檢查 Cluster... "336 cluster_status_echo_2="開始檢查 Cluster...請稍候(node數越多,等待時間越長) " 336 337 cluster_status_read_1="請輸入任何鍵繼續..." 337 338 dia_cluster_status_title_1="[Cluster 狀態]" -
nutchez-0.2/src/shell/nutchez
r228 r237 37 37 38 38 # if lang=zh then source lang_zh_TW_nutchez 39 echo $lang | grep 'zh' && source $Work_Path/lang/lang_zh_TW _nutchez39 echo $lang | grep 'zh' && source $Work_Path/lang/lang_zh_TW 40 40 } 41 41 … … 157 157 "stop" "$dia_server_menu_1_2" \ 158 158 "restart" "$dia_server_menu_1_3" \ 159 " exit" "$dia_exit" 2>$serverSetup159 "main" "$dia_backto_main" 2>$serverSetup 160 160 161 161 if [ "$(cat $serverSetup)" == "start" ]; then 162 162 $NutchEZ_Install_PATH/nutch/bin/start-dfs.sh 163 163 $NutchEZ_Install_PATH/nutch/bin/start-mapred.sh 164 # Back to main menu 165 main_menu 166 menu_choose 164 167 elif [ "$(cat $serverSetup)" == "stop" ]; then 165 168 $NutchEZ_Install_PATH/nutch/bin/stop-dfs.sh 166 169 $NutchEZ_Install_PATH/nutch/bin/stop-mapred.sh 170 # Back to main menu 171 main_menu 172 menu_choose 167 173 elif [ "$(cat $serverSetup)" == "restart" ]; then 168 174 $NutchEZ_Install_PATH/nutch/bin/stop-dfs.sh … … 170 176 $NutchEZ_Install_PATH/nutch/bin/start-dfs.sh 171 177 $NutchEZ_Install_PATH/nutch/bin/start-mapred.sh 172 else173 exit174 fi175 176 178 # Back to main menu 177 main_menu 178 menu_choose 179 main_menu 180 menu_choose 181 elif [ "$(cat $serverSetup)" == "main" ]; then 182 main_menu 183 menu_choose 184 else 185 exit 186 fi 187 179 188 } 180 189 … … 195 204 "All" "$dia_cluster_setup_menu_1_1" \ 196 205 "Part" "$dia_cluster_setup_menu_1_2" \ 197 " Exit" "$dia_exit" 2>$allpart206 "Main" "$dia_backto_main" 2>$allpart 198 207 199 208 # 判斷是否選 all 和 part,若是 all 直接到服務選單,若是 part 則先到機器選單 … … 204 213 --checklist "$dia_cluster_setup_check_1" 15 55 7 $(cat $NutchEZ_HOME/system/nutch_nodes | \ 205 214 grep -v '^$' | grep -v '#' | awk '{print $1 "\t" $2 "\t" "$LIST_status" }') 2>$runNodes 215 elif [ "$(cat $allpart)" == "Main" ]; then 216 main_menu 217 menu_choose 206 218 else 207 219 exit … … 219 231 "stop" "$dia_cluster_setup_menu_2_2" \ 220 232 "restart" "$dia_cluster_setup_menu_2_3" \ 221 " exit" "$dia_exit" 2>$clusterSetup233 "main" "$dia_backto_maibackto_main" >$clusterSetup 222 234 223 235 if [ "$(cat $clusterSetup)" == "start" ]; then … … 229 241 [ $? == "0" ] || echo "$cluster_setup_echo_error $node !!!" 230 242 done 243 main_menu 244 menu_choose 231 245 elif [ "$(cat $clusterSetup)" == "stop" ]; then 232 246 echo -e "\n$cluster_setup_echo_3" … … 237 251 [ $? == "0" ] || echo "$cluster_setup_echo_error $node !!!" 238 252 done 253 main_menu 254 menu_choose 239 255 elif [ "$(cat $clusterSetup)" == "restart" ]; then 240 256 echo -e "\n$cluster_setup_echo_5" … … 247 263 [ $? == "0" ] || echo "$cluster_setup_echo_error $node !!!" 248 264 done 249 else 250 exit 251 fi 252 253 # Back to main menu 254 main_menu 255 menu_choose 265 main_menu 266 menu_choose 267 else 268 exit 269 fi 270 271 # Back to main menu 272 # main_menu 273 # menu_choose 256 274 } 257 275 … … 272 290 "stop" "$dia_tomcat_switch_menu_1_2" \ 273 291 "restart" "$dia_tomcat_switch_menu_1_3" \ 274 " exit" "$dia_exit" 2>$tomcatSwitch292 "main" "$dia_backto_main" 2>$tomcatSwitch 275 293 276 294 if [ "$(cat $tomcatSwitch)" == "exit" ]; then 277 295 exit 0 296 297 elif [ "$(cat $tomcatSwitch)" == "main" ]; then 298 main_menu 299 menu_choose 278 300 fi 279 301 … … 358 380 "en_US" "$dia_lang_menu_1_1" \ 359 381 "zh_TW" "$dia_lang_menu_1_2" \ 360 " Exit" "$dia_exit" 2>$langSwitch382 "main" "$dia_backto_main" 2>$langSwitch 361 383 # 362 384 if [ "$(cat $langSwitch)" == "Exit" ]; then
Note: See TracChangeset
for help on using the changeset viewer.