Help Center> MapReduce Service> Troubleshooting> Using Hive> An Error Is Reported When the Hive Sample Program Is Running After the Domain Name of a Cluster Is Changed
Updated on 2023-11-30 GMT+08:00

An Error Is Reported When the Hive Sample Program Is Running After the Domain Name of a Cluster Is Changed

Symptom

In the sample code for Hive secondary development, error "No rules applied to ****" is reported.

Cause Analysis

  1. The sample code for Hive secondary development loads core-site.xml file that is loaded through classload by default. Therefore, you need to put the configuration file to the classpath directory of the startup program.
  2. If the domain name of the cluster is changed, the core-site.xml file will change. You need to download the latest core-site.xml file and save it to the classpath directory where the sample code for Hive secondary development is located.

Solution

  1. Download the latest client of the Hive cluster to obtain the latest core-site.xml file.
  2. Save the core-site.xml file to the classpath directory where the sample code process for Hive secondary development is located.