Changeset 195 for nutchez-0.2/src/test


Ignore:
Timestamp:
Jun 17, 2010, 10:28:36 AM (14 years ago)
Author:
shunfa
Message:

修改語言中文檔案

Location:
nutchez-0.2/src/test
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/test/install

    r187 r195  
    44# 匯入功能函數
    55source ./install_func.sh
    6 source ./client_install_func.sh
     6#source ./client_install_func.sh
     7source ./install_lang.zh
     8
     9Work_Path=$(echo $0 | sed 's/install//')
     10
     11# Source functions
     12source $Work_Path/client_install_func.sh
    713### real code #####
    814
     
    1824main () {
    1925  check_info
    20   show_info "歡迎使用NutchEZ, 此安裝程序會為您新建一個nutchuser帳號並協助您設定密碼"
     26  show_info $main_echo_1
     27# show_info "歡迎使用NutchEZ, 此安裝程序會為您新建一個nutchuser帳號並協助您設定密碼"
    2128  set_install_information
    22   read -p "Please confirm your install infomation: 1.Yes 2.No  " confirm
     29  read -p "$main_echo_2" confirm
     30# read -p "Please confirm your install infomation: 1.Yes 2.No  " confirm
    2331  if [ $confirm -eq 1 ]; then
    2432    creat_nutchuser_account $Nutchuser_Passwd
     
    4452    start_up_tomcat   
    4553    # 安裝流程結束,並進入網頁管理頁面設定爬網網址...等 
    46     show_info "Install Successfully!!"
    47     show_info "Visit http://$MasterIP_Address:8080"
    48     client_install_command
     54    show_info $main_echo_3
     55#   show_info "Install Successfully!!"
     56    show_info $main_echo_4
     57#   show_info "Visit http://$MasterIP_Address:8080"
     58    client_install_commands
    4959  elif [ $confirm -eq 2 ]; then
    5060    main
  • nutchez-0.2/src/test/install_func.sh

    r173 r195  
    1212####### garbage end ###############
    1313
    14 ####### fafa code here ###########
    15 
    16 
    1714# shell檔及壓縮檔在同一目錄中
    18 
    1915
    2016####### 環境變數section###########
     
    3127######function section section#######
    3228
    33 
     29##########  echo function  ##########
    3430function debug_info () {
    3531  if [ $? -eq 0 ]; then
     
    4440  fi
    4541}
    46 
     42##########end echo function ##########
     43
     44function choose_lang(){
     45
     46lang=$(locale | grep 'LANG=' | cut -d "=" -f2)
     47
     48# Default: source english
     49. $Work_Path/install_lang.en
     50# if locale is zh then source chinese
     51echo $lang | grep 'zh' >> /dev/null && source $Work_Path/install_lang.zh
     52
     53# Ask language
     54echo -e "\n$choose_lang_1"
     55read -p "$choose_lang_2 " langChoice
     56
     57if [ $langChoice == "2" ]; then
     58    source $Work_Path/install_lang.zh
     59else
     60    source $Work_Path/install_lang.en
     61fi
     62}
     63
     64function check_root(){
     65  debug_info "check_root"
     66  if [ $USER != "root" ]; then
     67    show_info "$check_root_1"
     68    exit
     69  fi
     70  show_info "$check_root_2"
     71}
     72
     73function check_systemInfo(){
     74  debug_info "$check_sys_1"
     75  show_info "$check_sys_2"
     76  Linux_Distribution=$(lsb_release -a 2> /dev/null | grep "Distributor ID:" | awk '{print $3}')
     77  Linux_Version=$(lsb_release -a 2> /dev/null | grep "Release" | awk '{print $2}')
     78  show_info "$Linux_Distribution , $Linux_Version"
     79}
     80
     81function install_packages(){
     82  # deb 系列系統
     83  debug_info "$install_pack_1"
     84  debug_info "$install_pack_2"
     85  if [ "$Linux_Distribution" == "Ubuntu" ] || [ "$Linux_Distribution" == "Debian" ] ;then
     86    echo -e "\n$install_pack_if_1\n"
     87    aptitude install -y expect ssh dialog
     88  # rpm 系列系統
     89  elif [ "$Linux_Distribution" == "Fedora" ] || [ "$Linux_Distribution" == "CentOS" ] ;then
     90    show_info "$install_pack_if_2"
     91  else
     92    show_info "$install_pack_if_2"
     93  fi
     94}
     95
     96function check_nez_installed(){
     97  debug_info "$check_nez_1"
     98  if [ -d "opt/nutchez" ]; then
     99    show_info "$check_nez_2"
     100    exit
     101  else
     102    show_info "$check_nez_3"
     103  fi
     104}
     105
     106function check_sunJava(){
     107  debug_info "$check_sunJava_1"
     108  debug_info "$check_sunJava_2"
     109
     110  javaPath="/usr"
     111  yesno="no"
     112  choice="3"
     113
     114  if [ -e $javaPath/bin/java ]; then
     115    JAVA_org=$($javaPath/bin/java -version 2>&1 | grep "Java(TM)")
     116    JAVA_version=$($javaPath/bin/java -version 2>&1 | grep "java version" | \
     117    awk '{print $3}' | cut -d "." -f1-2 | cut -d "\"" -f2)
     118
     119  if [ "$JAVA_org" == "" ]; then
     120    show_info "$check_sunJava_if_1"
     121    show_info "$check_sunJava_if_2"
     122    show_info "$check_sunJava_if_3"
     123    read -p "$check_sunJava_if_4" choice
     124    case $choice  in
     125      "1")
     126        show_info "$check_sunJava_if_5"
     127        exit
     128        ;;
     129      "2")
     130        read -p "$check_sunJava_if_6" javaPath
     131        ;;
     132        "*")
     133        exit
     134        ;;
     135        esac
     136
     137        if [ $choice == "2" ]; then
     138          JAVA_org=$($javaPath/bin/java -version 2>&1 | grep "Java(TM)")
     139          JAVA_version=$($javaPath/bin/java -version 2>&1 | grep "java version" | \
     140          awk '{print $3}' | cut -d "." -f1-2 | cut -d "\"" -f2)
     141
     142          if [ "$JAVA_org" == "" ]; then
     143            show_info "$check_sunJava_if_7"
     144            exit
     145            fi
     146          fi
     147        fi
     148
     149      large16=$(echo "$JAVA_version >= 1.6" | bc)
     150      if [ "${large16}" == 0 ]; then
     151        show_info "$check_sunJava_if_8"
     152        exit
     153      fi
     154
     155      show_info "$check_sunJava_if_9"
     156  else
     157    show_info "$check_sunJava_if_10"
     158    exit
     159  fi
     160
     161  unset JAVA_org
     162  unset JAVA_version
     163}
     164
     165# 檢查是否有安裝openssh, openssh-server
     166function check_ssh(){
     167  debug_info "$check_ssh_1"
     168  if [ -e /usr/bin/ssh ]; then
     169    show_info "$check_ssh_2"
     170  else
     171    show_info "$check_ssh_3"
     172    exit
     173  fi
     174
     175  if [ -e /usr/sbin/sshd ]; then
     176    show_info "$check_ssh_4"
     177  else
     178    show_info "$check_ssh_5"
     179    exit
     180  fi
     181}
     182
     183
     184# 檢查是否有安裝dialog
     185function check_dialog(){
     186  debug_info "$check_dialog_1"
     187  if [ -e /usr/bin/dialog ]; then
     188    show_info "$check_dialog_2"
     189  else
     190    show_info "$check_dialog_3"
     191    exit
     192  fi
     193}
    47194
    48195check_info () {
     
    63210
    64211function set_nutchuser_passwd () {
    65   read -sp "Please enter nutchuser's password :  " Nutchuser_Passwd
     212  read -sp "$set_nutchuser_passwd_echo_1" Nutchuser_Passwd
     213# read -sp "Please enter nutchuser's password :  " Nutchuser_Passwd
    66214  echo -e "\n"
    67   read -sp "Please enter nutchuser's password again:  " Nutchuser_Passwd2
     215  read -sp "$set_nutchuser_passwd_echo_2" Nutchuser_Passwd2
     216# read -sp "Please enter nutchuser's password again:  " Nutchuser_Passwd2
    68217  echo -e "\n"
    69218  if [ $Nutchuser_Passwd != $Nutchuser_Passwd2 ]; then
     
    79228  # 若只有一個 eth 時
    80229  if [ "$net_nu" == "1" ]; then
    81     #ifconfig $net_interfaces | grep "inet addr:" | sed 's/^.*inet addr://g' | cut -d " " -f1
    82230    net_address=$(ifconfig $net_interfaces | grep "inet addr:" | sed 's/^.*inet addr://g' | cut -d " " -f1)
    83231    net_MacAddr=$(ifconfig $net_interfaces | grep 'HW' | sed 's/^.*HWaddr //g')
    84     #echo "net_address is $net_address"
    85     #echo "net_MacAddr is $net_MacAddr"
    86232
    87233  # 若有多個 eth 時
    88234  else
    89235    declare -i i=1
    90     show_info  "\nSystem have multiple network device, which network use for this machine: "
     236    show_info $select_eth_echo_1
     237#   show_info  "\nSystem have multiple network device, which network use for this machine: "
    91238
    92239    for net in $net_interfaces
     
    95242        i=i+1
    96243      done
    97 
    98       read -p "Please choice(1/2/3...): " net_choice
     244      read -p "$select_eth_echo_2 " net_choice
     245#     read -p "Please choice(1/2/3...): " net_choice
    99246    if [ -z $net_choice ]; then
    100247      net_choice=1
    101248    fi
    102249
    103     show_info "Your choice is $net_choice"
     250    show_info $select_eth_echo_3
     251#   show_info "Your choice is $net_choice"
    104252    net_interface=$(echo $net_interfaces | cut -d " " -f $net_choice)
    105253    #ifconfig $net_interface | grep "inet addr:" | sed 's/^.*inet addr://g' | cut -d " " -f1
    106254    net_address=$(ifconfig $net_interface | grep "inet addr:" | sed 's/^.*inet addr://g' | cut -d " " -f1)
    107255    net_MacAddr=$(ifconfig $net_interface | grep 'HW' | sed 's/^.*HWaddr //g')
    108     show_info "net_address is $net_address"
    109     show_info "net_MacAddr is $net_MacAddr"
    110   fi
    111 }
    112 
    113 
    114 function show_info () {
    115   show_info "The Master IP Address is $MasterIP_Address"
    116   show_info "The Master MacAddr is $net_MacAddr"
    117 }
    118 
    119 function confirm_install_information () {
    120   read -p "Please confirm your install infomation: 1.Yes 2.No  " confirm
    121 }
     256
     257    show_info $select_eth_echo_4
     258#   show_info "net_address is $net_address"
     259    show_info $select_eth_echo_5
     260#   show_info "net_MacAddr is $net_MacAddr"
     261  fi
     262}
     263
     264
     265#function show_master_info () {
     266#  show_info "The Master IP Address is $MasterIP_Address"
     267#  show_info "The Master MacAddr is $net_MacAddr"
     268#}
    122269
    123270function make_ssh_key () {
    124   debug_info "Make ssh key(begin...)"
     271  debug_info $make_ssh_key_echo_1
     272# debug_info "Make ssh key(begin...)"
    125273  su nutchuser -c 'ssh-keygen -t rsa -f ~/.ssh/id_rsa -P ""'
    126274  su nutchuser -c "cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys"
    127275  su nutchuser -c "ssh-add /home/nutchuser/.ssh/id_rsa"
    128   debug_info "Make ssh key(done!)"
     276  debug_info $make_ssh_key_echo_2
     277# debug_info "Make ssh key(done!)"
    129278}
    130279
    131280
    132281function set_haoop-site () {
    133   debug_info "set hadoop-site.xml(begin...)"
     282  debug_info $set_haoop_site_echo_1
     283# debug_info "set hadoop-site.xml(begin...)"
    134284  cd $Nutch_HOME/conf/
    135285  cat > hadoop-site.xml << EOF
     
    149299</configuration>
    150300EOF
    151   debug_info "set hadoop-site.xml(done!)"
     301  debug_info $set_haoop_site_echo_2
     302# debug_info "set hadoop-site.xml(done!)"
    152303}
    153304
    154305# 修改nutch-site.xml中-http.agent.url, http.agent.email
    155306function set_nutch-site () {
    156   debug_info "set nutch-site.xml(begin...)"
     307  debug_info $set_haoop_site_echo_1
     308# debug_info "set nutch-site.xml(begin...)"
    157309  Line_NO=`cat $Nutch_HOME'/conf/nutch-site.xml' | grep -n 'http.agent.url' | sed 's/:.*//g'`
    158   debug_info "debug...http.agent.url line number = $Line_NO..."
     310  debug_info $set_haoop_site_echo_2
     311# debug_info "debug...http.agent.url line number = $Line_NO..."
    159312  sed -i ''$((Line_NO+1))'d' $Nutch_HOME/conf/nutch-site.xml
    160   debug_info "debug...edit http.agent.url delete line $((Line_NO+1))..."
     313  debug_info $set_haoop_site_echo_3
     314# debug_info "debug...edit http.agent.url delete line $((Line_NO+1))..."
    161315  sed -i ''$Line_NO'a <value>'$MasterIP_Address'</value>' $Nutch_HOME/conf/nutch-site.xml
    162   debug_info "debug...edit http.agent.url done..."
     316  debug_info $set_haoop_site_echo_4
     317# debug_info "debug...edit http.agent.url done..."
    163318
    164319  Line_NO=`cat $Nutch_HOME'/conf/nutch-site.xml' | grep -n 'http.agent.email' | sed 's/:.*//g'`
    165   debug_info "debug...http.agent.email line number = $Line_NO..."
     320  debug_info $set_haoop_site_echo_5
     321# debug_info "debug...http.agent.email line number = $Line_NO..."
    166322
    167323  sed -i ''$((Line_NO+1))'d' $Nutch_HOME/conf/nutch-site.xml
    168   debug_info "debug...edit http.agent.email delete line $((Line_NO+1))..."
     324  debug_info $set_haoop_site_echo_6
     325# debug_info "debug...edit http.agent.email delete line $((Line_NO+1))..."
    169326  sed -i ''$Line_NO'a <value>'$Admin_email'</value>' $Nutch_HOME/conf/nutch-site.xml
    170   debug_info "debug...edit http.agent.email done..."
    171   debug_info "set nutch-site.xml(done!)"
     327  debug_info $set_haoop_site_echo_7
     328# debug_info "debug...edit http.agent.email done..."
     329  debug_info $set_haoop_site_echo_8
     330# debug_info "set nutch-site.xml(done!)"
    172331}
    173332
    174333function format_HDFS () {
    175   debug_info "format HDFS..."
     334  debug_info $format_HDFS_echo_1
    176335  su nutchuser -c "$Nutch_HOME/bin/hadoop namenode -format"
     336  debug_info $format_HDFS_echo_2
    177337}
    178338
    179339function start_up_NutchEZ (){
    180   debug_info "start up NutchEZ..."
     340  debug_info $start_up_NutchEZ_echo_1
     341# debug_info "start up NutchEZ..."
    181342  su nutchuser -c "$Nutch_HOME/bin/start-all.sh"
    182343}
     
    184345
    185346function set_hosts () {
     347  debug_info $set_hosts_echo_1
    186348  Line_NO=`cat /etc/hosts | grep -n $(hostname) | sed 's/:.*//g'`
    187349  content=$(cat /etc/hosts | awk 'NR=='$Line_NO'{printf "# " ; print}' )
     
    191353
    192354function Install_Nutch () {
    193   debug_info "MasterIP_Address=$MasterIP_Address"
    194   debug_info "Master_Hostname=$(hostname)"
     355  debug_info $install_Nutch_echo_1
     356# debug_info "MasterIP_Address=$MasterIP_Address"
     357  debug_info $install_Nutch_echo_2
     358# debug_info "Master_Hostname=$(hostname)"
    195359  su nutchuser -c "echo $net_address $(hostname) $net_MacAddr \>\> ~/nutchez/system/nutch_nodes"
    196360  set_hosts
     
    203367  cd $Start_PATH
    204368  Line_NO=`cat client_install | grep -n '# Master IP here' | sed 's/:.*//g'`
    205   debug_info "debug...Master IP here line number = $Line_NO..."
     369  debug_info $client_PassMasterIPAddr_echo_1
     370# debug_info "debug...Master IP here line number = $Line_NO..."
    206371  sed -i ''$((Line_NO+1))'d' client_install
    207   debug_info "debug...edit Master IP at line $((Line_NO+1))..."
     372  debug_info $client_PassMasterIPAddr_echo_2
     373# debug_info "debug...edit Master IP at line $((Line_NO+1))..."
    208374  sed -i ''$Line_NO'a Master_IP_Address='$MasterIP_Address'' client_install
    209   debug_info "edit client_install done..."
     375  debug_info $client_PassMasterIPAddr_echo_3
     376# debug_info "edit client_install done..."
    210377}
    211378
     
    214381  cd $Start_PATH
    215382  Line_NO=`cat client_install | grep -n '# Master Hostname here' | sed 's/:.*//g'`
    216   debug_info "debug...Master hostname here line number = $Line_NO..."
     383  debug_info $client_PassMaster_Hostname_echo_1
     384# debug_info "debug...Master hostname here line number = $Line_NO..."
    217385  sed -i ''$((Line_NO+1))'d' client_install
    218   debug_info "debug...edit Master Hostname at line $((Line_NO+1))..."
     386  debug_info $client_PassMaster_Hostname_echo_2
     387# debug_info "debug...edit Master Hostname at line $((Line_NO+1))..."
    219388  sed -i ''$Line_NO'a Master_Hostname='$(hostname)'' client_install
    220   debug_info "edit client_install done..."
     389  debug_info $client_PassMaster_Hostname_echo_3
     390# debug_info "edit client_install done..."
    221391}
    222392
     
    228398  # 將Master_IP_Address給client
    229399  # 打包安裝目錄(不含tomcat)
    230   debug_info "function make_client_install..."
     400 
     401  debug_info $make_client_install_echo_1
     402# debug_info "function make_client_install..."
     403
    231404  client_PassMasterIPAddr
    232405  client_PassMaster_Hostname
     
    240413
    241414function start_up_tomcat () {
    242   debug_info "start up tomcat..."
     415  debug_info $start_up_tomcat_echo_1
     416# debug_info "start up tomcat..."
     417
    243418  i=10
    244419  until [ $i -lt 1 ]
    245420    do
    246421      sleep 1s
    247       debug_info "wait $i sec..."
     422      debug_info $start_up_tomcat_echo_2
     423#     debug_info "wait $i sec..."
    248424      i=`expr $i - 1`
    249425    done
    250426  su nutchuser -c "$Tomcat_HOME/bin/startup.sh"
    251   debug_info "tomcat has been started..."
     427  debug_info $start_up_tomcat_echo_3
     428# debug_info "tomcat has been started..."
    252429}
    253430
    254431###最後再整理###
    255432# client簡易步驟
    256 function client_install_command () {
    257   show_info "Client Install Command as Follows:"
    258   show_info "cd ~"
    259   show_info "mkdir nutchez_client_install"
    260   show_info "cd nutchez_client_install"
    261   show_info "scp nutchuser@$MasterIP_Address:/home/nutchuser/nutchez/source/* ."
    262   show_info "sudo su"
    263   show_info "./client_install"
    264 }
     433function client_install_commands () {
     434  show_info $client_install_commands_echo_1
     435  show_info $client_install_commands_echo_2
     436  show_info $client_install_commands_echo_3
     437  show_info $client_install_commands_echo_4
     438  show_info $client_install_commands_echo_5
     439  show_info $client_install_commands_echo_6
     440  show_info $client_install_commands_echo_7
     441
     442
     443#  show_info "Client Install Command as Follows:"
     444#  show_info "cd ~"
     445#  show_info "mkdir nutchez_client_install"
     446#  show_info "cd nutchez_client_install"
     447#  show_info "scp nutchuser@$MasterIP_Address:/home/nutchuser/nutchez/source/* ."
     448#  show_info "sudo su"
     449#  show_info "./client_install"
     450}
  • nutchez-0.2/src/test/install_lang.zh

    r116 r195  
    1 Good="檢查完成"
    2 Bra_Bra_Bra="開始安裝"
     1#!/bin/bash
     2# Program:
     3#   Chinese Language file for client_install
     4# Author:
     5#   Waue, Shunfa, Rock {waue, shunfa, rock}@nchc.org.tw
     6# Version:
     7#    1.0
     8# History:
     9#
     10
     11## Lang for master_install ##
     12main_echo_1="歡迎使用NutchEZ, 此安裝程序會為您新建一個nutchuser帳號並協助您設定>密碼"
     13main_echo_2="請確認上述的安裝資訊:1.正確 2.不正確"
     14main_echo_3="安裝成功!"
     15main_echo_4="請進入管理頁面:http://$MasterIP_Address:8080"
     16
     17## Lang for master_install_func.sh ##
     18### [for choose_lang()] ###
     19choose_lang_1="請選擇語言: (1)English (2)中文"
     20choose_lang_2="(1/2):"
     21
     22### [for check_root()]###
     23check_root_1="請切換成 root 身份執行!!!"
     24check_root_2="身份是 root"
     25
     26### [for check_systemInfo()]###
     27check_sys_1="check_systemInfo"
     28check_sys_2="作業系統為: "
     29
     30### [for install_packages()]###
     31install_pack_1="install_packages"
     32install_pack_2="檢查套件相依性"
     33install_pack_if_1="將會安裝 expect, ssh 和 dialog 套件"
     34install_pack_if_2="請手動安裝 expect, ssh 和 dialog 套件"
     35
     36### [for check_nez_installed()] ###
     37check_nez_1="chcheck_nez_installed"
     38check_nez_2="系統先前已安裝NutchEz"
     39check_nez_3="系統尚未安裝 NutchEz"
     40
     41### [for check_sunJava()] ###
     42check_sunJava_1="check_sunJava"
     43check_sunJava_2="NutchEz 需要 Sun Java JDK 1.6 以上的版本"
     44check_sunJava_if_1="Java 並不是 Sun 版本, 請自行安裝 Sun 版本的 Java"
     45check_sunJava_if_2="請輸入您的選擇: "
     46check_sunJava_if_3="(1)系統沒有 Sun Java (2)Sun Java已安裝並於其他路徑 (3)結束"
     47check_sunJava_if_4="請選擇 (1/2/3): "
     48check_sunJava_if_5="請自行安裝 Sun Java 1.6 以上版本"
     49check_sunJava_if_6="請輸入 Sum Java 的家路徑 (例如: '/usr/lib/jvm/java-6-sun-1.6.0.12'): "
     50check_sunJava_if_7="Java 並不是 Sun 版本, 請自行安裝 Sun 版本的 Java"
     51check_sunJava_if_8="Java 版本太舊 (請更新至 1.6 以上版本)"
     52check_sunJava_if_9="系統有 Sun Java 1.6 以上版本"
     53check_sunJava_if_10="請自行安裝 Sun Java 1.6 以上版本"
     54
     55### [for check_ssh()] ###
     56check_ssh_1="check_ssh"
     57check_ssh_2="系統已有 ssh."
     58check_ssh_3="請安裝 ssh."
     59check_ssh_4="系統已有 ssh Server (sshd)."
     60check_ssh_5="請安裝 ssh Server (sshd)."
     61
     62### [for check_dialog()] ###
     63check_dialog_1="check_dialog"
     64check_dialog_2="系統已有 dialog."
     65check_dialog_3="請安裝 dialog."
     66
     67#
     68set_nutchuser_passwd_echo_1="請輸入欲設定的nutchuser密碼:"
     69set_nutchuser_passwd_echo_2="請再輸入一次確認密碼:"
     70
     71#
     72select_eth_echo_1="系統偵測到目前擁有網卡如下:"
     73select_eth_echo_2="請選擇欲給nutchez使用的網卡(1/2/3):"
     74select_eth_echo_3="您選擇的網卡為:$net_choice"
     75select_eth_echo_4="Master網路IP位址為:$net_address"
     76select_eth_echo_5="Master的MAC為:$net_MacAddr"
     77
     78#
     79make_ssh_key_echo_1="正在產生SSH Key... "
     80make_ssh_key_echo_2="SSH Key已產生"
     81
     82#
     83set_haoop_site_echo_1="正在設定hadoop-site.xml... "
     84set_haoop_site_echo_2="hadoop-site.xml設定完成"
     85
     86#
     87set_nutch_site_echo_1="正在設定nutch-site.xml..."
     88set_nutch_site_echo_2="http.agent.url 設定行號為:$Line_NO..."
     89set_nutch_site_echo_3="編輯http.agent.url, 刪除行號 $Line_NO."
     90set_nutch_site_echo_4="編輯http.agent.url完成"
     91set_nutch_site_echo_5="http.agent.email 設定行號為:$Line_NO."
     92set_nutch_site_echo_6="編輯http.agent.email, 刪除行號 $Line_NO."
     93set_nutch_site_echo_7="編輯http.agent.email完成"
     94set_nutch_site_echo_8="hadoop-site.xml設定完成"
     95
     96#
     97format_HDFS_echo_1="格式化HDFS..."
     98format_HDFS_echo_2="格式化HDFS完成"
     99
     100#
     101start_up_NutchEZ_echo_1="啟動NutchEZ..."
     102
     103#
     104set_hosts_echo_1="設定master上的hosts"
     105
     106#
     107install_Nutch_echo_1="Master的IP位址為:"
     108install_Nutch_echo_2="Master的Hostname為:"
     109
     110#
     111client_PassMasterIPAddr_echo_1="在client安裝檔修改MasterIP的行號: $Line_NO"
     112client_PassMasterIPAddr_echo_2="編輯MasterIP..."
     113client_PassMasterIPAddr_echo_3="完成編輯MasterIP."
     114
     115#
     116client_PassMaster_Hostname_echo_1="在client安裝檔修改Hostname, 行號為: $Line_NO"
     117client_PassMaster_Hostname_echo_2="編輯Hostname..."
     118client_PassMaster_Hostname_echo_3="完成編輯Hostname."
     119
     120#
     121make_client_install_echo_1="於function make_client_install ..."
     122
     123#
     124start_up_tomcat_echo_1="啟動tomcat..."
     125start_up_tomcat_echo_2="等待 $i 秒..."
     126start_up_tomcat_echo_3="tomcat 已經啟動!"
     127
     128#
     129client_install_commands_echo_1="Client安裝可參考以下指令:"
     130client_install_commands_echo_2="cd ~"
     131client_install_commands_echo_3="mkdir nutchez_client_install"
     132client_install_commands_echo_4="cd nutchez_client_install"
     133client_install_commands_echo_5="scp nutchuser@$MasterIP_Address:/home/nutchuser/nutchez/source/* ."
     134client_install_commands_echo_6="sudo su"
     135client_install_commands_echo_7="./client_install"
     136
  • nutchez-0.2/src/test/lang_zh_TW_client_install

    r192 r195  
    4545check_sunJava_if_1="Java 並不是 Sun 版本, 請自行安裝 Sun 版本的 Java"
    4646check_sunJava_if_2="請輸入您的選擇: "
    47 check_sunJava_if_3="(1)系統沒有 Sun Java (2)Sun Java 其他路徑 (3)結束"
     47check_sunJava_if_3="(1)系統沒有 Sun Java (2)Sun Java 其他路徑 (3)結束"
    4848check_sunJava_if_4="請選擇 (1/2/3): "
    4949check_sunJava_if_5="請自行安裝 Sun Java 1.6 以上版本"
Note: See TracChangeset for help on using the changeset viewer.