[jira] [Commented] (HIVE-16993) ThriftHiveMetastore.create_database can fail if the locationUri is not set
[ https://issues.apache.org/jira/browse/HIVE-16993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16075963#comment-16075963 ] Hive QA commented on HIVE-16993: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12875836/HIVE-17008.8.patch {color:green}SUCCESS:{color} +1 due to 10 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 15 failed/errored test(s), 10832 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[llap_smb] (batchId=143) org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[orc_ppd_basic] (batchId=140) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_if_expr] (batchId=145) org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver[explainanalyze_2] (batchId=99) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importAll (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importOneDb (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importOneFunc (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importOneRole (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importOneTableNonPartitioned (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importOneTablePartitioned (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importSecurity (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importTablesWithConstraints (batchId=208) org.apache.hive.hcatalog.api.TestHCatClient.testPartitionRegistrationWithCustomSchema (batchId=177) org.apache.hive.hcatalog.api.TestHCatClient.testPartitionSpecRegistrationWithCustomSchema (batchId=177) org.apache.hive.hcatalog.api.TestHCatClient.testTableSchemaPropagation (batchId=177) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/5903/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/5903/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-5903/ 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: 15 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12875836 - PreCommit-HIVE-Build > ThriftHiveMetastore.create_database can fail if the locationUri is not set > -- > > Key: HIVE-16993 > URL: https://issues.apache.org/jira/browse/HIVE-16993 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Dan Burkert >Assignee: Dan Burkert > Attachments: HIVE-16993.0-master.patch, HIVE-16993.1-master.patch, > HIVE-16993.2.patch, HIVE-16993.3.patch, HIVE-16993.4.patch, > HIVE-16993.5.patch, HIVE-17008.6.patch, HIVE-17008.7.patch, HIVE-17008.8.patch > > > Calling > [{{ThriftHiveMetastore.create_database}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/if/hive_metastore.thrift#L1078] > with a database with an unset {{locationUri}} field through the C++ > implementation fails with: > {code} > MetaException(message=java.lang.IllegalArgumentException: Can not create a > Path from an empty string) > {code} > The > [{{locationUri}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/if/hive_metastore.thrift#L270] > Thrift field is 'default requiredness (implicit)', and Thrift [does not > specify|https://thrift.apache.org/docs/idl#default-requiredness-implicit] > whether unset default requiredness fields are encoded. Empirically, the Java > generated code [does not write the > {{locationUri}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java#L938-L942] > when the field is unset, while the C++ generated code > [does|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp#L3888-L3890]. > The MetaStore treats the field as optional, and [fills in a default > value|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L867-L871] > if the field is unset. > The end result is that when the C++ implementation sends a {{Database}} > without the field set, it actually writes an empty string, and the MetaStore > treats it as a set field (non-null), and then calls a {{Path}} API which > rejects the empty string. The fix is simple: make the
[jira] [Commented] (HIVE-16993) ThriftHiveMetastore.create_database can fail if the locationUri is not set
[ https://issues.apache.org/jira/browse/HIVE-16993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16075621#comment-16075621 ] Hive QA commented on HIVE-16993: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12875800/HIVE-17008.7.patch {color:green}SUCCESS:{color} +1 due to 10 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 19 failed/errored test(s), 10817 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[llap_smb] (batchId=143) org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[orc_ppd_basic] (batchId=140) org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.testCliDriver[orc_merge9] (batchId=167) org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] (batchId=232) org.apache.hadoop.hive.cli.TestSparkCliDriver.org.apache.hadoop.hive.cli.TestSparkCliDriver (batchId=101) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importAll (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importOneDb (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importOneFunc (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importOneRole (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importOneTableNonPartitioned (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importOneTablePartitioned (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importSecurity (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.importTablesWithConstraints (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.parallel (batchId=208) org.apache.hadoop.hive.metastore.hbase.TestHBaseImport.parallelOdd (batchId=208) org.apache.hive.hcatalog.api.TestHCatClient.testPartitionRegistrationWithCustomSchema (batchId=177) org.apache.hive.hcatalog.api.TestHCatClient.testPartitionSpecRegistrationWithCustomSchema (batchId=177) org.apache.hive.hcatalog.api.TestHCatClient.testTableSchemaPropagation (batchId=177) org.apache.hive.jdbc.TestJdbcDriver2.testSelectExecAsync2 (batchId=224) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/5895/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/5895/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-5895/ 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: 19 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12875800 - PreCommit-HIVE-Build > ThriftHiveMetastore.create_database can fail if the locationUri is not set > -- > > Key: HIVE-16993 > URL: https://issues.apache.org/jira/browse/HIVE-16993 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Dan Burkert >Assignee: Dan Burkert > Attachments: HIVE-16993.0-master.patch, HIVE-16993.1-master.patch, > HIVE-16993.2.patch, HIVE-16993.3.patch, HIVE-16993.4.patch, > HIVE-16993.5.patch, HIVE-17008.6.patch, HIVE-17008.7.patch > > > Calling > [{{ThriftHiveMetastore.create_database}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/if/hive_metastore.thrift#L1078] > with a database with an unset {{locationUri}} field through the C++ > implementation fails with: > {code} > MetaException(message=java.lang.IllegalArgumentException: Can not create a > Path from an empty string) > {code} > The > [{{locationUri}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/if/hive_metastore.thrift#L270] > Thrift field is 'default requiredness (implicit)', and Thrift [does not > specify|https://thrift.apache.org/docs/idl#default-requiredness-implicit] > whether unset default requiredness fields are encoded. Empirically, the Java > generated code [does not write the > {{locationUri}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java#L938-L942] > when the field is unset, while the C++ generated code > [does|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp#L3888-L3890]. > The MetaStore treats the field as optional, and [fills in a default > value|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L867-L871] > if the field is
[jira] [Commented] (HIVE-16993) ThriftHiveMetastore.create_database can fail if the locationUri is not set
[ https://issues.apache.org/jira/browse/HIVE-16993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16075137#comment-16075137 ] Hive QA commented on HIVE-16993: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12875788/HIVE-17008.6.patch {color:red}ERROR:{color} -1 due to build exiting with an error Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/5893/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/5893/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-5893/ Messages: {noformat} This message was trimmed, see log for full details (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(java.lang.String,java.lang.String,java.util.Map) is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(org.apache.hadoop.hive.metastore.api.Database) is not applicable (actual and formal argument lists differ in length) [ERROR] /data/hiveptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/hbase/TestHBaseStoreIntegration.java:[1311,21] no suitable constructor found for Database(java.lang.String,java.lang.String,java.lang.String,java.util.Map ) constructor org.apache.hadoop.hive.metastore.api.Database.Database() is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(java.lang.String,java.lang.String,java.util.Map ) is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(org.apache.hadoop.hive.metastore.api.Database) is not applicable (actual and formal argument lists differ in length) [ERROR] /data/hiveptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/hbase/TestHBaseImport.java:[277,9] no suitable constructor found for Database(java.lang.String,java.lang.String,java.lang.String,java.util.Map ) constructor org.apache.hadoop.hive.metastore.api.Database.Database() is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(java.lang.String,java.lang.String,java.util.Map ) is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(org.apache.hadoop.hive.metastore.api.Database) is not applicable (actual and formal argument lists differ in length) [ERROR] /data/hiveptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/hbase/TestHBaseImport.java:[324,9] no suitable constructor found for Database(java.lang.String,java.lang.String,java.lang.String,java.util.Map ) constructor org.apache.hadoop.hive.metastore.api.Database.Database() is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(java.lang.String,java.lang.String,java.util.Map ) is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(org.apache.hadoop.hive.metastore.api.Database) is not applicable (actual and formal argument lists differ in length) [ERROR] /data/hiveptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/hbase/TestHBaseImport.java:[365,9] no suitable constructor found for Database(java.lang.String,java.lang.String,java.lang.String,java.util.Map ) constructor org.apache.hadoop.hive.metastore.api.Database.Database() is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(java.lang.String,java.lang.String,java.util.Map ) is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(org.apache.hadoop.hive.metastore.api.Database) is not applicable (actual and formal argument lists differ in length) [ERROR] /data/hiveptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/hbase/TestHBaseImport.java:[433,9] no suitable constructor found for
[jira] [Commented] (HIVE-16993) ThriftHiveMetastore.create_database can fail if the locationUri is not set
[ https://issues.apache.org/jira/browse/HIVE-16993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16071179#comment-16071179 ] Hive QA commented on HIVE-16993: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12875344/HIVE-16993.5.patch {color:red}ERROR:{color} -1 due to build exiting with an error Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/5854/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/5854/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-5854/ Messages: {noformat} This message was trimmed, see log for full details [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/ListDelegator$1.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/HcatDelegator$1.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/LauncherDelegator$2.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/SecureProxySupport$3.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/LauncherDelegator$1.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/SecureProxySupport$1.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/SecureProxySupport$2.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/StatusDelegator$1.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/tool/HDFSStorage$1.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/tool/TempletonUtils$1.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/tool/ZooKeeperStorage$1.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/tool/TempletonControllerJob$1.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/tool/TempletonControllerJob$1$1.class]] [loading RegularFileObject[/data/hiveptest/working/apache-github-source-source/hcatalog/webhcat/svr/target/classes/org/apache/hive/hcatalog/templeton/tool/LogRetriever$1.class]] [done in 3235 ms] + [[ -d itests ]] + cd itests + mvn -B clean install -DskipTests -T 4 -q -Dmaven.repo.local=/data/hiveptest/working/maven [ERROR] COMPILATION ERROR : [ERROR] /data/hiveptest/working/apache-github-source-source/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/TestDbNotificationListener.java:[287,19] no suitable constructor found for Database(java.lang.String,java.lang.String,java.lang.String,java.util.Map) constructor org.apache.hadoop.hive.metastore.api.Database.Database() is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(java.lang.String,java.lang.String,java.util.Map ) is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(org.apache.hadoop.hive.metastore.api.Database) is not applicable (actual and formal argument lists differ in length) [ERROR] /data/hiveptest/working/apache-github-source-source/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/TestDbNotificationListener.java:[312,10] no suitable constructor found for Database(java.lang.String,java.lang.String,java.lang.String,java.util.Map ) constructor org.apache.hadoop.hive.metastore.api.Database.Database() is not applicable (actual and formal argument lists differ in length) constructor org.apache.hadoop.hive.metastore.api.Database.Database(java.lang.String,java.lang.String,java.util.Map ) is not applicable (actual and formal
[jira] [Commented] (HIVE-16993) ThriftHiveMetastore.create_database can fail if the locationUri is not set
[ https://issues.apache.org/jira/browse/HIVE-16993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16069521#comment-16069521 ] Hive QA commented on HIVE-16993: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12875161/HIVE-16993.3.patch {color:red}ERROR:{color} -1 due to build exiting with an error Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/5845/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/5845/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-5845/ 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-06-30 05:36:44.079 + [[ -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-5845/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-06-30 05:36:44.081 + cd apache-github-source-source + git fetch origin + git reset --hard HEAD HEAD is now at 3fa4834 HIVE-16761 : LLAP IO: SMB joins fail elevator (Sergey Shelukhin, reviewed by Jason Dere, Deepak Jaiswal) + 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 3fa4834 HIVE-16761 : LLAP IO: SMB joins fail elevator (Sergey Shelukhin, reviewed by Jason Dere, Deepak Jaiswal) + git merge --ff-only origin/master Already up-to-date. + date '+%Y-%m-%d %T.%3N' 2017-06-30 05:36:44.648 + 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 Going to apply patch with: patch -p1 patching file metastore/if/hive_metastore.thrift patching file metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp patching file metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h patching file metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java patching file metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb patching file metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java patching file metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStorePartitionSpecs.java patching file metastore/src/test/org/apache/hadoop/hive/metastore/TestObjectStore.java patching file metastore/src/test/org/apache/hadoop/hive/metastore/cache/TestCachedStore.java patching file metastore/src/test/org/apache/hadoop/hive/metastore/hbase/TestHBaseStore.java + [[ maven == \m\a\v\e\n ]] + rm -rf /data/hiveptest/working/maven/org/apache/hive + mvn -B clean install -DskipTests -T 4 -q -Dmaven.repo.local=/data/hiveptest/working/maven ANTLR Parser Generator Version 3.5.2 Output file /data/hiveptest/working/apache-github-source-source/metastore/target/generated-sources/antlr3/org/apache/hadoop/hive/metastore/parser/FilterParser.java does not exist: must build /data/hiveptest/working/apache-github-source-source/metastore/src/java/org/apache/hadoop/hive/metastore/parser/Filter.g org/apache/hadoop/hive/metastore/parser/Filter.g DataNucleus Enhancer (version 4.1.17) for API "JDO" DataNucleus Enhancer : Classpath >> /usr/share/maven/boot/plexus-classworlds-2.x.jar ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MDatabase ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MFieldSchema ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MType ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MTable ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MConstraint ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MSerDeInfo ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MOrder ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MColumnDescriptor ENHANCED (Persistable)
[jira] [Commented] (HIVE-16993) ThriftHiveMetastore.create_database can fail if the locationUri is not set
[ https://issues.apache.org/jira/browse/HIVE-16993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16069517#comment-16069517 ] Hive QA commented on HIVE-16993: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12875161/HIVE-16993.3.patch {color:red}ERROR:{color} -1 due to build exiting with an error Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/5844/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/5844/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-5844/ 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-06-30 05:34:37.641 + [[ -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-5844/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-06-30 05:34:37.644 + cd apache-github-source-source + git fetch origin + git reset --hard HEAD HEAD is now at 3fa4834 HIVE-16761 : LLAP IO: SMB joins fail elevator (Sergey Shelukhin, reviewed by Jason Dere, Deepak Jaiswal) + 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 3fa4834 HIVE-16761 : LLAP IO: SMB joins fail elevator (Sergey Shelukhin, reviewed by Jason Dere, Deepak Jaiswal) + git merge --ff-only origin/master Already up-to-date. + date '+%Y-%m-%d %T.%3N' 2017-06-30 05:34:39.901 + 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 Going to apply patch with: patch -p1 patching file metastore/if/hive_metastore.thrift patching file metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp patching file metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h patching file metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java patching file metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb patching file metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java patching file metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStorePartitionSpecs.java patching file metastore/src/test/org/apache/hadoop/hive/metastore/TestObjectStore.java patching file metastore/src/test/org/apache/hadoop/hive/metastore/cache/TestCachedStore.java patching file metastore/src/test/org/apache/hadoop/hive/metastore/hbase/TestHBaseStore.java + [[ maven == \m\a\v\e\n ]] + rm -rf /data/hiveptest/working/maven/org/apache/hive + mvn -B clean install -DskipTests -T 4 -q -Dmaven.repo.local=/data/hiveptest/working/maven ANTLR Parser Generator Version 3.5.2 Output file /data/hiveptest/working/apache-github-source-source/metastore/target/generated-sources/antlr3/org/apache/hadoop/hive/metastore/parser/FilterParser.java does not exist: must build /data/hiveptest/working/apache-github-source-source/metastore/src/java/org/apache/hadoop/hive/metastore/parser/Filter.g org/apache/hadoop/hive/metastore/parser/Filter.g DataNucleus Enhancer (version 4.1.17) for API "JDO" DataNucleus Enhancer : Classpath >> /usr/share/maven/boot/plexus-classworlds-2.x.jar ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MDatabase ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MFieldSchema ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MType ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MTable ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MConstraint ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MSerDeInfo ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MOrder ENHANCED (Persistable) : org.apache.hadoop.hive.metastore.model.MColumnDescriptor ENHANCED (Persistable)
[jira] [Commented] (HIVE-16993) ThriftHiveMetastore.create_database can fail if the locationUri is not set
[ https://issues.apache.org/jira/browse/HIVE-16993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16069256#comment-16069256 ] Hive QA commented on HIVE-16993: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12875114/HIVE-16993.0-master.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 10 failed/errored test(s), 10832 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[llap_smb] (batchId=144) org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[orc_ppd_basic] (batchId=141) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_if_expr] (batchId=146) org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] (batchId=233) org.apache.hadoop.hive.ql.parse.TestReplicationScenariosAcrossInstances.testBootstrapFunctionReplication (batchId=217) org.apache.hadoop.hive.ql.parse.TestReplicationScenariosAcrossInstances.testCreateFunctionIncrementalReplication (batchId=217) org.apache.hadoop.hive.ql.parse.TestReplicationScenariosAcrossInstances.testCreateFunctionWithFunctionBinaryJarsOnHDFS (batchId=217) org.apache.hive.hcatalog.api.TestHCatClient.testPartitionRegistrationWithCustomSchema (batchId=178) org.apache.hive.hcatalog.api.TestHCatClient.testPartitionSpecRegistrationWithCustomSchema (batchId=178) org.apache.hive.hcatalog.api.TestHCatClient.testTableSchemaPropagation (batchId=178) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/5836/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/5836/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-5836/ 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: 10 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12875114 - PreCommit-HIVE-Build > ThriftHiveMetastore.create_database can fail if the locationUri is not set > -- > > Key: HIVE-16993 > URL: https://issues.apache.org/jira/browse/HIVE-16993 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Dan Burkert >Assignee: Dan Burkert > Attachments: HIVE-16993.0-master.patch, HIVE-16993.1-master.patch, > HIVE-16993.2.patch, HIVE-16993.3.patch > > > Calling > [{{ThriftHiveMetastore.create_database}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/if/hive_metastore.thrift#L1078] > with a database with an unset {{locationUri}} field through the C++ > implementation fails with: > {code} > MetaException(message=java.lang.IllegalArgumentException: Can not create a > Path from an empty string) > {code} > The > [{{locationUri}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/if/hive_metastore.thrift#L270] > Thrift field is 'default requiredness (implicit)', and Thrift [does not > specify|https://thrift.apache.org/docs/idl#default-requiredness-implicit] > whether unset default requiredness fields are encoded. Empirically, the Java > generated code [does not write the > {{locationUri}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java#L938-L942] > when the field is unset, while the C++ generated code > [does|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp#L3888-L3890]. > The MetaStore treats the field as optional, and [fills in a default > value|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L867-L871] > if the field is unset. > The end result is that when the C++ implementation sends a {{Database}} > without the field set, it actually writes an empty string, and the MetaStore > treats it as a set field (non-null), and then calls a {{Path}} API which > rejects the empty string. The fix is simple: make the {{locationUri}} field > optional in metastore.thrift. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (HIVE-16993) ThriftHiveMetastore.create_database can fail if the locationUri is not set
[ https://issues.apache.org/jira/browse/HIVE-16993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16069221#comment-16069221 ] Dan Burkert commented on HIVE-16993: Added patch revision 1 with refreshed generated thrift sources, and a few updates to the tests to make it compatible with the newly generated ctor signature for {{Database}}. > ThriftHiveMetastore.create_database can fail if the locationUri is not set > -- > > Key: HIVE-16993 > URL: https://issues.apache.org/jira/browse/HIVE-16993 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Dan Burkert >Assignee: Dan Burkert > Attachments: HIVE-16993.0-master.patch, HIVE-16993.1-master.patch > > > Calling > [{{ThriftHiveMetastore.create_database}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/if/hive_metastore.thrift#L1078] > with a database with an unset {{locationUri}} field through the C++ > implementation fails with: > {code} > MetaException(message=java.lang.IllegalArgumentException: Can not create a > Path from an empty string) > {code} > The > [{{locationUri}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/if/hive_metastore.thrift#L270] > Thrift field is 'default requiredness (implicit)', and Thrift [does not > specify|https://thrift.apache.org/docs/idl#default-requiredness-implicit] > whether unset default requiredness fields are encoded. Empirically, the Java > generated code [does not write the > {{locationUri}}|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java#L938-L942] > when the field is unset, while the C++ generated code > [does|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp#L3888-L3890]. > The MetaStore treats the field as optional, and [fills in a default > value|https://github.com/apache/hive/blob/3fa48346d509813977cd3c7622d581c0ccd51e99/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L867-L871] > if the field is unset. > The end result is that when the C++ implementation sends a {{Database}} > without the field set, it actually writes an empty string, and the MetaStore > treats it as a set field (non-null), and then calls a {{Path}} API which > rejects the empty string. The fix is simple: make the {{locationUri}} field > optional in metastore.thrift. -- This message was sent by Atlassian JIRA (v6.4.14#64029)