Changes between Version 3 and Version 4 of jazz/13-01-30


Ignore:
Timestamp:
Jan 30, 2013, 5:55:05 PM (12 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/13-01-30

    v3 v4  
    3131jazzwang.tw@vm36:~$ su -
    3232### 其次,加入 BigTop 的套件金鑰,跟套件庫來源
    33 root@vm36:~# wget -O- http://archive.apache.org/dist/bigtop/bigtop-0.5.0/repos/GPG-KEY-bigtop | apt-key add -
    34 root@vm36:~# wget -O /etc/apt/sources.list.d/bigtop-0.5.0.list http://archive.apache.org/dist/bigtop/bigtop-0.5.0/repos/`lsb_release --codename --short`/bigtop.list
     33root@vm36:~# wget -O- http://archive.apache.org/dist/bigtop/bigtop-0.4.0/repos/GPG-KEY-bigtop | apt-key add -
     34root@vm36:~# wget -O /etc/apt/sources.list.d/bigtop-0.4.0.list http://archive.apache.org/dist/bigtop/bigtop-0.4.0/repos/`lsb_release --codename --short`/bigtop.list
    3535### 更新套件庫
    3636root@vm36:~# apt-get update
     
    4040root@vm36:~# if [ ! -x /usr/bin/add-apt-repository ]; then
    4141   sudo apt-get -f -y install python-software-properties
    42  fi
     42fi
    4343root@vm36:~# if [ ! -x /usr/bin/java ]; then
    4444   echo "---- [1] Installing Sun Java JDK 6 ........ ----"
     
    4949 sun-java6-jdk   shared/accepted-sun-dlj-v1-1    select true
    5050 sun-java6-jre   shared/accepted-sun-dlj-v1-1    select true
    51  EOF
     51EOF
    5252   sudo apt-get -y --force-yes install sun-java6-jdk sun-java6-plugin
    5353   sudo add-apt-repository -r 'deb http://free.nchc.org.tw/debian stable non-free'
    54  fi
     54fi
     55### 設定 JAVA_HOME 到 BigTop Utility 預設值
     56root@vm36:~# echo "export JAVA_HOME=/usr/lib/jvm/java-6-sun" >> /etc/default/bigtop-utils
     57### 安裝 Hadoop 相關套件
     58root@vm36:~# apt-get -y install hadoop-hdfs\* hadoop-mapreduce\*
    5559}}}