wiki:jazz/13-01-30

Version 3 (modified by jazz, 12 years ago) (diff)

--

2013-01-30

從 PDF 抽出圖檔

Apache BigTop

  • [參考] How to install Hadoop distribution from Bigtop 0.5.0
  • [測試環境] http://easycloud.nchc.org.tw
    root@vm36:~# lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 12.04.1 LTS
    Release:	12.04
    Codename:	precise
    root@vm36:~# uname -a
    Linux vm36 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
    
  • [注意] 官方說只有支援 64 位元版本
  • [步驟]
    ### 首先,在 EasyCloud 的 VM 切換成 root 會比較方便。
    jazzwang.tw@vm36:~$ su -
    ### 其次,加入 BigTop 的套件金鑰,跟套件庫來源
    root@vm36:~# wget -O- http://archive.apache.org/dist/bigtop/bigtop-0.5.0/repos/GPG-KEY-bigtop | apt-key add -
    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
    ### 更新套件庫
    root@vm36:~# apt-get update
    ### 安裝 BigTop Utility
    root@vm36:~# apt-get install bigtop-utils
    ### 安裝 Oracle Java Runtime and JDK
    root@vm36:~# if [ ! -x /usr/bin/add-apt-repository ]; then
       sudo apt-get -f -y install python-software-properties
     fi
    root@vm36:~# if [ ! -x /usr/bin/java ]; then
       echo "---- [1] Installing Sun Java JDK 6 ........ ----"
       sudo add-apt-repository -y 'deb http://free.nchc.org.tw/debian stable non-free'
       sudo apt-get update
       cat << EOF | sudo /usr/bin/debconf-set-selections
     sun-java6-bin   shared/accepted-sun-dlj-v1-1    select true
     sun-java6-jdk   shared/accepted-sun-dlj-v1-1    select true
     sun-java6-jre   shared/accepted-sun-dlj-v1-1    select true
     EOF
       sudo apt-get -y --force-yes install sun-java6-jdk sun-java6-plugin
       sudo add-apt-repository -r 'deb http://free.nchc.org.tw/debian stable non-free'
     fi