Ignore:
Timestamp:
Jun 2, 2010, 1:39:45 PM (14 years ago)
Author:
shunfa
Message:

修改安裝檔

File:
1 edited

Legend:

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

    r143 r144  
    215215chmod 777 /opt
    216216mkdir /opt/nutchez
     217mkdir /var/nutchez
    217218#su nutchuser -c "scp -r -o StrictHostKeyChecking=no nutchuser@$1:/opt/nutchez /opt/"
    218 echo "scp -r nutchuser@$1:/opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz /opt/nutchez/"
    219 su nutchuser -c "scp -r nutchuser@$1:/opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz /opt/nutchez/
     219echo "scp -r nutchuser@$1:/home/nutchuser/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz /opt/nutchez/"
     220chown -R nutchuser:nutchuser /opt/nutchez
     221chown -R nutchuser:nutchuser /var/nutchez
     222su nutchuser -c "scp -r nutchuser@$1:/home/nutchuser/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz /opt/nutchez/"
    220223
    221224echo -e "\nchown -R nutchuser:nutchuser /opt/nutchez"
    222 chown -R nutchuser:nutchuser /opt/nutchez
    223225chmod 755 /opt
    224226}
     227
     228
     229function install_nutch_package () {
     230  tar -zxvf /opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz -C /
     231  /opt/nutchez/nutch/bin/hadoop-daemon.sh start datanode
     232  /opt/nutchez/nutch/bin/hadoop-daemon.sh start tasktracker
     233}
Note: See TracChangeset for help on using the changeset viewer.