Changeset 171 for nutchez-0.2/src
- Timestamp:
- Jun 9, 2010, 3:11:29 PM (14 years ago)
- Location:
- nutchez-0.2/src/test
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/client_install_func.sh
r169 r171 245 245 mkdir /home/nutchuser/nutchez 246 246 mkdir /home/nutchuser/nutchez/source 247 mkdir /home/nutchuser/nutchez/system 247 248 chmod 777 /opt/nutchez 248 249 #su nutchuser -c "scp -r -o StrictHostKeyChecking=no nutchuser@$1:/opt/nutchez /opt/" … … 303 304 fi 304 305 305 debug_info "ssh nutchuser@$1 echo $net_address $(hostname) $net_MacAddr \>\> ~/nutchez/ nutch_nodes"306 su nutchuser -c "ssh nutchuser@$1 echo $net_address $(hostname) $net_MacAddr \>\> ~/nutchez/ nutch_nodes"306 debug_info "ssh nutchuser@$1 echo $net_address $(hostname) $net_MacAddr \>\> ~/nutchez/system/nutch_nodes" 307 su nutchuser -c "ssh nutchuser@$1 echo $net_address $(hostname) $net_MacAddr \>\> ~/nutchez/system/nutch_nodes" 307 308 308 309 #su nutchuser -c expect -c "spawn ssh nutchuser@$1 -
nutchez-0.2/src/test/install
r164 r171 36 36 su nutchuser -c "mkdir /home/nutchuser/nutchez/search" 37 37 su nutchuser -c "mkdir /home/nutchuser/nutchez/source" 38 su nutchuser -c "mkdir /home/nutchuser/nutchez/system" 38 39 make_client_install 39 40 -
nutchez-0.2/src/test/install_func.sh
r169 r171 191 191 debug_info "MasterIP_Address=$MasterIP_Address" 192 192 debug_info "Master_Hostname=$(hostname)" 193 su nutchuser -c "echo $net_address $(hostname) $net_MacAddr \>\> ~/nutchez/system/nutch_nodes" 193 194 set_hosts 194 195 set_haoop-site -
nutchez-0.2/src/test/nutchez
r170 r171 14 14 #LIST_Option="off" 15 15 16 # PATH Declaration 17 NutchEZ_Install_PATH=/opt/nutchez 18 NutchEZ_HOME=/home/nutchuser/nutchez 19 16 20 # Functions Declaration # 17 21 ## Prepare Check ## 18 22 function prepare_check(){ 19 if [ ! -e /home/nutchuser/nutch_nodes ]; then23 if [ ! -e $NutchEZ_HOME/system/nutch_nodes ]; then 20 24 $DIALOG --clear --backtitle "= [NutchEz Management Interface] ~by NCHC =" --title "[nutch_nodes Files]" \ 21 --msgbox "Fail: Don't find /home/nutchuser/nutch_nodes !!!" 10 4025 --msgbox "Fail: Don't find $NutchEZ_Source_HOME/nutch_nodes !!!" 10 40 22 26 exit 23 27 fi … … 28 32 29 33 if [ "$?" == "0" ]; then 30 ./duplicate_del /home/nutchuser/nutch_nodes34 ./duplicate_del $NutchEZ_HOME/system/nutch_nodes 31 35 echo -e "\nPlz input root password to update /etc/hosts !!!" 32 su root -c "./duplicate_del /etc/hosts && ./add_hosts /home/nutchuser/nutch_nodes /etc/hosts"36 su root -c "./duplicate_del /etc/hosts && ./add_hosts $NutchEZ_HOME/nutch_nodes /etc/hosts" 33 37 fi 34 35 38 } 36 39 … … 52 55 function cluster_setup(){ 53 56 54 node_list=$(cat /home/nutchuser/nutch _nodes | awk '{print $1}')57 node_list=$(cat /home/nutchuser/nutchez/nutch_nodes | awk '{print $1}') 55 58 #echo -e $node_list 56 59 #read
Note: See TracChangeset
for help on using the changeset viewer.