Ubuntu12.04安装Hive(二)
来源:互联网 发布:软件生命周期v模型 编辑:程序博客网 时间:2024/06/16 10:21
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.
- $ sudo tar -xzf hive-0.10.0.tar.gz
step 3: copy the uncompressed files to the directory /home/hadoop/.
- $ 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.
- $ 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:
- $ 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.
- $ sudo chown -R hadoop:hadoop hive
step 7: start hive and test hive
- $ 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
- mv conf/hive-exec-log4j.properties.template conf/hive-exec-log4j.properties
- 如果不修改此文件的话 启动hive时会出现警告信息的
step 8: 配置hive支持mysql数据的导入
- 要把mysql-connector-java-5.1.22-bin.jar 复制到 hive/lib目录下
- 如果不修改此文件的话 启动hive时会出现警告信息的
444
- Ubuntu12.04安装Hive(二)
- 安装 phpdaemon (ubuntu12.04)
- hadoop安装日记(二):ubuntu12.04 安装配置jdk1.7
- Hive安装(二)之表不见了
- 深入浅出 - Android系统移植与平台开发(二)- 安装Vmware虚拟机及Ubuntu12.04
- 二、Ubuntu12.04和14.04安装ssh和vnc远程桌面
- ubuntu12安装后语言和软件源设置(二)
- ubuntu12.04安装中文输入法(ibus)
- Win7硬盘安装ubuntu12.04(亲测)
- zedboard---ubuntu12.04安装(一)
- vim 安装及使用(Ubuntu12.04)
- rapidsvn的安装(ubuntu12.04)
- ubuntu12.04下安装pyhton(粗略)
- Linux(Ubuntu12.04)安装nginx
- ubuntu12.04安装openvpn
- UBUNTU12.04安装笔记
- 安装Ubuntu12.04
- 虚拟机安装Ubuntu12.04
- PostgreSQL数据类型
- 《代码整洁之道》读书笔记3
- Segmentation fault (core dumped)
- Mysql何时应该数据索引
- poj1004 输出小数的固定位数
- Ubuntu12.04安装Hive(二)
- SVN 配置方法
- .NET C# List泛型集合
- git 版本控制软件的更新
- sql 中 case when 语法
- ROW_NUMBER、RANK、DENSE_RANK的用法
- c# 修饰词public, protected, private,internal,protected的区别
- hadoop社区和cloudera几个版本之间的区别
- ASP.NET(C#)中遍历所有控件