hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Dere (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-19892) Disable query results cache for for HiveServer2 doAs=true
Date Fri, 15 Jun 2018 01:09:00 GMT

    [ https://issues.apache.org/jira/browse/HIVE-19892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16513199#comment-16513199
] 

Jason Dere commented on HIVE-19892:
-----------------------------------

Got a copy of those logs:

{noformat}
2018-06-06T01:11:10,428 INFO  [HiveServer2-Background-Pool: Thread-3903]: results.QueryResultsCache
(:()) - Moved query results from hdfs://chelsea/tmp/hive/anonymous/356c39b3-2584-4c17-b934-1307c7242405/hive_2018-06-06_01-10-53_972_5526799113141180835-3/-mr-10001/.hive-staging_hive_2018-06-06_01-10-53_972_5526799113141180835-3/-ext-10002
to /tmp/hive/_resultscache_/results-bb121971-6d2a-4dc7-b9dc-713b2dbb90e7/dummy_zero_rows (size
0) for query 'select * from `default`.`acid_table`'

...

Caused by: org.apache.hadoop.ipc.RemoteException: Permission denied: user=anonymous, access=EXECUTE,
inode="/tmp/hive/_resultscache_/results-bb121971-6d2a-4dc7-b9dc-713b2dbb90e7":hive:hdfs:drwx------
        at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:399)
        at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:315)
        at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:242)
        at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:193)
        at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:606)
        at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkTraverse(FSDirectory.java:1799)
        at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkTraverse(FSDirectory.java:1817)
        at org.apache.hadoop.hdfs.server.namenode.FSDirectory.resolvePath(FSDirectory.java:674)
        at org.apache.hadoop.hdfs.server.namenode.FSDirStatAndListingOp.getFileInfo(FSDirStatAndListingOp.java:114)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFileInfo(FSNamesystem.java:3088)
        at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getFileInfo(NameNodeRpcServer.java:1154)
        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getFileInfo(ClientNamenodeProtocolServerSideTranslatorPB.java:966)
        at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:523)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:991)
        at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:872)
        at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:818)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1686)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2678)

        at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1499) ~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.ipc.Client.call(Client.java:1445) ~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.ipc.Client.call(Client.java:1355) ~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:228)
~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:116)
~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at com.sun.proxy.$Proxy30.getFileInfo(Unknown Source) ~[?:?]
        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:900)
~[hadoop-hdfs-client-3.0.0.3.0.0.0-1419.jar:?]
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_171]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:422)
~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeMethod(RetryInvocationHandler.java:165)
~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invoke(RetryInvocationHandler.java:157)
~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeOnce(RetryInvocationHandler.java:95)
~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:359)
~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at com.sun.proxy.$Proxy31.getFileInfo(Unknown Source) ~[?:?]
        at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1654) ~[hadoop-hdfs-client-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1579)
~[hadoop-hdfs-client-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1576)
~[hadoop-hdfs-client-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1591)
~[hadoop-hdfs-client-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1734) ~[hadoop-common-3.0.0.3.0.0.0-1419.jar:?]
        at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextPath(FetchOperator.java:277)
~[hive-exec-3.0.0.3.0.0.0-1419.jar:3.0.0.3.0.0.0-1419]
        at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:370)
~[hive-exec-3.0.0.3.0.0.0-1419.jar:3.0.0.3.0.0.0-1419]
        at org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:314)
~[hive-exec-3.0.0.3.0.0.0-1419.jar:3.0.0.3.0.0.0-1419]
        at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:540)
~[hive-exec-3.0.0.3.0.0.0-1419.jar:3.0.0.3.0.0.0-1419]
        at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:509) ~[hive-exec-3.0.0.3.0.0.0-1419.jar:3.0.0.3.0.0.0-1419]
        at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:145) ~[hive-exec-3.0.0.3.0.0.0-1419.jar:3.0.0.3.0.0.0-1419]
        at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:2506) ~[hive-exec-3.0.0.3.0.0.0-1419.jar:3.0.0.3.0.0.0-1419]
        at org.apache.hadoop.hive.ql.reexec.ReExecDriver.getResults(ReExecDriver.java:229)
~[hive-exec-3.0.0.3.0.0.0-1419.jar:3.0.0.3.0.0.0-1419]
        at org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOperation.java:458)
~[hive-service-3.0.0.3.0.0.0-1419.jar:3.0.0.3.0.0.0-1419]
        ... 24 more
{noformat}

> Disable query results cache for for HiveServer2 doAs=true
> ---------------------------------------------------------
>
>                 Key: HIVE-19892
>                 URL: https://issues.apache.org/jira/browse/HIVE-19892
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>            Priority: Major
>             Fix For: 3.1.0
>
>         Attachments: HIVE-19892.1.patch
>
>
> If running HS2 with doAs=true, the temp query results directory will have ownership/permissions
based on the doAs user. A subsequent query running as a different user may not be able to
access this query results directory. Results caching will have to be disabled in this case.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message