Hive 集成引擎 Tez

本文档详述了如何在Hadoop集群上配置Hive以使用Tez执行引擎,包括下载和安装Tez、配置Hive的tez-site.xml和hive-env.sh文件,以及解决可能遇到的内存限制问题。测试步骤中创建表并插入数据,成功运行Hive查询。注意事项提到当Container使用过多内存时,NodeManager会杀死进程,解决办法是关闭虚拟内存检查或调整内存设置。

安装包准备

1)下载 tez 的依赖包:http://tez.apache.org

2)拷贝 apache-tez-0.9.1-bin.tar.gz 到 Bigdata00 的/opt/software 目录

[luanhao@Bigdata00 software]$ ls apache-tez-0.9.1-bin.tar.gz 

3)解压缩 apache-tez-0.9.1-bin.tar.gz

[luanhao@Bigdata00 software]$ tar -zxvf apache-tez-0.9.1-bin.tar.gz -C /opt/module 

4)修改名称

[luanhao@Bigdata00 module]$ mv apache-tez-0.9.1-bin/ tez-0.9.1

5)将 tez-0.9.1 上传到 HDFS 的 /tez 目录下。

[luanhao@Bigdata00 module]$ hadoop fs -mkdir /tez
[luanhao@Bigdata00 module]$ hadoop fs -put /opt/module/ tez-0.9.1/ /tez 

集成 Tez

1)进入到 Hive 的配置目录:/opt/module/hive/conf

[luanhao@Bigdata00 software]$ pwd /opt/module/hive/conf

2)在 Hive 的/opt/module/hive/conf 下面创建一个 tez-site.xml 文件

[luanhao@Bigdata00 conf]$ pwd 
/opt/module/hive/conf 
[luanhao@Bigdata00 conf]$ vim tez-site.xml

添加如下内容

<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> 
<configuration> 
<!--#配置 Tez 中使用的 uris 的 jar 包路径--> 
<property> 
	<name>tez.lib.uris</name> 
	<val
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值