Changeset 171


Ignore:
Timestamp:
Jun 9, 2010, 3:11:29 PM (15 years ago)
Author:
shunfa
Message:

修改nutch_node path(/home/nutchuser/nutchez/system/nutch_node)

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

Legend:

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

    r169 r171  
    245245  mkdir /home/nutchuser/nutchez
    246246  mkdir /home/nutchuser/nutchez/source
     247  mkdir /home/nutchuser/nutchez/system
    247248  chmod 777 /opt/nutchez
    248249  #su nutchuser -c "scp -r -o StrictHostKeyChecking=no nutchuser@$1:/opt/nutchez /opt/"
     
    303304  fi
    304305
    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"
    307308
    308309#su nutchuser -c expect -c "spawn ssh nutchuser@$1
  • nutchez-0.2/src/test/install

    r164 r171  
    3636    su nutchuser -c "mkdir /home/nutchuser/nutchez/search"
    3737    su nutchuser -c "mkdir /home/nutchuser/nutchez/source"
     38    su nutchuser -c "mkdir /home/nutchuser/nutchez/system"
    3839    make_client_install
    3940
  • nutchez-0.2/src/test/install_func.sh

    r169 r171  
    191191  debug_info "MasterIP_Address=$MasterIP_Address"
    192192  debug_info "Master_Hostname=$(hostname)"
     193  su nutchuser -c "echo $net_address $(hostname) $net_MacAddr \>\> ~/nutchez/system/nutch_nodes"
    193194  set_hosts
    194195  set_haoop-site
  • nutchez-0.2/src/test/nutchez

    r170 r171  
    1414#LIST_Option="off"
    1515
     16# PATH Declaration
     17NutchEZ_Install_PATH=/opt/nutchez
     18NutchEZ_HOME=/home/nutchuser/nutchez
     19
    1620# Functions Declaration #
    1721## Prepare Check  ##
    1822function prepare_check(){
    19 if [ ! -e /home/nutchuser/nutch_nodes ]; then
     23if [ ! -e $NutchEZ_HOME/system/nutch_nodes ]; then
    2024    $DIALOG --clear --backtitle "= [NutchEz Management Interface] ~by NCHC =" --title "[nutch_nodes Files]" \
    21     --msgbox "Fail: Don't find /home/nutchuser/nutch_nodes !!!" 10 40
     25    --msgbox "Fail: Don't find $NutchEZ_Source_HOME/nutch_nodes !!!" 10 40
    2226    exit
    2327fi
     
    2832
    2933 if [ "$?" == "0" ]; then
    30     ./duplicate_del /home/nutchuser/nutch_nodes
     34    ./duplicate_del $NutchEZ_HOME/system/nutch_nodes
    3135    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"
    3337 fi
    34 
    3538}
    3639
     
    5255function cluster_setup(){
    5356
    54 node_list=$(cat /home/nutchuser/nutch_nodes | awk '{print $1}')
     57node_list=$(cat /home/nutchuser/nutchez/nutch_nodes | awk '{print $1}')
    5558#echo -e $node_list
    5659#read
Note: See TracChangeset for help on using the changeset viewer.