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 2019/08/26 16:21:00 UTC

[jira] [Commented] (HIVE-21397) BloomFilter for hive Managed [ACID] table does not work as expected

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

Hive QA commented on HIVE-21397:
--------------------------------



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

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

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

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-08-26 16:19:41.487
+ [[ -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-18397/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-08-26 16:19:41.491
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at ece9a54 HIVE-22074: Slow compilation due to IN to OR transformation (Vineet Garg, reviewed by Jesus Camacho Rodriguez)
+ 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 ece9a54 HIVE-22074: Slow compilation due to IN to OR transformation (Vineet Garg, reviewed by Jesus Camacho Rodriguez)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2019-08-26 16:19:42.560
+ rm -rf ../yetus_PreCommit-HIVE-Build-18397
+ mkdir ../yetus_PreCommit-HIVE-Build-18397
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-18397
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-18397/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: a/pom.xml: does not exist in index
error: a/standalone-metastore/pom.xml: does not exist in index
error: patch failed: pom.xml:188
Falling back to three-way merge...
Applied patch to 'pom.xml' with conflicts.
error: patch failed: standalone-metastore/pom.xml:89
Falling back to three-way merge...
Applied patch to 'standalone-metastore/pom.xml' with conflicts.
Going to apply patch with: git apply -p1
/data/hiveptest/working/scratch/build.patch:203: trailing whitespace.
      Entry 0: count: 1 hasNull: false positions: 
/data/hiveptest/working/scratch/build.patch:215: trailing whitespace.
      Entry 0: count: 1 hasNull: false positions: 
/data/hiveptest/working/scratch/build.patch:319: trailing whitespace.
      Entry 0: count: 1 hasNull: false positions: 
/data/hiveptest/working/scratch/build.patch:331: trailing whitespace.
      Entry 0: count: 1 hasNull: false positions: 
error: patch failed: pom.xml:188
Falling back to three-way merge...
Applied patch to 'pom.xml' with conflicts.
error: patch failed: standalone-metastore/pom.xml:89
Falling back to three-way merge...
Applied patch to 'standalone-metastore/pom.xml' with conflicts.
U pom.xml
U standalone-metastore/pom.xml
warning: 4 lines add whitespace errors.
+ result=1
+ '[' 1 -ne 0 ']'
+ rm -rf yetus_PreCommit-HIVE-Build-18397
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12978598 - PreCommit-HIVE-Build

> BloomFilter for hive Managed [ACID] table does not work as expected
> -------------------------------------------------------------------
>
>                 Key: HIVE-21397
>                 URL: https://issues.apache.org/jira/browse/HIVE-21397
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, HiveServer2, Transactions
>    Affects Versions: 3.1.1
>            Reporter: vaibhav
>            Assignee: Denys Kuzmenko
>            Priority: Blocker
>         Attachments: HIVE-21397.1.patch, HIVE-21397.2.patch, HIVE-21397.patch
>
>
> Steps to Reproduce this issue : 
> ----------------------------------------- 
> 1. Create a HIveManaged table as below : 
> ----------------------------------------- 
> {code:java}
> CREATE TABLE `bloomTest`( 
>    `msisdn` string, 
>    `imsi` varchar(20), 
>    `imei` bigint, 
>    `cell_id` bigint) 
>  ROW FORMAT SERDE 
>    'org.apache.hadoop.hive.ql.io.orc.OrcSerde' 
>  STORED AS INPUTFORMAT 
>    'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat' 
>  OUTPUTFORMAT 
>    'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat' 
>  LOCATION 
>    'hdfs://c1162-node2.squadron-labs.com:8020/warehouse/tablespace/managed/hive/bloomTest; 
>  TBLPROPERTIES ( 
>    'bucketing_version'='2', 
>    'orc.bloom.filter.columns'='msisdn,cell_id,imsi', 
>    'orc.bloom.filter.fpp'='0.02', 
>    'transactional'='true', 
>    'transactional_properties'='default', 
>    'transient_lastDdlTime'='1551206683') {code}
> ----------------------------------------- 
> 2. Insert a few rows. 
> ----------------------------------------- 
> ----------------------------------------- 
> 3. Check if bloom filter or active : [ It does not show bloom filters for hive managed tables ] 
> ----------------------------------------- 
> {code:java}
> [hive@c1162-node2 root]$ hive --orcfiledump hdfs://c1162-node2.squadron-labs.com:8020/warehouse/tablespace/managed/hive/bloomTest/delta_0000001_0000001_0000 | grep -i bloom 
> 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] 
> Processing data file hdfs://c1162-node2.squadron-labs.com:8020/warehouse/tablespace/managed/hive/bloomTest/delta_0000001_0000001_0000/bucket_00000 [length: 791] 
> Structure for hdfs://c1162-node2.squadron-labs.com:8020/warehouse/tablespace/managed/hive/bloomTest/delta_0000001_0000001_0000/bucket_00000 {code}
> ----------------------------------------- 
> On Another hand: For hive External tables it works : 
> ----------------------------------------- 
> {code:java}
> CREATE external TABLE `ext_bloomTest`( 
>    `msisdn` string, 
>    `imsi` varchar(20), 
>    `imei` bigint, 
>    `cell_id` bigint) 
>  ROW FORMAT SERDE 
>    'org.apache.hadoop.hive.ql.io.orc.OrcSerde' 
>  STORED AS INPUTFORMAT 
>    'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat' 
>  OUTPUTFORMAT 
>    'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat' 
>  TBLPROPERTIES ( 
>    'bucketing_version'='2', 
>    'orc.bloom.filter.columns'='msisdn,cell_id,imsi', 
>    'orc.bloom.filter.fpp'='0.02') {code}
> ----------------------------------------- 
> {code:java}
> [hive@c1162-node2 root]$ hive --orcfiledump hdfs://c1162-node2.squadron-labs.com:8020/warehouse/tablespace/external/hive/ext_bloomTest/000000_0 | grep -i bloom 
> 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] 
> Processing data file hdfs://c1162-node2.squadron-labs.com:8020/warehouse/tablespace/external/hive/ext_bloomTest/000000_0 [length: 755] 
> Structure for hdfs://c1162-node2.squadron-labs.com:8020/warehouse/tablespace/external/hive/ext_bloomTest/000000_0 
>     Stream: column 1 section BLOOM_FILTER_UTF8 start: 41 length 110 
>     Stream: column 2 section BLOOM_FILTER_UTF8 start: 178 length 114 
>     Stream: column 4 section BLOOM_FILTER_UTF8 start: 340 length 109 {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)