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

Hive QA commented on HIVE-21532:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12964049/HIVE-21532.1.patch

{color:red}ERROR:{color} -1 due to build exiting with an error

Test results: 
https://builds.apache.org/job/PreCommit-HIVE-Build/16741/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/16741/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-16741/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Tests exited with: NonZeroExitCodeException
Command 'bash /data/hiveptest/working/scratch/source-prep.sh' failed with exit 
status 1 and output '+ date '+%Y-%m-%d %T.%3N'
2019-03-29 00:14:34.684
+ [[ -n /usr/lib/jvm/java-8-openjdk-amd64 ]]
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ export 
PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ 
PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ export 'ANT_OPTS=-Xmx1g -XX:MaxPermSize=256m '
+ ANT_OPTS='-Xmx1g -XX:MaxPermSize=256m '
+ export 'MAVEN_OPTS=-Xmx1g '
+ MAVEN_OPTS='-Xmx1g '
+ cd /data/hiveptest/working/
+ tee /data/hiveptest/logs/PreCommit-HIVE-Build-16741/source-prep.txt
+ [[ false == \t\r\u\e ]]
+ mkdir -p maven ivy
+ [[ git = \s\v\n ]]
+ [[ git = \g\i\t ]]
+ [[ -z master ]]
+ [[ -d apache-github-source-source ]]
+ [[ ! -d apache-github-source-source/.git ]]
+ [[ ! -d apache-github-source-source ]]
+ date '+%Y-%m-%d %T.%3N'
2019-03-29 00:14:34.717
+ cd apache-github-source-source
+ git fetch origin
>From https://github.com/apache/hive
   72d72d4..559efea  master     -> origin/master
+ git reset --hard HEAD
HEAD is now at 72d72d4 HIVE-21457: Perf optimizations in ORC split-generation 
(Prasanth Jayachandran reviewed by Gopal V)
+ git clean -f -d
Removing ${project.basedir}/
Removing itests/${project.basedir}/
Removing standalone-metastore/metastore-server/src/gen/
+ git checkout master
Already on 'master'
Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)
+ git reset --hard origin/master
HEAD is now at 559efea HIVE-21204 (Addendum): Instrumentation for read/write 
locks in LLAP (Olli Draese via Slim Bouguerra)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2019-03-29 00:14:37.857
+ rm -rf ../yetus_PreCommit-HIVE-Build-16741
+ mkdir ../yetus_PreCommit-HIVE-Build-16741
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-16741
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-16741/yetus
+ patchCommandPath=/data/hiveptest/working/scratch/smart-apply-patch.sh
+ patchFilePath=/data/hiveptest/working/scratch/build.patch
+ [[ -f /data/hiveptest/working/scratch/build.patch ]]
+ chmod +x /data/hiveptest/working/scratch/smart-apply-patch.sh
+ /data/hiveptest/working/scratch/smart-apply-patch.sh 
/data/hiveptest/working/scratch/build.patch
error: patch failed: 
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:7261
error: repository lacks the necessary blob to fall back on 3-way merge.
error: ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java: patch 
does not apply
error: src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java: does not 
exist in index
error: java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java: does not 
exist in index
The patch does not appear to apply with p0, p1, or p2
+ result=1
+ '[' 1 -ne 0 ']'
+ rm -rf yetus_PreCommit-HIVE-Build-16741
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12964049 - PreCommit-HIVE-Build

> RuntimeException due to AccessControlException during creating 
> hive-staging-dir
> -------------------------------------------------------------------------------
>
>                 Key: HIVE-21532
>                 URL: https://issues.apache.org/jira/browse/HIVE-21532
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Oleksandr Polishchuk
>            Priority: Minor
>         Attachments: HIVE-21532.1.patch, HIVE-21532.1.patch
>
>
> The bug was found with environment - Hive-2.3.
> Steps lead to an exception:
> 1) Create user without root permissions on your node.
> 2) The {{hive-site.xml}} file has to contain the next properties:
> {code:java}
>  <property>
>     <name>hive.security.authorization.enabled</name>
>   <value>true</value>
>   </property>
>   <property>
>    <name>hive.security.authorization.manager</name>
>  
> <value>org.apache.hadoop.hive.ql.security.authorization.plugin.fallback.FallbackHiveAuthorizerFactory</value>
>   </property>
> {code}
> 3) Open Hive CLI and do next query:
> {code:java}
>  insert overwrite local directory '/tmp/test_dir' row format delimited fields 
> terminated by ',' select * from temp.test;
> {code}
> The previous query will fails with the next exception:
> {code:java}
> FAILED: RuntimeException Cannot create staging directory 
> 'hdfs:///tmp/test_dir/.hive-staging_hive_2019-03-28_11-51-05_319_5882446299335967521-1':
>  User testuser(user id 3456)  has been denied access to create 
> .hive-staging_hive_2019-03-28_11-51-05_319_5882446299335967521-1
> {code}
> The investigation shows that if delete the mentioned above properties from 
> {{hive-site.xml}} and pass {{`queryTmpdir`}} instead of {{`dest_path`}} in 
> the {{org.apache.hadoop.hive.ql.Context#getTempDirForPath()}} as was in the 
> Hive-2.1. everything will be fine. The current method is using in the 
> {{org.apache.hadoop.hive.ql.parse.SemanticAnalyzer}}  - {{String statsTmpLoc 
> = ctx.getTempDirForPath(dest_path).toString();}}



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

Reply via email to