Ignore:
Timestamp:
Jun 4, 2010, 10:49:32 AM (14 years ago)
Author:
shunfa
Message:

新增"將master IP address及hostname寫至slave的hosts"

File:
1 edited

Legend:

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

    r151 r152  
    250250  echo -e "\n\033[31m= install_nutch_package (debug) =\033[0m"
    251251  tar -zxvf /opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz -C /
    252   /opt/nutchez/nutch/bin/hadoop-daemon.sh start datanode
    253   /opt/nutchez/nutch/bin/hadoop-daemon.sh start tasktracker
     252  sed -i.bak '1a '$Master_IP_Address' '$Master_Hostname'' /etc/hosts
     253  #/opt/nutchez/nutch/bin/hadoop-daemon.sh start datanode
     254  #/opt/nutchez/nutch/bin/hadoop-daemon.sh start tasktracker
    254255}
    255256
Note: See TracChangeset for help on using the changeset viewer.