Created on 12-13-2017 04:11 AM - edited 09-16-2022 05:38 AM
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