Support Questions

Find answers, ask questions, and share your expertise

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

avatar
New Contributor

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
New Contributor

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