Updated on 2024-11-29 GMT+08:00

Switching the Hive Execution Engine to Tez

Scenario

Hive can use the Tez engine to process data computing tasks. Before executing a task, you can manually switch the execution engine to Tez.

Prerequisites

The TimelineServer role of the Yarn service has been installed in the cluster and is running properly.

Switching the Execution Engine on the Client to Tez

  1. Install and log in to the Hive client. For details, see Using a Hive Client.
  2. Run the following command to switch the engine:

    set hive.execution.engine=tez;
    • To specify a running Yarn queue, run the set tez.queue.name=default command on the client.

  3. Submit and execute the Tez tasks.
  4. Log in to FusionInsight Manager. Choose Cluster > Services > Tez > TezUI(host name) to view the task execution status on the TezUI page.

Switching the Default Execution Engine of Hive to Tez

  1. Log in to FusionInsight Manager. Choose Cluster > Name of the desired cluster > Services > Hive > Configurations > All Configurations > HiveServer(Role), and search for hive.execution.engine.
  2. Set hive.execution.engine to tez.
  3. Click Save. In the displayed confirmation dialog box, click OK.
  4. Choose Dashboard > More > Restart Service to restart the Hive service. Enter the password to restart the service.
  5. Install and log in to the Hive client. For details, see Using a Hive Client.
  6. Submit and execute the Tez tasks.
  7. Log in to FusionInsight Manager and choose Cluster > Name of the desired cluster > Services > Tez > TezUI(host name). On the displayed TezUI page, view the task execution status.