You can do this in two ways:
1) DIRECTLY WITHIN SINGLE HIVE SCRIPT (.hql file)
Just put your properties at the beginning of your Hive hql script, like:
set hive.execution.engine=tez;
CREATE TABLE...
2) VIA APPLICATION CONFIGURATIONS
When you create a EMR cluster, you can specify Hive configurations that work for the entire cluster's lifetime. This can be made either via AWS Management Console, or via AWS CLI.
a) AWS Management Console
- Open AWS EMR service and click on Create cluster button

- Click on Go to advanced options at the top

- Be sure to select Hive among the applications, then enter a JSON configuration like below, where you can find all properties you usually have in
hive-site
xml configuration, I highlighted the TEZ property as example. You can optionally load the JSON from a S3 path.

b) AWS CLI
As stated in detail here, you can specify the Hive configuration on cluster creation, using the flag --configurations
, like below:
aws emr create-cluster --configurations file://configurations.json --release-label emr-5.9.0 --instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m4.large InstanceGroupType=CORE,InstanceCount=2,InstanceType=m4.large --auto-terminate
The JSON file has the same content shown above in the Management Console example.
Again, you can optionally specify a S3 path instead:
--configurations https://s3.amazonaws.com/myBucket/configurations.json