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

Hive QA commented on HIVE-22325:
--------------------------------



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

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

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

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-11-02 01:23:39.598
+ [[ -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-19257/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-11-02 01:23:39.602
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at 1c2b7fa HIVE-22421: Improve Logging If Configuration File Not 
Found (David Mollitor, reviewed by Peter Vary)
+ 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 up-to-date with 'origin/master'.
+ git reset --hard origin/master
HEAD is now at 1c2b7fa HIVE-22421: Improve Logging If Configuration File Not 
Found (David Mollitor, reviewed by Peter Vary)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2019-11-02 01:23:40.399
+ rm -rf ../yetus_PreCommit-HIVE-Build-19257
+ mkdir ../yetus_PreCommit-HIVE-Build-19257
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-19257
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-19257/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
fatal: git apply: bad git-diff - expected /dev/null on line 78
fatal: git apply: bad git-diff - expected /dev/null on line 78
fatal: git apply: bad git-diff - expected /dev/null on line 78
The patch does not appear to apply with p0, p1, or p2
+ result=1
+ '[' 1 -ne 0 ']'
+ rm -rf yetus_PreCommit-HIVE-Build-19257
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12984644 - PreCommit-HIVE-Build

> variable expansion doesn't work in beeline-site.xml
> ---------------------------------------------------
>
>                 Key: HIVE-22325
>                 URL: https://issues.apache.org/jira/browse/HIVE-22325
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>    Affects Versions: 3.1.0, 3.1.1, 3.1.2
>            Reporter: Allan Espinosa
>            Assignee: Allan Espinosa
>            Priority: Major
>         Attachments: HIVE-22325.1.patch, HIVE-22325.patch.txt
>
>
> I have a default jdbc connection string and I want to build on top on it to 
> have customized connections like setting custom queue names.  
> {code}
> $ cat .beeline/beeline-site.xml
>   <configuration  xmlns:xi="http://www.w3.org/2001/XInclude";>
>     <property>
>       <name>beeline.hs2.jdbc.url.base</name>
>       <value>jdbc:hive2://localhost/</value>
>     </property>
>     <property>
>       <name>beeline.hs2.jdbc.url.myqueue</name>
>       <value>${beeline.hs2.jdbc.url.base}?tez.queue.name=myqueue</value>
>     </property>
>   </configuration>
> $ beeline -c myqueue
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in 
> [jar:file:/usr/hdp/3.1.0.0-78/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in 
> [jar:file:/usr/hdp/3.1.0.0-78/hadoop/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
> explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> Error in parsing jdbc url: 
> ${beeline.hs2.jdbc.url.base}?tez.queue.name=myqueue from beeline-site.xml
> Beeline version 3.1.0.3.1.0.0-78 by Apache Hive
> beeline>
> {code}
> Relevant code is found in 
> https://github.com/apache/hive/blob/master/beeline/src/java/org/apache/hive/beeline/hs2connection/BeelineSiteParser.java#L94
> Entry<T,T>#getValue() skips the variable expansion .  Using 
> Configuration#get(key) would make this work.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to