Ubuntu12.04安装Hive(二)
2013-09-17 13:30
309 查看
This post is about the installation of Hive on Ubuntu. The environment of my system is ubuntu12.04, hadoop1.0.3, hive 0.9.0. Supposing the hadoop is installed.
The details of installation for hive describe as follows:
step 1: download hive-0.9.0.tar.gz from the url: http://hive.apache.org/index.html
step 2: uncompress the above file using linux command in the shell.
[plain] view
plaincopy
$ sudo tar -xzf hive-0.10.0.tar.gz
step 3: copy the uncompressed files to the directory /home/hadoop/.
[html] view
plaincopy
$ sudo cp -r /home/eboss/hive /usr/local/hadoop/
$ mvhive-0.10.0
hive
step 4: entry the configure directory of hive and copy the configure file.
[html] view
plaincopy
$ cd /usr/local/hadoop/hive/conf
$ sudo cp hive-env.sh.template hive-env.sh
step 5: modify the configure file in the last line as follows:
[html] view
plaincopy
$ sudo gedit /usr/local/hadoop/hive/conf/hive-env.sh
#add the below configure information
export Hadoop_HOME=/usr/local/hadoop/
export HIVE_HOME=/usr/local/hadoop/hive
export PATH=$PATH:/usr/local/hadoop/hive/bin
step 6: change the directory of hive to the hadoop user.
[html] view
plaincopy
$ sudo chown -R hadoop:hadoop hive
step 7: start hive and test hive
[html] view
plaincopy
$ bin/hive or bin/hive start or ./hive
$ show tables;
$ create database hive;
$ use hive;
$ create table test(id int,name string);
step 8: modify hive-exec-log4j.properties.template
[html] view
plaincopy
mv conf/hive-exec-log4j.properties.template conf/hive-exec-log4j.properties
如果不修改此文件的话 启动hive时会出现警告信息的
step 8: 配置hive支持mysql数据的导入
[html] view
plaincopy
要把mysql-connector-java-5.1.22-bin.jar 复制到 hive/lib目录下
如果不修改此文件的话 启动hive时会出现警告信息的
444
The details of installation for hive describe as follows:
step 1: download hive-0.9.0.tar.gz from the url: http://hive.apache.org/index.html
step 2: uncompress the above file using linux command in the shell.
[plain] view
plaincopy
$ sudo tar -xzf hive-0.10.0.tar.gz
step 3: copy the uncompressed files to the directory /home/hadoop/.
[html] view
plaincopy
$ sudo cp -r /home/eboss/hive /usr/local/hadoop/
$ mvhive-0.10.0
hive
step 4: entry the configure directory of hive and copy the configure file.
[html] view
plaincopy
$ cd /usr/local/hadoop/hive/conf
$ sudo cp hive-env.sh.template hive-env.sh
step 5: modify the configure file in the last line as follows:
[html] view
plaincopy
$ sudo gedit /usr/local/hadoop/hive/conf/hive-env.sh
#add the below configure information
export Hadoop_HOME=/usr/local/hadoop/
export HIVE_HOME=/usr/local/hadoop/hive
export PATH=$PATH:/usr/local/hadoop/hive/bin
step 6: change the directory of hive to the hadoop user.
[html] view
plaincopy
$ sudo chown -R hadoop:hadoop hive
step 7: start hive and test hive
[html] view
plaincopy
$ bin/hive or bin/hive start or ./hive
$ show tables;
$ create database hive;
$ use hive;
$ create table test(id int,name string);
step 8: modify hive-exec-log4j.properties.template
[html] view
plaincopy
mv conf/hive-exec-log4j.properties.template conf/hive-exec-log4j.properties
如果不修改此文件的话 启动hive时会出现警告信息的
step 8: 配置hive支持mysql数据的导入
[html] view
plaincopy
要把mysql-connector-java-5.1.22-bin.jar 复制到 hive/lib目录下
如果不修改此文件的话 启动hive时会出现警告信息的
444
相关文章推荐
- (转)ubuntu 12 04下安装JDK7
- Ubuntu 12,04安装ROS Hydro
- ubuntu 12 04下安装JDK7
- Ubuntu 12..04中安装Chrome
- 新博客第一篇:Ubuntu 12..04 安装成功
- 成功安装oxford8th (ubuntu12 04,14 04之前不行,后来没试 )
- 硬盘安装ubuntu12-04各个问题点
- Ubuntu 12.04,Git的安装及使用
- ubuntu 12 04下安装JDK7
- ubuntu12-04-4安装java1.8.5
- ubuntu 12 04下安装JDK7
- ubuntu14.04 server 安装vmware worktation 12
- 04.ubuntu下kvm 命令行安装64位ubuntu报"Couldn't find hvm kernel for Ubuntu tree."的问题
- ubuntu 12.04安装codeblocks 13 .12
- Ubuntu 16中如何安装TeamViewer 12
- 用Wubi来安装Ubuntu 12
- Hive1.2.2安装步骤(Ubuntu17.04环境下搭建)
- ubuntu 14 .04 LTS 安装配置 hadoop 1.0.4 写给hadoop入门者
- 基于ubuntu16.04 源码安装 tensorflow
- Ubuntu 16.04安装Mac OS 12虚拟机资源(没成功,但资源还是可以用)