我正在尝试在ambari之外安装apache系列。我能够成功地安装ranger管理组件,但是在尝试创建新的配置单元服务时,ranger管理日志中出现以下错误 java.lang.Exception: hive failed to find service class org.apache.ranger.services.hive.RangerServiceHive. Resource lookup will not be available. Please make sure plugin jar is in the correct place. at org.apache.ranger.biz.ServiceMgr.getClassForServiceType(ServiceMgr.java:401)
即使我看到加载所需插件jar的日志,我仍然得到classnotfoundexception。 2020-06-03 11:19:19,968 [http-bio-6080-exec-3] WARN org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:455) - getFilesInDirectory('ranger-plugins/hive'): adding /home/sshuser/apache-ranger/ranger-2.0.1-SNAPSHOT-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-exec-3.1.0.jar 2020-06-03 11:19:19,968 [http-bio-6080-exec-3] WARN org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:455) - getFilesInDirectory('ranger-plugins/hive'): adding /home/sshuser/apache-ranger/ranger-2.0.1-SNAPSHOT-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/libthrift-0.12.0.jar 2020-06-03 11:19:19,968 [http-bio-6080-exec-3] WARN org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:455) - getFilesInDirectory('ranger-plugins/hive'): adding /home/sshuser/apache-ranger/ranger-2.0.1-SNAPSHOT-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-common-3.1.0.jar 2020-06-03 11:19:19,968 [http-bio-6080-exec-3] WARN org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:455) - getFilesInDirectory('ranger-plugins/hive'): adding /home/sshuser/apache-ranger/ranger-2.0.1-SNAPSHOT-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-metastore-3.1.0.jar 2020-06-03 11:19:19,969 [http-bio-6080-exec-3] WARN org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:455) - getFilesInDirectory('ranger-plugins/hive'): adding /home/sshuser/apache-ranger/ranger-2.0.1-SNAPSHOT-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-service-3.1.0.jar 2020-06-03 11:19:19,969 [http-bio-6080-exec-3] WARN org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:455) - getFilesInDirectory('ranger-plugins/hive'): adding /home/sshuser/apache-ranger/ranger-2.0.1-SNAPSHOT-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/libfb303-0.9.3.jar 2020-06-03 11:19:19,969 [http-bio-6080-exec-3] WARN org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:455) - getFilesInDirectory('ranger-plugins/hive'): adding /home/sshuser/apache-ranger/ranger-2.0.1-SNAPSHOT-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-jdbc-3.1.0.jar 2020-06-03 11:19:19,969 [http-bio-6080-exec-3] WARN org.apache.ranger.biz.ServiceMgr (ServiceMgr.java:455) - getFilesInDirectory('ranger-plugins/hive'): adding /home/sshuser/apache-ranger/ranger-2.0.1-SNAPSHOT-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/ranger-hive-plugin-2.0.1-SNAPSHOT.jar
注意:所有这些jar文件都具有正确的访问级别和所有权。
我找到的所有文档都只解释了如何通过amabari设置ranger。有人能告诉我一些关于如何手动安装apache系列和设置插件的文档吗?
更新: jar -tf /ranger-hive-plugin-2.0.1-SNAPSHOT.jar
即使生成成功,也没有列出任何类。
提前谢谢。
暂无答案!
目前还没有任何答案,快来回答吧!