You've already forked www.colben.cn
update
This commit is contained in:
@@ -51,18 +51,12 @@ Rocky9 | hive-ms21 | 192.168.8.21/24 | Hive Metastore, MySQL8.0, Tez
|
||||
- 上传 tez-dist/target/tez-0.9.2.tar.gz 到 **hive-hs20** 中
|
||||
|
||||
## 部署 tez 环境
|
||||
- 在 **hive-hs20** 执行如下操作
|
||||
- 上传 tez-0.9.2.tar.gz 到 hdfs
|
||||
- 在 **hive-hs20** 上 put tez-0.9.2.tar.gz 到 hdfs
|
||||
```bash
|
||||
hdfs dfs -mkdir /tez
|
||||
hdfs dfs -put tez-0.9.2.tar.gz /tez/
|
||||
```
|
||||
|
||||
- 创建 tez staging 目录
|
||||
```bash
|
||||
hdfs dfs -mkdir -p /hive/tez/staging
|
||||
```
|
||||
|
||||
- 在**全部 hive 主机**上解压 tez 部署包
|
||||
```bash
|
||||
mkdir /opt/tez
|
||||
@@ -86,10 +80,6 @@ Rocky9 | hive-ms21 | 192.168.8.21/24 | Hive Metastore, MySQL8.0, Tez
|
||||
</configuration>
|
||||
```
|
||||
|
||||
### 修改 hive-site.xml
|
||||
- 在**全部 hive 主机**上执行如下操作
|
||||
- 参考[在 $HIVE_HOME/etc/hadoop/yarn-site.xml 中配置 tez staging 目录](/post/hive2/#创建-hive-sitexml)
|
||||
|
||||
### 修改 hive-env.sh
|
||||
- 在**全部 hive 主机**上执行如下操作
|
||||
- 编辑 $HIVE_HOME/conf/hive-env.sh,在文件最后增加如下内容
|
||||
@@ -111,8 +101,9 @@ Rocky9 | hive-ms21 | 192.168.8.21/24 | Hive Metastore, MySQL8.0, Tez
|
||||
- 重启 hive metastore 和 hiveserver2
|
||||
|
||||
## 设置引擎
|
||||
- 设置 hive 引擎为 tez,执行 sql 语句
|
||||
- 客户端连接 hive,设置引擎为 tez,执行 sql 语句
|
||||
```sql
|
||||
set hive.execution.engine=tez;
|
||||
-- 后面操作数据时不再报 "WARNING: Hive-on-MR is deprecated in Hive 2 ..."
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user