hive ODBC 安装

To get to this stage, these are the steps I followed (I started with the instructions here: http://wiki.apache.org/hadoop/Hive/HiveODBC):

UnixODBC Build/Install (To confirm it builds prior to trying it with the HiveODBC pieces)
* tar -xzvf unixODBC-2.3.0.tar.gz
* cd unixODBC-2.3.0
* ./configure
* make
* sudo make install
* installed in /usr/local

Boost Build/Install
* cd /usr/local
* sudo tar -xjvf /buildloc/boost_1_45_0.tar.bz2
* cd boost_1_45_0
* sudo ./bootstrap.sh
* sudo ./bjam
* sudo ./bjam install
* export BOOST_HOME=/usr/local/boost_1_45_0

Installed JDK 1.6.0_17 in /usr/java/jdk1.6.0_17
export JAVA_HOME=/usr/java/jdk1.6.0_17
export HADOOP_HOME=/usr/local/hadoop

Apache Ant 1.8.2 Install
* cd /usr/local
* sudo tar -xzvf /buildloc/apache-ant-1.8.2.tar.gz
* export PATH=/usr/local/apache-ant-1.8.2/bin:$PATH
* export ANT_HOME=/usr/local/apache-ant-1.8.2

Apache Ivy 2.2.0 Install
* cd /usr/local
* sudo tar -xzvf /buildloc/apache-ivy-2.2.0-bin.tar.gz
* cd apache-ivy
* sudo cp ivy-2.2.0.jar /usr/local/apache-ant-1.8.2/lib
* export IVY_HOME=/usr/local/apache-ivy-2.2.0/

Install GNU autoconf 2.68
* cd /buildloc
* tar -xzvf autoconf-2.68.tar.gz
* cd autoconf-2.68
* ./configure --prefix=/usr/local/autoconf-2.68
* make
* make install
* export PATH=/usr/local/autoconf-2.68/bin:$PATH

Thrift Build/Install
* cd /buildloc
* rm -rf thrift-0.6.0
* tar -xzvf thrift-0.6.0.tar.gz
* cd thrift-0.6.0
* ./configure --prefix=/usr/local/thrift --with-boost=/usr/local/boost_1_45_0
* make
* make install
* thrift now in /usr/local/thrift
* export THRIFT_HOME=/usr/local/thrift

FB303 Build/Install
* cd /buildloc/thrift-0.6.0/contrib/fb303
* ./bootstrap.sh
* cd /home/ptrout/thrift-0.6.0/contrib/fb303/cpp/gen-cpp
* vi fb303_types.cpp
** get rid of all fb_status:* cd /buildloc/thrift-0.6.0/contrib/fb303
* make
* make install

Apache Maven 3.0.2 Install (Required to build the Hive pieces)
* cd /usr/local
* tar -xzvf /buildloc/apache-maven-3.0.2.tar.gz
* export MAVEN_HOME=/usr/local/apache-maven-3.0.2
* export PATH=/usr/local/apache-maven-3.0.2/bin:$PATH

Install Hive 0.7.0 CDH3B4
* cd /usr/local
* tar -xzvf /buildloc/hive-0.7.0-CDH3B4.tar.gz
* cd hive-0.7.0-CDH3B4/conf
* cp /usr/local/hive/conf/hive-site.xml .
* edit hive-site.xml
* /usr/local/hive-0.7.0-CDH3B4/bin/hive appears to work
* export HIVE_HOME=/usr/local/hive-0.7.0CDH3B4

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值