yaooqinn/spark-authorizer

ranger 版本问题

Opened this issue · 5 comments

xhmz commented

我的ranger 使用的版本是1.0.1-snapshot,用到的hive.version是2.3.2
而这个项目的hive.version是1.2.1.spark2,
跑起来有一些方法冲突,
java.lang.NoSuchMethodError: org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthzContext.getForwardedAddresses()Ljava/util/List;

比如HiveAuthzContext这个方法,有好的建议么

可以在ranger这边改,tip:捕获这个异常,然后你想干啥都行

xhmz commented

我准备先使用ranger-0.5.3测试一下,
我捕获这个异常也没意义呀,最终还是要走ranger-hive-plugin的RangerHiveAuthorizer的checkPrivileges方法。。~~

捕获了你可以啥也不做,这个字段对于本项目非必须

xhmz commented

哦,你是说在ranger那边把这个错误捕获一下?

xhmz commented

我和kerberos集成,为啥到授权拿到的用户是hive.server2.authentication.kerberos.principal,而不是当前kerberos上下文中的用户呢