You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hive QA (Jira)" <ji...@apache.org> on 2020/06/03 18:04:00 UTC

[jira] [Commented] (HIVE-21895) Kafka Storage handler uses deprecated Kafka client methods

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

Hive QA commented on HIVE-21895:
--------------------------------



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

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

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

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'
2020-06-03 18:02:58.860
+ [[ -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-22734/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'
2020-06-03 18:02:58.863
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at 2795d32 HIVE-23595: Do not query task guaranteed status when wlm off (Mustafa Iman via Gopal Vijayaraghavan)
+ git clean -f -d
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
+ git reset --hard origin/master
HEAD is now at 2795d32 HIVE-23595: Do not query task guaranteed status when wlm off (Mustafa Iman via Gopal Vijayaraghavan)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2020-06-03 18:02:59.910
+ rm -rf ../yetus_PreCommit-HIVE-Build-22734
+ mkdir ../yetus_PreCommit-HIVE-Build-22734
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-22734
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-22734/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
Trying to apply the patch with -p0
error: patch failed: kafka-handler/src/java/org/apache/hadoop/hive/kafka/TransactionalKafkaWriter.java:46
Falling back to three-way merge...
Applied patch to 'kafka-handler/src/java/org/apache/hadoop/hive/kafka/TransactionalKafkaWriter.java' with conflicts.
Going to apply patch with: git apply -p0
error: patch failed: kafka-handler/src/java/org/apache/hadoop/hive/kafka/TransactionalKafkaWriter.java:46
Falling back to three-way merge...
Applied patch to 'kafka-handler/src/java/org/apache/hadoop/hive/kafka/TransactionalKafkaWriter.java' with conflicts.
U kafka-handler/src/java/org/apache/hadoop/hive/kafka/TransactionalKafkaWriter.java
+ result=1
+ '[' 1 -ne 0 ']'
+ rm -rf yetus_PreCommit-HIVE-Build-22734
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12972262 - PreCommit-HIVE-Build

> Kafka Storage handler uses deprecated Kafka client methods
> ----------------------------------------------------------
>
>                 Key: HIVE-21895
>                 URL: https://issues.apache.org/jira/browse/HIVE-21895
>             Project: Hive
>          Issue Type: Improvement
>          Components: kafka integration
>    Affects Versions: 4.0.0
>            Reporter: Kristopher Kane
>            Assignee: Kristopher Kane
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: HIVE-21895.1.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The Kafka client version is 2.2 and there are deprecated methods used like
> {code:java}
> producer.close(0, TimeUnit){code}
> in SimpleKafkaWriter



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