Changeset 151 for nutchez-0.2/src
- Timestamp:
- Jun 4, 2010, 10:10:49 AM (14 years ago)
- Location:
- nutchez-0.2/src/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/client_install
r147 r151 23 23 # 參數詢問 24 24 yesno="no" 25 echo -e "\n Your master IP: $Master_IP_Address"25 echo -e "\n\033[31mYour master IP: $Master_IP_Address\033[0m" 26 26 read -p "Is this data cooect? (yes/no): " yesno 27 27 -
nutchez-0.2/src/test/client_install_func.sh
r149 r151 13 13 function check_root(){ 14 14 # 正式版後可拿掉此 echo 15 echo -e "\n = check_root (debug) ="15 echo -e "\n\033[31m= check_root (debug) =\033[0m" 16 16 if [ $USER != "root" ]; then 17 17 echo -e "\nPlz Change root to execute it!!!" … … 25 25 # 查出此主機的作業系統,以及版本 26 26 function check_systemInfo(){ 27 echo -e "\n = check_systemInfo (debug) ="27 echo -e "\n\033[31m= check_systemInfo (debug) =\033[0m" 28 28 echo -e "\nYour system information are:" 29 29 Linux_Distribution=$(lsb_release -a 2> /dev/null | grep "Distributor ID:" | awk '{print $3}') … … 36 36 function install_packages(){ 37 37 # deb 系列系統 38 echo -e "\n = install_packages (debug) ="38 echo -e "\n\033[31m= install_packages (debug) =\033[0m" 39 39 echo -e "\nCheck dependent packages" 40 40 if [ "$Linux_Distribution" == "Ubuntu" ] || [ "$Linux_Distribution" == "Debian" ] ;then … … 55 55 # 目前先檢查是否有/opt/nutchez 這個資料夾即可 56 56 function check_nez_installed(){ 57 echo -e "\n = chcheck_nez_installed (debug) ="57 echo -e "\n\033[31m= chcheck_nez_installed (debug) =\033[0m" 58 58 if [ -d /opt/nutchez ]; then 59 59 echo -e "\nSystem already had NutchEz." … … 69 69 # (3)系統有安裝但Sun Java 在非預設路徑下 (4)以正確安裝 Sun JAVA 預設路徑下 70 70 function check_sunJava(){ 71 echo -e "\n = check_sunJava (debug) ="71 echo -e "\n\033[31m= check_sunJava (debug) =\033[0m" 72 72 echo -e "\nNutchEz need Sun Java JDK 1.6.x or above version" 73 73 … … 130 130 # 檢查是否有安裝openssh, openssh-server 131 131 function check_ssh(){ 132 echo -e "\n = check_ssh (debug) ="132 echo -e "\n\033[31m= check_ssh (debug) =\033[0m" 133 133 if [ -e /usr/bin/ssh ]; then 134 134 echo -e "\nSystem has ssh." … … 149 149 # 檢查是否有安裝dialog 150 150 function check_dialog(){ 151 echo -e "\n = check_dialog (debug) ="151 echo -e "\n\033[31m= check_dialog (debug) =\033[0m" 152 152 if [ -e /usr/bin/dialog ]; then 153 153 echo -e "\nSystem has dialog." … … 163 163 # 此步驟若無法連到 master 則跳出 164 164 function scp_master_nutchuser_sshkey(){ 165 echo -e "\n = scp_master_nutchuser_sshkey (debug) ="165 echo -e "\n\033[31m= scp_master_nutchuser_sshkey (debug) =\033[0m" 166 166 echo -e "mkdir -p /home/nutchuser/" 167 167 mkdir -p /home/nutchuser/.ssh/ … … 191 191 # 新增nutchuser 帳號時用 Nutchuser_Passwd 當密碼 192 192 function creat_nutchuser_account(){ 193 echo -e "\n = creat_nutchuser_account (debug) ="193 echo -e "\n\033[31m= creat_nutchuser_account (debug) =\033[0m" 194 194 195 195 while [ "$Nutchuser_Passwd" != "$Nutchuser_Passwd2" ] … … 232 232 # 目前僅需做到能無礙的複製遠端的/opt/nutchez/到local的/opt/ 233 233 function scp_packages(){ 234 echo -e "\n = scp_packages (debug) ="234 echo -e "\n\033[31m= scp_packages (debug) =\033[0m" 235 235 chmod 777 /opt 236 236 mkdir /opt/nutchez … … 248 248 249 249 function install_nutch_package(){ 250 echo -e "\n\033[31m= install_nutch_package (debug) =\033[0m" 250 251 tar -zxvf /opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz -C / 251 252 /opt/nutchez/nutch/bin/hadoop-daemon.sh start datanode … … 254 255 255 256 function recall_hostname_ip(){ 256 echo -e "\n = recall_hostname_ip (debug) ="257 echo -e "\n\033[31m= recall_hostname_ip (debug) =\033[0m" 257 258 258 259 net_interfaces=$(ifconfig | grep ^eth | cut -d " " -f1)
Note: See TracChangeset
for help on using the changeset viewer.