Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ranger 版本问题 #22

Open
xhmz opened this issue May 7, 2019 · 5 comments
Open

ranger 版本问题 #22

xhmz opened this issue May 7, 2019 · 5 comments

Comments

@xhmz
Copy link

xhmz commented May 7, 2019

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

@yaooqinn
Copy link
Owner

yaooqinn commented May 8, 2019

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

@xhmz
Copy link
Author

xhmz commented May 8, 2019

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

@yaooqinn
Copy link
Owner

yaooqinn commented May 8, 2019

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

@xhmz
Copy link
Author

xhmz commented May 9, 2019

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

@xhmz
Copy link
Author

xhmz commented May 9, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants