wiki:jazz/13-11-30

Version 9 (modified by jazz, 11 years ago) (diff)

--

2013-11-30

CDH4 on hiCloud Ubuntu 12.04 VM

## 產生 zh_TW.UTF-8 語系支援
locale-gen zh_TW.UTF-8
## 安裝 Sun JDK 6
if [ ! -x /usr/bin/add-apt-repository ]; then   sudo apt-get -f -y install python-software-properties; fi
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 squeeze 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 squeeze non-free'
fi
## 下載 CDH4 設定金鑰與套件庫清單檔(/etc/apt/sources.list.d/cloudera-cdh4.list)
wget http://archive.cloudera.com/cdh4/one-click-install/precise/amd64/cdh4-repository_1.0_all.deb
dpkg -i cdh4-repository_1.0_all.deb
## 設定單機偽分散模式 Pseudo-Distributed Mode
sudo apt-get update
sudo apt-get install hadoop-0.20-conf-pseudo
wget http://drbl.nchc.org.tw/GPG-KEY-DRBL
sudo apt-key add GPG-KEY-DRBL
sudo apt-get update
sudo apt-get -y install drbl clonezilla live-helper cdebootstrap zip
sudo /opt/drbl/sbin/drblsrv -i
sudo /opt/drbl/sbin/drblpush -i

HDP for Windows