Help Center> MapReduce Service> Component Operation Guide (Normal)> Using Sqoop> Common Issues About Sqoop> What Should I Do If Method getHiveClient Does Not Exist?
Updated on 2022-12-02 GMT+08:00

What Should I Do If Method getHiveClient Does Not Exist?

Question

What should I do if the getHiveClient method does not exist when data is synchronized using HCatalog?

Answer

Copy the JAR package from https://repo.huaweicloud.com/repository/maven/huaweicloudsdk/org/apache/hive/hcatalog/hive-hcatalog-core/ to the HCatalog directory of the MRS client and rename the original JAR package. As shown in the following figure, 302002.jar is the new package and 310001-SNAPSHOT.jar.bak is the original package with the suffix .bak.

Figure 1 HCatalog directory
Figure 2 Replacing the JAR file