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

[Bug] Grant hive catalog not take effect #49202

Open
2 of 3 tasks
sangetang opened this issue Mar 18, 2025 · 0 comments
Open
2 of 3 tasks

[Bug] Grant hive catalog not take effect #49202

sangetang opened this issue Mar 18, 2025 · 0 comments

Comments

@sangetang
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.1.8-1

What's Wrong?

New user query hive catalog access denied

What You Expected?

User query "SELECT * FROM hive.cdm_abite.dim_spu limit 20" is ok!

How to Reproduce?

  1. CREATE CATALOG hive PROPERTIES (

"type"="hms",
"hive.metastore.type" = "dlf",
"dlf.proxy.mode" = "DLF_ONLY",
"dlf.endpoint" = "dlf-vpc.cn-beijing.aliyuncs.com",
"dlf.region" = "cn-beijing",
...
2. CREATE USER test@'%' IDENTIFIED BY 'test123';
3. GRANT SELECT_PRIV ON hive.cdm_abite.* TO 'test'@'%';
4. [user test] SWITCH hive
5. USE cdm_abite; Err: errCode = 2, detailMessage = Access denied for user 'test' to database 'cdm_abite'
6. [user root] SWITCH hive
7. "SELECT * FROM hive.cdm_abite.dim_spu limit 20" is ok!

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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

1 participant