解压 Tez 到Hive 本地目录:
vim hive_home/conf/hive-env.sh
shell
export TEZ_JARS="/Users/zhenqin/software/tez"
for f in $TEZ_JARS/*.jar; do
if [ "$HIVE_CLASSPATH" ]; then
export HIVE_CLASSPATH=$HIVE_CLASSPATH:$f
else
export HIVE_CLASSPATH=$f
fi
done
export HIVE_CLASSPATH=$HIVE_CLASSPATH:${TEZ_JARS}/lib/*
上传 tez tar 到 HDFS:
${fs.defaultFS}/lib/tez/
vim hive_home/conf/hive-site.xml
xml
<property>
<name>hive.execution.engine</name>
<value>tez</value>
</property>
<property>
<name>tez.lib.uris</name>
<value>${fs.defaultFS}/lib/tez/tez-0.7.1.tar.gz</value>
</property>