Changeset 144 for nutchez-0.2


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

修改安裝檔

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

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/test/client_install

    r142 r144  
    1414# 需要 master_install 設定的參數區
    1515# Master IP here
    16 Master_IP_Address="a.a.a.a";
     16Master_IP_Address="192.168.56.101";
    1717
    1818# 此檔自己用的參數區
     
    8787
    8888# 安裝
    89 #install_packages
     89install_nutch_package
    9090
  • 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}
  • nutchez-0.2/src/test/install

    r140 r144  
    2929    tar -zxvf nutchez-0.2-0531.tar.gz -C /opt/
    3030    Install_Nutch
    31    
     31    mkdir /var/nutchez
    3232    chown -R nutchuser:nutchuser /opt/nutchez
    3333    chown -R nutchuser:nutchuser /var/nutchez
     
    3636    su nutchuser -c "touch /home/nutchuser/nutchez/urls/urls.txt"
    3737    su nutchuser -c "mkdir /home/nutchuser/nutchez/search"
    38     # make_client_install
     38    make_client_install
    3939
    4040    # 啟動系統
     
    4545    echo "Install Successfully!!"
    4646    echo "Visit http://$MasterIP_Address:8080"
     47    client_install_command
    4748  elif [ $confirm -eq 2 ]; then
    4849    main
  • nutchez-0.2/src/test/install_func.sh

    r141 r144  
    122122  echo "function make_client_install..."
    123123  client_PassMasterIPAddr
    124   tar -cvzf /opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz  /opt/nutchez/nutch
     124  su nutchuser -c "tar -cvzf /opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz  /home/nutchuser/nutchez/"
    125125}
    126126
     
    131131  su nutchuser -c "$Tomcat_HOME/bin/startup.sh"
    132132}
     133
     134function client_install_command () {
     135  WhereAmI=pwd
     136  echo "Client Install Command as Follows:"
     137  echo "cd ~"
     138  echo "mkdir NutchezClientInstall"
     139  echo "scp $WhereAmI/* ~/NutchezClientInstall"
     140  echo "./client_install"
     141}
Note: See TracChangeset for help on using the changeset viewer.