Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Permissions error with beeswax

$
0
0

I get an exception when trying to perform any operation on any database/table that I have set up in Hive when I try to access it through the Hue/Beeswax interface. this is the exception that I get.

Exception Type: QueryServerException at /beeswax/table/default/archive
Exception Value: Bad status for request TExecuteStatementReq(confOverlay={}, sessionHandle=TSessionHandle(sessionId=THandleIdentifier(secret=’\x9e\xec=\xbdc\x96Fc\x9a\xa9%Z\xf9?>\x96′, guid=’\x1f\x94DW\xac{Fa\xaatk\xab\xe8.\xc3\t’)), runAsync=False, statement=’USE default’):
TExecuteStatementResp(status=TStatus(errorCode=40000, errorMessage=’Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [hue] does not have [USE] privilege on [default]’, sqlState=’42000′, infoMessages=[‘*org.apache.hive.service.cli.HiveSQLException:Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [hue] does not have [USE] privilege on [default]:17:16′, ‘org.apache.hive.service.cli.operation.Operation:toSQLException:Operation.java:314′, ‘org.apache.hive.service.cli.operation.SQLOperation:prepare:SQLOperation.java:111′, ‘org.apache.hive.service.cli.operation.SQLOperation:runInternal:SQLOperation.java:180′, ‘org.apache.hive.service.cli.operation.Operation:run:Operation.java:256′, ‘org.apache.hive.service.cli.session.HiveSessionImpl:executeStatementInternal:HiveSessionImpl.java:376′, ‘org.apache.hive.service.cli.session.HiveSessionImpl:executeStatement:HiveSessionImpl.java:357′, ‘org.apache.hive.service.cli.CLIService:executeStatement:CLIService.java:257′, ‘org.apache.hive.service.cli.thrift.ThriftCLIService:ExecuteStatement:ThriftCLIService.java:401′, ‘org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement:getResult:TCLIService.java:1313′, ‘org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement:getResult:TCLIService.java:1298′, ‘org.apache.thrift.ProcessFunction:process:ProcessFunction.java:39′, ‘org.apache.thrift.TBaseProcessor:process:TBaseProcessor.java:39′, ‘org.apache.hive.service.auth.TSetIpAddressProcessor:process:TSetIpAddressProcessor.java:56′, ‘org.apache.thrift.server.TThreadPoolServer$WorkerProcess:run:TThreadPoolServer.java:206′, ‘java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145′, ‘java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615′, ‘java.lang.Thread:run:Thread.java:745′, ‘*org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException:Permission denied: user [hue] does not have [USE] privilege on [default]:23:7′, ‘com.xasecure.authorization.hive.authorizer.XaSecureHiveAuthorizer:checkPrivileges:XaSecureHiveAuthorizer.java:254′, ‘org.apache.hadoop.hive.ql.Driver:doAuthorizationV2:Driver.java:727′, ‘org.apache.hadoop.hive.ql.Driver:doAuthorization:Driver.java:520′, ‘org.apache.hadoop.hive.ql.Driver:compile:Driver.java:457′, ‘org.apache.hadoop.hive.ql.Driver:compile:Driver.java:305′, ‘org.apache.hadoop.hive.ql.Driver:compileInternal:Driver.java:1069′, ‘org.apache.hadoop.hive.ql.Driver:compileAndRespond:Driver.java:1063′, ‘org.apache.hive.service.cli.operation.SQLOperation:prepare:SQLOperation.java:109′], statusCode=3), operationHandle=None)

However, if I launch Hive as the Hue user over SSH then everything works fine, so I’m not sure what would be different when using it through the UI since it’s still the same user.


Viewing all articles
Browse latest Browse all 3435

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>