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

HIVE-28739: support restricting users to create deferred view #5634

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eubnara
Copy link

@eubnara eubnara commented Feb 5, 2025

What changes were proposed in this pull request?

I suggest a new configuration "metastore.users.restricted_to_deferred_view" to support a feature that makes some of proxyusers to be forced to create deferred view.

Why are the changes needed?

In our environment, we use Impala with HiveMetastore. Since "impala" user is a proxy user, if I create a view through Impala, it will create a view, not a deferred view. (impala doesn't have impersonation support)
In our policy, we want to force users to create deferred view if there is no special reason not to create deferred view in order to follow permissions of source tables.
So I tried to exclude "impala" user from proxy user, there is some bottle neck and the change even causes impala cluster hang. I guess that with HiveMetastoreAuthorizer, impala cannot skip authorization if I exclude "impala" user from proxy user.
Also, on impala side, Ranger authorization is already applied. It is meaningless because the same hive policy applied already on impala side.
Therefore, I gave up to exclude "impala" user from proxy user.

Does this PR introduce any user-facing change?

No.

Is the change a dependency upgrade?

No.

How was this patch tested?

Our internal Hadoop cluster.

Copy link

sonarqubecloud bot commented Feb 5, 2025

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

Successfully merging this pull request may close these issues.

2 participants