Hadoop CDH4.4.0上HIVE安装

接上一篇Hadoop集群安装,hive是少不了的。简单记录下安装过程。

hive只在一个节点上安装就行,这里安装在hadoop-001


hadoop-001 10.168.204.55  hive

hadoop-005 10.168.204.59  mysql

hadoop版本:CDH4.4.0
centos版本:6.3


一、准备

    1. 下载tarball

    

wget http://archive.cloudera.com/cdh4/cdh/4/hive-0.10.0-cdh4.4.0.tar.gz
tar -xvzf  hive-0.10.0-cdh4.4.0.tar.gz


二、配置

  1. metastore改为mysql

    

create user hive
create database hive
grant all privileges on hive.* to 'hive'@'10.168.255.55' identified by 'hive'


  2. hive-site.xml

  


  javax.jdo.option.ConnectionURL
  
  jdbc:mysql://10.168.204.59:3306/hive?createDatabaseIfNotExist=true
  JDBC connect string for a JDBC metastore


  javax.jdo.option.ConnectionUserName
  hive
  username to use against metastore database



  javax.jdo.option.ConnectionPassword
  hive
  password to use against metastore database

3. jdbc

    将mysql的jdbc driver 包扔到 hive/lib/ 目录下.

     http://dev.mysql.com/downloads/connector/j/  下载最新的mysql driver

  

三、启动

    cd hive/bin

    ./hive


四、遇到的问题



微博:http://weibo.com/kingjames3

你可能感兴趣的:(Hadoop CDH4.4.0上HIVE安装)