Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using Hive/ Common Issues About Hive/ Why Is Hive on Spark Task Freezing When HBase Is Not Installed?
Updated on 2025-11-19 GMT+08:00

Why Is Hive on Spark Task Freezing When HBase Is Not Installed?

Question

How to handle Hive on Spark task lag when HBase is not installed?

Cause Analysis

The Spark kernel version of Hive on Spark tasks has been upgraded to Spark2x. Hive on Spark tasks can be executed is Spark2x is not installed.If HBase is not installed, when Spark tasks are executed, the system attempts to connect to the ZooKeeper to access HBase until timeout occurs by default. As a result, task freezing occurs.

If HBase is not installed, perform the Procedure to execute Hive on Spark tasks.

Procedure

  1. Log in to FusionInsight Manager.
  2. Choose Cluster > Services > Hive > Configurations > All Configurations.
  3. Choose HiveServer(Role) > Customization. Add a customized parameter to the spark-defaults.conf parameter file. Set Name to spark.security.credentials.hbase.enabled, and set Value to false.
  4. Click Save. In the dialog box that is displayed, click OK.
  5. Click Instances, select all Hive instances, choose More > Restart Instance, enter the password, and click OK.