Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hive Fails to start

Hive Fails to start

Explorer

Hello Community,

 

I've been trying to execute the next step in the documentation.

 

https://www.cloudera.com/documentation/enterprise/5-12-x/topics/sg_hdfs_sentry_sync.html

 

I have done every step on Enabling the HDFS-Sentry Plugin Using Cloudera Manager and stepped into an error on starting HDFS Service that HDFS didn't find Sentry Plugin Class, that got solved by executing

 

# yum install sentry-hdfs-plugin

I managed, then, to start HDFS Service, but then Hive Metastore Server stopped with the next error.

 

[main]: Metastore Thrift Server threw an exception...
MetaException(message:Failed to instantiate listener named: org.apache.sentry.binding.metastore.SentryMetastorePostEventListener, reason: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.sentry.hdfs.MetastorePlugin not found)
	at org.apache.hadoop.hive.metastore.MetaStoreUtils.getMetaStoreListeners(MetaStoreUtils.java:1514)
	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:555)
	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:78)
	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84)
	at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6313)
	at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6308)
	at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:6558)
	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:6485)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

I was looking for some answer as it seems to be an easy problem, but I found nothing related so I think it will be interesting to have it here to help others.

 

Now I am working with Cloudera Trial Enterprise Virtual Machine, before passing this to our production environment with more hosts, so I am trying to prevent most of the errors here before passing to the new scenario.

 

Thank you

6 REPLIES 6

Re: Hive Fails to start

New Contributor

I am having the same issue, but it did not start until I upgraded to 5.13.  It was working fine in 5.12...

Re: Hive Fails to start

New Contributor

The problem is /org/apache/sentry/hdfs/MetastorePlugin.class is missing from sentry-hdfs-1.5.1-cdh5.13.1.jar.  I replaced the jar with the one from sentry-hdfs-plugin-1.5.1+cdh5.12.2+344-1.cdh5.12.2.p0.5.el7.noarch.rpm and it seems to work.  Not sure if anyone from Cloudera monitors these posts but this looks like a bug in the 13.x release (rpm at least, maybe parcels are ok).

Re: Hive Fails to start

Explorer

@leary Do you know where the jar is placed in a 5.12.2 installation?

 

Thank you

Re: Hive Fails to start

New Contributor

Should be in /usr/lib/sentry/lib/plugins

Re: Hive Fails to start

Explorer

Didn't find there.

 

Do you know where I can download the RPM you mentioned?

 

Thank you

Re: Hive Fails to start

New Contributor