Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Who agreed with this topic

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

Who agreed with this topic