Changeset 243 for nutchez-0.2/src/shell


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

修改nutchez

Location:
nutchez-0.2/src/shell
Files:
2 edited

Legend:

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

    r237 r243  
    133133#
    134134MI_client_install_commands_echo_1="Client安裝可參考以下指令:"
    135 MI_client_install_commands_echo_2="cd ~"
    136 MI_client_install_commands_echo_3="mkdir nutchez_client_install"
    137 MI_client_install_commands_echo_4="cd nutchez_client_install"
    138 MI_client_install_commands_echo_5="scp -r nutchuser@$MasterIP_Address:/home/nutchuser/nutchez/source/* ."
     135MI_client_install_commands_echo_2="scp nutchuser@$MasterIP_Address:/home/nutchuser/nutchez/source/client_deploy ."
     136MI_client_install_commands_echo_3=""
     137MI_client_install_commands_echo_4=""
     138MI_client_install_commands_echo_5=""
    139139MI_client_install_commands_echo_6="sudo su"
    140 MI_client_install_commands_echo_7="./client_install"
     140MI_client_install_commands_echo_7="~/nutchez_client_install/client_install"
    141141
    142142########## Lang for Master Install - End##########
  • 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.