Changeset 232 for nutchez-0.2/src


Ignore:
Timestamp:
Jun 28, 2010, 11:52:59 AM (14 years ago)
Author:
waue
Message:

shell/client_install_func.sh 修改了 增加/var/nutchez/logs 否則鍊結會錯誤
其餘檔案則是統一命名法則,將使用者會執行的執行檔則不帶.sh副檔名,
而被引用的函式檔才帶入.sh副檔名,
因此,master_remove.sh => master_remove ; client_remove.sh => client_remove ;
install_func.sh 則修改相對應的檔名

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

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/shell/client_install_func.sh

    r231 r232  
    274274  mkdir /opt/nutchez
    275275  mkdir /var/nutchez
     276  mkdir /var/nutchez/logs
    276277  mkdir /home/nutchuser/nutchez
    277278  mkdir /home/nutchuser/nutchez/source
     
    294295  cp /etc/hosts /home/nutchuser/nutchez/system/hosts.bak
    295296  sed -i '1a '$Master_IP_Address' '$Master_Hostname'' /etc/hosts
     297
    296298  #/opt/nutchez/nutch/bin/hadoop-daemon.sh start datanode
    297299  #/opt/nutchez/nutch/bin/hadoop-daemon.sh start tasktracker
  • nutchez-0.2/src/shell/install_func.sh

    r227 r232  
    443443function client_PassMasterIPAddr_for_Remove () {
    444444  cd $Work_Path
    445   Line_NO=`cat client_remove.sh | grep -n "# Master IP here" | sed 's/:.*//g'`
    446   sed -i ''$((Line_NO+1))'d' client_remove.sh
    447   sed -i ''$Line_NO'a Master_IP_Address='$MasterIP_Address'' client_remove.sh
     445  Line_NO=`cat client_remove | grep -n "# Master IP here" | sed 's/:.*//g'`
     446  sed -i ''$((Line_NO+1))'d' client_remove
     447  sed -i ''$Line_NO'a Master_IP_Address='$MasterIP_Address'' client_remove
    448448}
    449449
     
    467467  # 複製檔案至$User_HOME/source目錄下
    468468  mv NutchezForClientOf_$MasterIP_Address.tar.gz /home/nutchuser/nutchez/source
    469   cp $Work_Path/client_install $Work_Path/client_install_func.sh $Work_Path/client_remove.sh $Work_Path/lang_link  /home/nutchuser/nutchez/source
     469  cp $Work_Path/client_install $Work_Path/client_install_func.sh $Work_Path/client_remove $Work_Path/lang_link  /home/nutchuser/nutchez/source
    470470  cp -r $Work_Path/lang /home/nutchuser/nutchez/source
    471471  cp -r $Work_Path/lang /home/nutchuser/nutchez/system
    472   cp $Work_Path/nutchez $Work_Path/lang_link $Work_Path/add_hosts $Work_Path/duplicate_del $Work_Path/master_remove.sh /home/nutchuser/nutchez/system
     472  cp $Work_Path/nutchez $Work_Path/lang_link $Work_Path/add_hosts $Work_Path/duplicate_del $Work_Path/master_remove /home/nutchuser/nutchez/system
    473473 
    474474  # 複製 nutchez/source 到使用者的安裝資料夾
     
    478478   
    479479#  cp $Work_Path/client_install $Work_Path/client_install /home/nutchuser/nutchez/source
    480 #  cp $Work_Path/client_install $Work_Path/client_remove.sh /home/nutchuser/nutchez/source
     480#  cp $Work_Path/client_install $Work_Path/client_remove /home/nutchuser/nutchez/source
    481481#  cp $Work_Path/client_install $Work_Path/lang* /home/nutchuser/nutchez/source
    482482}
Note: See TracChangeset for help on using the changeset viewer.