Changeset 232
- Timestamp:
- Jun 28, 2010, 11:52:59 AM (14 years ago)
- 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 274 274 mkdir /opt/nutchez 275 275 mkdir /var/nutchez 276 mkdir /var/nutchez/logs 276 277 mkdir /home/nutchuser/nutchez 277 278 mkdir /home/nutchuser/nutchez/source … … 294 295 cp /etc/hosts /home/nutchuser/nutchez/system/hosts.bak 295 296 sed -i '1a '$Master_IP_Address' '$Master_Hostname'' /etc/hosts 297 296 298 #/opt/nutchez/nutch/bin/hadoop-daemon.sh start datanode 297 299 #/opt/nutchez/nutch/bin/hadoop-daemon.sh start tasktracker -
nutchez-0.2/src/shell/install_func.sh
r227 r232 443 443 function client_PassMasterIPAddr_for_Remove () { 444 444 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 .sh447 sed -i ''$Line_NO'a Master_IP_Address='$MasterIP_Address'' client_remove .sh445 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 448 448 } 449 449 … … 467 467 # 複製檔案至$User_HOME/source目錄下 468 468 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/source469 cp $Work_Path/client_install $Work_Path/client_install_func.sh $Work_Path/client_remove $Work_Path/lang_link /home/nutchuser/nutchez/source 470 470 cp -r $Work_Path/lang /home/nutchuser/nutchez/source 471 471 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/system472 cp $Work_Path/nutchez $Work_Path/lang_link $Work_Path/add_hosts $Work_Path/duplicate_del $Work_Path/master_remove /home/nutchuser/nutchez/system 473 473 474 474 # 複製 nutchez/source 到使用者的安裝資料夾 … … 478 478 479 479 # 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/source480 # cp $Work_Path/client_install $Work_Path/client_remove /home/nutchuser/nutchez/source 481 481 # cp $Work_Path/client_install $Work_Path/lang* /home/nutchuser/nutchez/source 482 482 }
Note: See TracChangeset
for help on using the changeset viewer.