Help Center/ MapReduce Service/ User Guide (Kuala Lumpur Region)/ Troubleshooting/ Using Hive/ Sample Code Error for Hive Secondary Development After Domain Switching
Updated on 2022-12-14 GMT+08:00

Sample Code Error for Hive Secondary Development After Domain Switching

Symptom

In the sample code for Hive secondary development, an 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.