Hive安装指导
来源:互联网 发布:淘宝网雪地靴童鞋 编辑:程序博客网 时间:2024/05/24 02:16
本篇为安装篇较简单:
这里关键是配置文件的配置。
前提:
1: 安装了hadoop-1.0.4正常运行
2:安装了hbase-0.94.3, 正常运行
接下来,安装Hive,基于已经安装好的hadoop,步骤如下:
1:下载
从http://hive.apache.org/下载hive-0.9.0/
创建目录
/hive
将文件hive-0.9.0保存在/hive下
2:解压缩
[root@pg2 download]# cd /hive
[root@pg2 hive]# ls
hive-0.9.0.tar.gz
[root@pg2 hive]# tar xfz hive-0.9.0.tar.gz
[root@pg2 hive-0.9.0]# ls
bin conf docs examples lib LICENSE NOTICE README.txt RELEASE_NOTES.txt scripts src
[root@pg2 hive-0.9.0]#
3:配置
进入conf目录
[root@pg2 hive-0.9.0]# cd conf
[root@pg2 conf]# ls
hive-default.xml.template hive-env.sh.template hive-exec-log4j.properties.template hive-log4j.properties.template
[root@pg2 conf]#
做如下配置:
首先复制几个template文件
[root@pg2 conf]# cp hive-default.xml.template hive-default.xml
[root@pg2 conf]# cp hive-env.sh.template hive-env.sh
[root@pg2 conf]# cp hive-log4j.properties.template hive-log4j.properties
[root@pg2 conf]# cp hive-exec-log4j.properties.template hive-exec-log4j.properties
然后配置对应的配置文件
a: hive-default.xml
缺省先不修改
b:hive-env.sh
缺省的为256M,此处暂时不调整
# export HADOOP_HEAPSIZE=1024
# Set HADOOP_HOME to point to a specific hadoop install directory
HADOOP_HOME=/hadoop/hadoop-1.0.4
# Hive Configuration Directory can be controlled by:
export HIVE_CONF_DIR=/hive/hive-0.9.0/conf
4:启动
进入/hive/hive-0.9.0/bin
[root@pg2 conf]# cd ../bin
[root@pg2 bin]# ls
ext hive hive-config.sh
[root@pg2 bin]# ./hive
WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
Logging initialized using configuration in file:/hive/hive-0.9.0/conf/hive-log4j.properties
Hive history file=/tmp/root/hive_job_log_root_201301032313_932376477.txt
hive>
hive> show tables;
OK
Time taken: 21.874 seconds
hive>
这里关键是配置文件的配置。
前提:
1: 安装了hadoop-1.0.4正常运行
2:安装了hbase-0.94.3, 正常运行
接下来,安装Hive,基于已经安装好的hadoop,步骤如下:
1:下载
从http://hive.apache.org/下载hive-0.9.0/
创建目录
/hive
将文件hive-0.9.0保存在/hive下
2:解压缩
[root@pg2 download]# cd /hive
[root@pg2 hive]# ls
hive-0.9.0.tar.gz
[root@pg2 hive]# tar xfz hive-0.9.0.tar.gz
[root@pg2 hive-0.9.0]# ls
bin conf docs examples lib LICENSE NOTICE README.txt RELEASE_NOTES.txt scripts src
[root@pg2 hive-0.9.0]#
3:配置
进入conf目录
[root@pg2 hive-0.9.0]# cd conf
[root@pg2 conf]# ls
hive-default.xml.template hive-env.sh.template hive-exec-log4j.properties.template hive-log4j.properties.template
[root@pg2 conf]#
做如下配置:
首先复制几个template文件
[root@pg2 conf]# cp hive-default.xml.template hive-default.xml
[root@pg2 conf]# cp hive-env.sh.template hive-env.sh
[root@pg2 conf]# cp hive-log4j.properties.template hive-log4j.properties
[root@pg2 conf]# cp hive-exec-log4j.properties.template hive-exec-log4j.properties
然后配置对应的配置文件
a: hive-default.xml
缺省先不修改
b:hive-env.sh
缺省的为256M,此处暂时不调整
# export HADOOP_HEAPSIZE=1024
# Set HADOOP_HOME to point to a specific hadoop install directory
HADOOP_HOME=/hadoop/hadoop-1.0.4
# Hive Configuration Directory can be controlled by:
export HIVE_CONF_DIR=/hive/hive-0.9.0/conf
4:启动
进入/hive/hive-0.9.0/bin
[root@pg2 conf]# cd ../bin
[root@pg2 bin]# ls
ext hive hive-config.sh
[root@pg2 bin]# ./hive
WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
Logging initialized using configuration in file:/hive/hive-0.9.0/conf/hive-log4j.properties
Hive history file=/tmp/root/hive_job_log_root_201301032313_932376477.txt
hive>
hive> show tables;
OK
Time taken: 21.874 seconds
hive>
0 0
- Hive安装指导
- Hive安装指导
- hive 0.13.1 安装指导
- Hive远程模式安装指导
- Hive 内嵌模式安装指导
- hive入门学习线路指导
- hive入门学习线路指导
- hive入门学习线路指导
- hive入门学习线路指导
- Hive优化--关键参数配置指导
- Hive优化--定位调优指导
- [Hive]Hive安装
- hive系列-hive安装
- SYBASE12.5安装指导
- EA700A 安装指导
- Procps安装指导
- Axis安装指导
- Redmine安装指导
- 第四题(在二元树中找出和为某一值的所有路径)
- Eclipse j安装ADT插件遇到问题(eclipse-jee-luna-R-win32-x86_64)
- VC/MFC 隐藏文件
- 最强大脑之最强记忆,是学霸就拿100分
- C 一个字符串有三段,第一段原样输出,第二段为要输出字符串的长度,第三段为根据第二段长度补齐第一段
- Hive安装指导
- UVa OJ 回文词(401)
- Ecological intensification
- 高并发处理方案
- 2008server Could not load type System.ServiceModel.Activation.HttpModule解决办法
- ORACLE MOVE表空间
- 《深度探索linux》中,bash4.2的configure 和 make中出现的问题与解决办法
- UI界面设计
- hdu1031Design T-Shirt