Ignore:
Timestamp:
Jun 29, 2010, 5:09:33 PM (14 years ago)
Author:
shunfa
Message:

修改nutchez

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/shell/nutchez

    r238 r243  
    111111    ping -c1 -w1 $ip 2>&1 > /dev/null || ip_status="offline"
    112112    # Check Hadoop/Nutch service through ssh
    113     Task_Data_status="stop"
     113    Task_Data_status="shutdown"
    114114    if [ $ip_status == "online" ]; then
    115115    Task_Data=$(ssh -o StrictHostKeyChecking=no $ip "jps |grep TaskTracker ; jps | grep  DataNode")
     
    155155    --menu "$dia_choose" 15 65 4 \
    156156    "start" "$dia_server_menu_1_1" \
    157     "stop" "$dia_server_menu_1_2" \
     157    "shutdown" "$dia_server_menu_1_2" \
    158158    "restart" "$dia_server_menu_1_3" \
    159159    "main" "$dia_backto_main" 2>$serverSetup
     
    165165    main_menu
    166166    menu_choose
    167 elif [ "$(cat $serverSetup)" == "stop" ]; then
     167elif [ "$(cat $serverSetup)" == "shutdown" ]; then
    168168    $NutchEZ_Install_PATH/nutch/bin/stop-dfs.sh
    169169    $NutchEZ_Install_PATH/nutch/bin/stop-mapred.sh
     
    213213    --checklist "$dia_cluster_setup_check_1" 15 55 7 $(cat $NutchEZ_HOME/system/nutch_nodes | \
    214214    grep -v '^$' | grep -v '#'  | awk '{print $1 "\t" $2 "\t" "$LIST_status" }') 2>$runNodes
     215#    read -p "$runNodes and $(cat $runNodes)"
    215216elif [ "$(cat $allpart)" == "Main" ]; then
    216217    main_menu
     
    222223if [ -z "$(cat $runNodes)" ]; then
    223224    exit
    224 #else
    225 #   $(cat $runNodes) | sed -i 's/"//g' $runNodes
     225else
     226   $(cat $runNodes) | sed -i 's/"//g' $runNodes
    226227fi
    227228
     
    229230    --menu "$dia_choose" 15 65 4 \
    230231    "start" "$dia_cluster_setup_menu_2_1" \
    231     "stop" "$dia_cluster_setup_menu_2_2" \
     232    "shutdown" "$dia_cluster_setup_menu_2_2" \
    232233    "restart" "$dia_cluster_setup_menu_2_3" \
    233234    "main" "$dia_backto_main" 2>$clusterSetup
     
    243244    main_menu
    244245    menu_choose
    245 elif [ "$(cat $clusterSetup)" == "stop" ]; then
     246elif [ "$(cat $clusterSetup)" == "shutdown" ]; then
    246247    echo -e "\n$cluster_setup_echo_3"
    247248    for node in $(cat $runNodes)
     
    291292    --menu "$dia_choose" 15 55 4 \
    292293        "start" "$dia_tomcat_switch_menu_1_1" \
    293         "stop" "$dia_tomcat_switch_menu_1_2" \
     294        "shutdown" "$dia_tomcat_switch_menu_1_2" \
    294295        "restart" "$dia_tomcat_switch_menu_1_3" \
    295296        "main" "$dia_backto_main" 2>$tomcatSwitch
     
    317318    echo "$tomcat_switch_echo_3"
    318319    $Tomcat_HOME/bin/startup.sh
    319 elif [ "$(cat $tomcatSwitch)" == "stop" ]; then
     320elif [ "$(cat $tomcatSwitch)" == "shutdown" ]; then
    320321    echo "$tomcat_switch_echo_4"
    321322    $Tomcat_HOME/bin/shutdown.sh
Note: See TracChangeset for help on using the changeset viewer.