Created on 12-13-2017 04:11 AM - edited 09-16-2022 05:38 AM
I've been trying to execute the next step in the documentation.
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.
Created 12-14-2017 10:19 AM
I am having the same issue, but it did not start until I upgraded to 5.13. It was working fine in 5.12...
Created 12-14-2017 12:21 PM
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).
Created 12-15-2017 12:59 AM
Created 12-15-2017 10:46 AM
Should be in /usr/lib/sentry/lib/plugins
Created 12-19-2017 01:14 AM
Didn't find there.
Do you know where I can download the RPM you mentioned?
Created 01-03-2018 10:10 AM