[jira] [Commented] (HIVE-17194) JDBC: Implement Gzip servlet filter
[ https://issues.apache.org/jira/browse/HIVE-17194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16124172#comment-16124172 ] Thejas M Nair commented on HIVE-17194: -- Patch looks good. +1 More information from offline discussion with [~gopalv] - tests show +4% CPU for ~3x reduction sizes with TPC-DS customer_demographics. Overall time remained same. > JDBC: Implement Gzip servlet filter > --- > > Key: HIVE-17194 > URL: https://issues.apache.org/jira/browse/HIVE-17194 > Project: Hive > Issue Type: Improvement > Components: HiveServer2, JDBC >Affects Versions: 3.0.0 >Reporter: Gopal V >Assignee: Gopal V > Attachments: HIVE-17194.1.patch, HIVE-17194.2.patch, > HIVE-17194.3.patch > > > {code} > POST /cliservice HTTP/1.1 > Content-Type: application/x-thrift > Accept: application/x-thrift > User-Agent: Java/THttpClient/HC > Authorization: Basic YW5vbnltb3VzOmFub255bW91cw== > Content-Length: 71 > Host: localhost:10007 > Connection: Keep-Alive > Accept-Encoding: gzip,deflate > X-XSRF-HEADER: true > {code} > The Beeline client clearly sends out HTTP compression headers which are > ignored by the HTTP service layer in HS2. > After patch, result looks like > {code} > HTTP/1.1 200 OK > Date: Tue, 01 Aug 2017 01:47:23 GMT > Content-Type: application/x-thrift > Vary: Accept-Encoding, User-Agent > Content-Encoding: gzip > Transfer-Encoding: chunked > Server: Jetty(9.3.8.v20160314) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (HIVE-17194) JDBC: Implement Gzip servlet filter
[ https://issues.apache.org/jira/browse/HIVE-17194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16109500#comment-16109500 ] Gopal V commented on HIVE-17194: [~vgumashta]/[~thejas]: can you review? > JDBC: Implement Gzip servlet filter > --- > > Key: HIVE-17194 > URL: https://issues.apache.org/jira/browse/HIVE-17194 > Project: Hive > Issue Type: Improvement > Components: HiveServer2, JDBC >Affects Versions: 3.0.0 >Reporter: Gopal V >Assignee: Gopal V > Attachments: HIVE-17194.1.patch, HIVE-17194.2.patch, > HIVE-17194.3.patch > > > {code} > POST /cliservice HTTP/1.1 > Content-Type: application/x-thrift > Accept: application/x-thrift > User-Agent: Java/THttpClient/HC > Authorization: Basic YW5vbnltb3VzOmFub255bW91cw== > Content-Length: 71 > Host: localhost:10007 > Connection: Keep-Alive > Accept-Encoding: gzip,deflate > X-XSRF-HEADER: true > {code} > The Beeline client clearly sends out HTTP compression headers which are > ignored by the HTTP service layer in HS2. > After patch, result looks like > {code} > HTTP/1.1 200 OK > Date: Tue, 01 Aug 2017 01:47:23 GMT > Content-Type: application/x-thrift > Vary: Accept-Encoding, User-Agent > Content-Encoding: gzip > Transfer-Encoding: chunked > Server: Jetty(9.3.8.v20160314) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (HIVE-17194) JDBC: Implement Gzip servlet filter
[ https://issues.apache.org/jira/browse/HIVE-17194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16108682#comment-16108682 ] Hive QA commented on HIVE-17194: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12879759/HIVE-17194.3.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 6 failed/errored test(s), 11012 tests executed *Failed tests:* {noformat} TestPerfCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=235) org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.testCliDriver[spark_vectorized_dynamic_partition_pruning] (batchId=168) org.apache.hadoop.hive.cli.TestSparkNegativeCliDriver.org.apache.hadoop.hive.cli.TestSparkNegativeCliDriver (batchId=242) org.apache.hive.hcatalog.api.TestHCatClient.testPartitionRegistrationWithCustomSchema (batchId=179) org.apache.hive.hcatalog.api.TestHCatClient.testPartitionSpecRegistrationWithCustomSchema (batchId=179) org.apache.hive.hcatalog.api.TestHCatClient.testTableSchemaPropagation (batchId=179) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/6209/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/6209/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-6209/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase 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: 6 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12879759 - PreCommit-HIVE-Build > JDBC: Implement Gzip servlet filter > --- > > Key: HIVE-17194 > URL: https://issues.apache.org/jira/browse/HIVE-17194 > Project: Hive > Issue Type: Improvement > Components: HiveServer2, JDBC >Affects Versions: 3.0.0 >Reporter: Gopal V >Assignee: Gopal V > Attachments: HIVE-17194.1.patch, HIVE-17194.2.patch, > HIVE-17194.3.patch > > > {code} > POST /cliservice HTTP/1.1 > Content-Type: application/x-thrift > Accept: application/x-thrift > User-Agent: Java/THttpClient/HC > Authorization: Basic YW5vbnltb3VzOmFub255bW91cw== > Content-Length: 71 > Host: localhost:10007 > Connection: Keep-Alive > Accept-Encoding: gzip,deflate > X-XSRF-HEADER: true > {code} > The Beeline client clearly sends out HTTP compression headers which are > ignored by the HTTP service layer in HS2. > After patch, result looks like > {code} > HTTP/1.1 200 OK > Date: Tue, 01 Aug 2017 01:47:23 GMT > Content-Type: application/x-thrift > Vary: Accept-Encoding, User-Agent > Content-Encoding: gzip > Transfer-Encoding: chunked > Server: Jetty(9.3.8.v20160314) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (HIVE-17194) JDBC: Implement Gzip servlet filter
[ https://issues.apache.org/jira/browse/HIVE-17194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16107942#comment-16107942 ] Gopal V commented on HIVE-17194: Jetty9 turned GzipFilter into a no-op operation - need to use GzipHandler in Jetty9 to get compression instead. > JDBC: Implement Gzip servlet filter > --- > > Key: HIVE-17194 > URL: https://issues.apache.org/jira/browse/HIVE-17194 > Project: Hive > Issue Type: Improvement > Components: HiveServer2, JDBC >Affects Versions: 3.0.0 >Reporter: Gopal V >Assignee: Gopal V > Attachments: HIVE-17194.1.patch, HIVE-17194.2.patch > > > {code} > POST /cliservice HTTP/1.1 > Content-Type: application/x-thrift > Accept: application/x-thrift > User-Agent: Java/THttpClient/HC > Authorization: Basic YW5vbnltb3VzOmFub255bW91cw== > Content-Length: 71 > Host: localhost:10007 > Connection: Keep-Alive > Accept-Encoding: gzip,deflate > X-XSRF-HEADER: true > {code} > The Beeline client clearly sends out HTTP compression headers which are > ignored by the HTTP service layer in HS2. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (HIVE-17194) JDBC: Implement Gzip servlet filter
[ https://issues.apache.org/jira/browse/HIVE-17194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16107003#comment-16107003 ] Hive QA commented on HIVE-17194: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12879579/HIVE-17194.2.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 8 failed/errored test(s), 11018 tests executed *Failed tests:* {noformat} TestPerfCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=235) org.apache.hadoop.hive.cli.TestBeeLineDriver.testCliDriver[materialized_view_create_rewrite] (batchId=240) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[index_auto_mult_tables] (batchId=82) org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.testCliDriver[spark_vectorized_dynamic_partition_pruning] (batchId=168) org.apache.hadoop.hive.ql.security.TestMetastoreAuthorizationProvider.testSimplePrivileges (batchId=221) org.apache.hive.hcatalog.api.TestHCatClient.testPartitionRegistrationWithCustomSchema (batchId=179) org.apache.hive.hcatalog.api.TestHCatClient.testPartitionSpecRegistrationWithCustomSchema (batchId=179) org.apache.hive.hcatalog.api.TestHCatClient.testTableSchemaPropagation (batchId=179) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/6194/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/6194/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-6194/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase 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: 8 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12879579 - PreCommit-HIVE-Build > JDBC: Implement Gzip servlet filter > --- > > Key: HIVE-17194 > URL: https://issues.apache.org/jira/browse/HIVE-17194 > Project: Hive > Issue Type: Improvement > Components: HiveServer2, JDBC >Affects Versions: 3.0.0 >Reporter: Gopal V >Assignee: Gopal V > Attachments: HIVE-17194.1.patch, HIVE-17194.2.patch > > > {code} > POST /cliservice HTTP/1.1 > Content-Type: application/x-thrift > Accept: application/x-thrift > User-Agent: Java/THttpClient/HC > Authorization: Basic YW5vbnltb3VzOmFub255bW91cw== > Content-Length: 71 > Host: localhost:10007 > Connection: Keep-Alive > Accept-Encoding: gzip,deflate > X-XSRF-HEADER: true > {code} > The Beeline client clearly sends out HTTP compression headers which are > ignored by the HTTP service layer in HS2. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (HIVE-17194) JDBC: Implement Gzip servlet filter
[ https://issues.apache.org/jira/browse/HIVE-17194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16105878#comment-16105878 ] Hive QA commented on HIVE-17194: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12879319/HIVE-17194.1.patch {color:red}ERROR:{color} -1 due to build exiting with an error Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/6177/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/6177/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-6177/ 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' 2017-07-28 23:59:20.663 + [[ -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-6177/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' 2017-07-28 23:59:20.666 + cd apache-github-source-source + git fetch origin + git reset --hard HEAD HEAD is now at 5fc4900 HIVE-16965: SMB join may produce incorrect results (Deepak Jaiswal, reviewed by gopalv) + 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 5fc4900 HIVE-16965: SMB join may produce incorrect results (Deepak Jaiswal, reviewed by gopalv) + git merge --ff-only origin/master Already up-to-date. + date '+%Y-%m-%d %T.%3N' 2017-07-28 23:59:26.882 + 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: common/src/java/org/apache/hive/http/HttpServer.java:33 error: common/src/java/org/apache/hive/http/HttpServer.java: patch does not apply The patch does not appear to apply with p0, p1, or p2 + exit 1 ' {noformat} This message is automatically generated. ATTACHMENT ID: 12879319 - PreCommit-HIVE-Build > JDBC: Implement Gzip servlet filter > --- > > Key: HIVE-17194 > URL: https://issues.apache.org/jira/browse/HIVE-17194 > Project: Hive > Issue Type: Improvement > Components: HiveServer2, JDBC >Affects Versions: 3.0.0 >Reporter: Gopal V >Assignee: Gopal V > Attachments: HIVE-17194.1.patch > > > {code} > POST /cliservice HTTP/1.1 > Content-Type: application/x-thrift > Accept: application/x-thrift > User-Agent: Java/THttpClient/HC > Authorization: Basic YW5vbnltb3VzOmFub255bW91cw== > Content-Length: 71 > Host: localhost:10007 > Connection: Keep-Alive > Accept-Encoding: gzip,deflate > X-XSRF-HEADER: true > {code} > The Beeline client clearly sends out HTTP compression headers which are > ignored by the HTTP service layer in HS2. -- This message was sent by Atlassian JIRA (v6.4.14#64029)