spark-authorizer icon indicating copy to clipboard operation
spark-authorizer copied to clipboard

ranger 版本问题

Open xhmz opened this issue 5 years ago • 5 comments

我的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这个方法,有好的建议么

xhmz avatar May 07 '19 12:05 xhmz

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

yaooqinn avatar May 08 '19 06:05 yaooqinn

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

xhmz avatar May 08 '19 09:05 xhmz

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

yaooqinn avatar May 08 '19 10:05 yaooqinn

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

xhmz avatar May 09 '19 01:05 xhmz

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

xhmz avatar May 09 '19 08:05 xhmz