wiki:jazz/12-10-04

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

--

2012-10-04

Hadoop + HBase + Thrift

  1. 建立 Ubuntu 12.04 Server 環境
  2. 建立 Hadoop 1.0.3 環境
    jazz@precise:~$ wget http://hadoop.nchc.org.tw/~jazz/temp/install-hadoop-1.0.3-precise
    jazz@precise:~$ chmod a+x install-hadoop-1.0.3-precise
    jazz@precise:~$ ./install-hadoop-1.0.3-precise
    
  3. 建立 HBase 0.94.1 環境
    jazz@precise:~$ wget http://hadoop.nchc.org.tw/~jazz/temp/install-hbase-0.94.1-precise
    jazz@precise:~$ chmod a+x install-hbase-0.94.1-precise
    jazz@precise:~$ ./install-hbase-0.94.1-precise
    
  4. 下載 Thrift 0.8
    jazz@precise:~$ sudo apt-get install make libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
    jazz@precise:~$ wget https://dist.apache.org/repos/dist/release/thrift/0.8.0/thrift-0.8.0.tar.gz
    jazz@precise:~$ tar zxvf thrift-0.8.0.tar.gz
    jazz@precise:~$ cd thrift-0.8.0/
    jazz@precise:~/thrift-0.8.0$ ./configure 
    jazz@precise:~/thrift-0.8.0$ make
    jazz@precise:~/thrift-0.8.0$ sudo make install
    
    或者如果未來希望可以包成套件,以後還可以反安裝,可以裝 checkinstall
    jazz@precise:~$ sudo apt-get install make libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
    jazz@precise:~$ wget https://dist.apache.org/repos/dist/release/thrift/0.8.0/thrift-0.8.0.tar.gz
    jazz@precise:~$ tar zxvf thrift-0.8.0.tar.gz
    jazz@precise:~$ cd thrift-0.8.0/
    jazz@precise:~/thrift-0.8.0$ ./configure 
    jazz@precise:~/thrift-0.8.0$ checkinstall
    
  5. 安裝設定 PHP & Apache2
    jazz@precise:~/thrift-0.8.0$ sudo apt-get -y libapache2-mod-php5