[ https://issues.apache.org/jira/browse/HIVE-8643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14189065#comment-14189065 ]
Hive QA commented on HIVE-8643: ------------------------------- {color:red}Overall{color}: -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12677986/HIVE-8643.2.patch {color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 6589 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_optimize_nullscan org.apache.hive.minikdc.TestJdbcWithMiniKdc.testNegativeTokenAuth {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/1535/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/1535/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-1535/ Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 2 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12677986 - PreCommit-HIVE-TRUNK-Build > DDL operations via WebHCat with doAs parameter in secure cluster fail > --------------------------------------------------------------------- > > Key: HIVE-8643 > URL: https://issues.apache.org/jira/browse/HIVE-8643 > Project: Hive > Issue Type: Bug > Components: WebHCat > Affects Versions: 0.14.0 > Reporter: Eugene Koifman > Assignee: Eugene Koifman > Priority: Critical > Fix For: 0.14.0 > > Attachments: HIVE-8643.2.patch, HIVE-8643.3.patch, HIVE-8643.patch > > > webhcat handles DDL command by forking to 'hcat', i.e. HCatCli > This starts a session. > SessionState.start() creates scratch dir based on current user name > via startSs.createSessionDirs(sessionUGI.getShortUserName()); > This UGI is not aware of doAs param, so the name of the dir always ends up > 'hcat', but because a delegation token is generated in WebHCat for HDFS > access, the owner of the scratch dir is the calling user. Thus next time a > session is started (because of a new DDL call from different user), it ends > up trying to use the same scratch dir but cannot as it has 700 permission set. > We need to pass in doAs user into SessionState -- This message was sent by Atlassian JIRA (v6.3.4#6332)