Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

ERROR org.apache.hadoop.hive.metastore.RetryingHMSHandler - HMSHandler Fatal error: java.lang.NoClassDefFoundError: com/codahale/metrics/Metric

avatar
Frequent Visitor

After the Cloudera patching against TSB 2021-545 - Critical vulnerability in log4j2 CVE-2021-44228 on hdp, we need to re-create the oozie share lib and after that, update these.

So, after this steps, all the jobs schedule via OOZIE get the execption:

ERROR org.apache.hadoop.hive.metastore.RetryingHMSHandler - HMSHandler Fatal error: java.lang.NoClassDefFoundError: com/codahale/metrics/Metric.

Doing a rollback of previous libraries fixed the error.

 

I've already checked the new and older paths on HDFS /user/oozie/share/lib/lib_<tms>/spark, but are the same.

 

Any ideas about the problem?

 

Thanks

BR 

2 REPLIES 2

avatar
Master Collaborator

Hi,

 

Similar exception can be seen if we do not add credentials block with in the workflow something like below.

Do check you have correct credentials if its a kerborized cluster.

 

<credentials>

<credential name="hcatauth_creds" type="hcat">

<property>

<name>hcat.metastore.uri</name>

<value>thrift://<metastore-fqdn>:9083</value>

</property>

<property>

<name>hcat.metastore.principal</name>

<value>hive/_HOST@<REALM></value>

</property>

</credential>

 

Regards,

Chethan YM

avatar
Frequent Visitor

Hello Chetan,

 

It seems related to the missing hive-site.xml on /user/oozie/share/lib/lib../ path.

 

After creation of oozie share libs, it maintein all jars but not the other files, like xml..

 

Can you confirm this behaviour?

 

Thanks

BR