Skip to main content
Gionni
Silver ⭐️
February 23, 2022
Question

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

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

ChethanYM
Gold ⭐️
Gold ⭐️
February 28, 2022

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

Translate
Gionni
GionniAuthor
Silver ⭐️
February 28, 2022

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

Translate