While Running the Process, HCatalogue throws "java.lang.ClassNotFoundException: org.apache.hadoop.hive.common.LogUtils"

While Running the Process, HCatalogue throws "java.lang.ClassNotFoundException: org.apache.hadoop.hive.common.LogUtils"

book

Article ID: KB0078624

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Big Data 6.3.0

Description

While Running the Process using Cloudera and Hadoop Version  5.13, HCatalogue throws "java.lang.ClassNotFoundException: org.apache.hadoop.hive.common.LogUtils". 

Note: HCatalog is a table storage management tool for Hadoop that exposes the tabular data of Hive metastore to other Hadoop applications. It enables users with different data processing tools (Pig, MapReduce) to easily write data onto a grid.

Issue/Introduction

While Running the Process, HCatalogue throws "java.lang.ClassNotFoundException: org.apache.hadoop.hive.common.LogUtils".

Environment

Product: TIBCO ActiveMatrix BusinessWorks Plug-in for Big Data Version: 6.3.x OS: ALL

Resolution

To resolve "java.lang.ClassNotFoundException: org.apache.hadoop.hive.common.LogUtils", please follow the below steps changes Cloudera server side:

1. Browse to the following location:
a)For Parcel Installation go to "/opt/cloudera/parcels/<CDH-Version>/lib/hive/lib/"
b)For Package Installation go to "usr/lib/hive/lib/"
   
2. Copy all hive*.jar from "/opt/cloudera/parcels/<CDH-Version>/lib/hive/lib" to "/opt/cloudera/parcels/<CDH-Version>/lib/hadoop/lib" on each node.
e.g. Copy all hive*.jar from /opt/cloudera/parcels/CDH-5.9.2-1.cdh5.9.2.p0.3/lib/hive/lib to /opt/cloudera/parcels/CDH-5.9.2-1.cdh5.9.2.p0.3/lib/hadoop/lib on each node.

Alternatively, you can also add HADOOP_CLASSPATH in hadoop-env.sh on each node.

3. Run the command export HADOOP_CLASSPATH = $
example Output:
"
{HADOOP_CLASSPATH}
:/opt/cloudera/parcels/CDH-5.9.2-1.cdh5.9.2.p0.3/lib/hive/lib
"
4. Run "hadoop-env.sh" file which is located at  "/opt/cloudera/parcels/<CDH-Version>/lib/hadoop/etc/hadoop"
Example location: "/opt/cloudera/parcels/CDH-5.9.2-1.cdh5.9.2.p0.3/lib/hadoop/etc/hadoop"

5. Restart Hive Service