---
title: 配置Hive配置文件
description: "完成Hive引擎安装后，还需在OmniOperator算子加速特性的配置文件中添加Hive相关配置内容才能执行业务。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2530/bds/kunpengbds_omniruntime_20_0226.html
sourcePath: /source/zh/kunpengboostkithistory/2530/bds/kunpengbds_omniruntime_20_0226.html
indexId: 045e4cec42fdd28de94fd79fb8658117c112d821f8e13775ef3bc7095e46902c78
---
# 配置Hive配置文件

完成Hive引擎安装后，还需在OmniOperator算子加速特性的配置文件中添加Hive相关配置内容才能执行业务。

1. 新增Hive配置内容。

  a. 在集群管理节点和所有计算节点上创建Hive配置文件“/opt/omni-operator/hive/conf/omni.conf”。

```
mkdir -p /opt/omni-operator/hive
vi /opt/omni-operator/hive/conf/omni.conf
```


  b. 按“i”进入编辑模式，新增关于Hive配置相关内容（推荐配置）。

```
# <----Other properties---->
enableBatchExprEvaluate=false
# <----Hive properties---->
EmptySearchStrReplaceRule=REPLACE
CastDecimalToDoubleRule=CONVERT_WITH_STRING
ZeroStartIndexSupportRule=IS_SUPPORT
SupportContainerVecRule=SUPPORT
StringToDateFormatRule=NOT_ALLOW_REDUCED_PRECISION
NegativeStartIndexOutOfBoundsRule=EMPTY_STRING
SupportDecimalPrecisionImprovementRule=IS_SUPPORT
```


  c. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
2. 在集群管理节点的“$HIVE_HOME/conf/hive-site.xml”中添加配置。

  a. 打开文件。

```
vi
$HIVE_HOME
/conf/hive-site.xml
```


  b. 按“i”进入编辑模式，在文件中添加以下内容。

```
<property>
<name>hive.optimize.index.filter</name>
<value>false</value>
</property>
<property>
<name>hive.execution.engine</name>
<value>tez</value>
</property>
```


  c. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
