You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Sailaja Polavarapu (JIRA)" <ji...@apache.org> on 2017/02/11 00:44:41 UTC

[jira] [Updated] (RANGER-1375) HIVERangerAuthorizerTest UT fails intermittently

     [ https://issues.apache.org/jira/browse/RANGER-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sailaja Polavarapu updated RANGER-1375:
---------------------------------------
    Attachment: 0001-RANGER-1375-HIVERangerAuthorizerTest-UT-fails-interm.patch

> HIVERangerAuthorizerTest UT fails intermittently
> ------------------------------------------------
>
>                 Key: RANGER-1375
>                 URL: https://issues.apache.org/jira/browse/RANGER-1375
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: 0.7.0
>            Reporter: Yesha Vora
>            Assignee: Sailaja Polavarapu
>             Fix For: 0.7.0
>
>         Attachments: 0001-RANGER-1375-HIVERangerAuthorizerTest-UT-fails-interm.patch
>
>
> Trying to run HIVERangerAuthorizerTest in my linux machine as nobody user. This test fails intermittently with below error stack.
> {code}
> Error Message
> Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [nobody] does not have [CREATE] privilege on [rangerauthz]
> Stacktrace
> org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [nobody] does not have [CREATE] privilege on [rangerauthz]
> 	at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:262)
> 	at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:248)
> 	at org.apache.hive.jdbc.HiveStatement.runAsyncOnServer(HiveStatement.java:297)
> 	at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:238)
> 	at org.apache.ranger.services.hive.HIVERangerAuthorizerTest.setup(HIVERangerAuthorizerTest.java:102)
> Caused by: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [nobody] does not have [CREATE] privilege on [rangerauthz]
> 	at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:335)
> 	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:148)
> 	at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:226)
> 	at org.apache.hive.service.cli.operation.Operation.run(Operation.java:276)
> 	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:468)
> 	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:456)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78)
> 	at org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36)
> 	at org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:415)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
> 	at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59)
> 	at com.sun.proxy.$Proxy22.executeStatementAsync(Unknown Source)
> 	at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:298)
> 	at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:506)
> 	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1317)
> 	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1302)
> 	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
> 	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
> 	at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)
> 	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:722)
> Caused by: org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException: Permission denied: user [nobody] does not have [CREATE] privilege on [rangerauthz]
> 	at org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizer.checkPrivileges(RangerHiveAuthorizer.java:412)
> 	at org.apache.hadoop.hive.ql.Driver.doAuthorizationV2(Driver.java:856)
> 	at org.apache.hadoop.hive.ql.Driver.doAuthorization(Driver.java:644)
> 	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:511)
> 	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:321)
> 	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1221)
> 	at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1215)
> 	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:146)
> 	at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:226)
> 	at org.apache.hive.service.cli.operation.Operation.run(Operation.java:276)
> 	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:468)
> 	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:456)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78)
> 	at org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36)
> 	at org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:415)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
> 	at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59)
> 	at com.sun.proxy.$Proxy22.executeStatementAsync(Unknown Source)
> 	at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:298)
> 	at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:506)
> 	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1317)
> 	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1302)
> 	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
> 	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
> 	at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)
> 	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:722)
> Standard Error
> FAILED: HiveAccessControlException Permission denied: user [nobody] does not have [CREATE] privilege on [rangerauthz]{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)