[
https://issues.apache.org/jira/browse/SENTRY-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280075#comment-14280075
]
Colin Ma commented on SENTRY-494:
---------------------------------
[~prasadm], thanks for the comments. The patch is rebased and uploaded. "todo"
comments are also removed.
For the transaction created in the test case, to use the "Lock/UnLock" command,
"hive.support.concurrency" and "hive.lock.manager" must be set, otherwise, the
following exception will be thrown if hive.support.concurrency=false:
{code}
org.apache.hive.service.cli.HiveSQLException: Error while compiling
statement: FAILED: RuntimeException [Error 10264]: To use DbTxnManager you must
set hive.support.concurrency=true
{code}
> UNLOCK TABLE is not allowed
> ---------------------------
>
> Key: SENTRY-494
> URL: https://issues.apache.org/jira/browse/SENTRY-494
> Project: Sentry
> Issue Type: Bug
> Affects Versions: 1.3.0
> Environment: Sentry 1.3.0 CDH5.1.2
> Reporter: Grisha Trubetskoy
> Assignee: Colin Ma
> Attachments: SENTRY-494.001.patch, SENTRY-494.002.patch,
> SENTRY-494.003.patch
>
>
> {code}
> UNLOCK TABLE grisha_test;
> Error: Error while compiling statement: FAILED: SemanticException No valid
> privileges (state=42000,code=40000)
> {code}
> Unless I'm missing something, there is no way to specify an unlock privilege
> in Sentry.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)