[jira] [Commented] (HIVE-18606) CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask
[ https://issues.apache.org/jira/browse/HIVE-18606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16350655#comment-16350655 ] Hive QA commented on HIVE-18606: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12908896/HIVE-18606.02.patch {color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 23 failed/errored test(s), 12968 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestAccumuloCliDriver.testCliDriver[accumulo_queries] (batchId=240) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[ppd_join5] (batchId=36) org.apache.hadoop.hive.cli.TestEncryptedHDFSCliDriver.testCliDriver[encryption_move_tbl] (batchId=175) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[bucket_map_join_tez1] (batchId=172) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[insert_values_orig_table_use_metadata] (batchId=167) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[llap_acid] (batchId=171) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[llap_acid_fast] (batchId=161) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[resourceplan] (batchId=164) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[sysdb] (batchId=161) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vectorization_input_format_excludes] (batchId=163) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[ppd_join5] (batchId=122) org.apache.hadoop.hive.cli.control.TestDanglingQOuts.checkDanglingQOut (batchId=221) org.apache.hadoop.hive.metastore.client.TestTablesCreateDropAlterTruncate.testAlterTableNullStorageDescriptorInNew[Embedded] (batchId=206) org.apache.hadoop.hive.metastore.client.TestTablesGetExists.testGetAllTablesCaseInsensitive[Embedded] (batchId=206) org.apache.hadoop.hive.ql.TestTxnNoBuckets.testCtasEmpty (batchId=280) org.apache.hadoop.hive.ql.TestTxnNoBucketsVectorized.testCtasEmpty (batchId=280) org.apache.hadoop.hive.ql.exec.TestOperators.testNoConditionalTaskSizeForLlap (batchId=282) org.apache.hadoop.hive.ql.io.TestDruidRecordWriter.testWrite (batchId=256) org.apache.hive.beeline.TestBeeLineWithArgs.testEscapeCRLFOffInDSVOutput (batchId=231) org.apache.hive.beeline.cli.TestHiveCli.testNoErrorDB (batchId=188) org.apache.hive.jdbc.TestSSL.testConnectionMismatch (batchId=234) org.apache.hive.jdbc.TestSSL.testConnectionWrongCertCN (batchId=234) org.apache.hive.jdbc.TestSSL.testMetastoreConnectionWrongCertCN (batchId=234) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/8990/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/8990/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-8990/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 23 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12908896 - PreCommit-HIVE-Build > CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask > --- > > Key: HIVE-18606 > URL: https://issues.apache.org/jira/browse/HIVE-18606 > Project: Hive > Issue Type: Bug > Components: Transactions >Reporter: Eugene Koifman >Assignee: Eugene Koifman >Priority: Major > Attachments: HIVE-18606.01.patch, HIVE-18606.02.patch > > > {noformat} > @Test > public void testCtasEmpty() throws Exception { > MetastoreConf.setBoolVar(hiveConf, > MetastoreConf.ConfVars.CREATE_TABLES_AS_ACID, true); > runStatementOnDriver("create table myctas stored as ORC as" + > " select a, b from " + Table.NONACIDORCTBL); > List rs = runStatementOnDriver("select ROW__ID, a, b, > INPUT__FILE__NAME" + > " from myctas order by ROW__ID"); > } > {noformat} > {noformat} > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > metastore.HiveMetaStore (HiveMetaStore.java:logInfo(822)) - 114: Done > cleaning up thread local RawStore > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(305)) - ugi=hive > ip=unknown-ip-addr cmd=Done cleaning up thread local RawStore > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > exec.Task (SessionState.java:printError(1228)) - Failed with exception null > java.lang.NullPointerException > at >
[jira] [Commented] (HIVE-18606) CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask
[ https://issues.apache.org/jira/browse/HIVE-18606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16350583#comment-16350583 ] Hive QA commented on HIVE-18606: | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 0m 0s{color} | {color:blue} Findbugs executables are not available. {color} | | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 8m 0s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 36s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 58s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 26s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 51s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 20s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 20s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} checkstyle {color} | {color:red} 0m 57s{color} | {color:red} ql: The patch generated 1 new + 322 unchanged - 0 fixed = 323 total (was 322) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 15s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 13s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 17m 56s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus/dev-support/hive-personality.sh | | git revision | master / 39f1e82 | | Default Java | 1.8.0_111 | | checkstyle | http://104.198.109.242/logs//PreCommit-HIVE-Build-8990/yetus/diff-checkstyle-ql.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-8990/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask > --- > > Key: HIVE-18606 > URL: https://issues.apache.org/jira/browse/HIVE-18606 > Project: Hive > Issue Type: Bug > Components: Transactions >Reporter: Eugene Koifman >Assignee: Eugene Koifman >Priority: Major > Attachments: HIVE-18606.01.patch, HIVE-18606.02.patch > > > {noformat} > @Test > public void testCtasEmpty() throws Exception { > MetastoreConf.setBoolVar(hiveConf, > MetastoreConf.ConfVars.CREATE_TABLES_AS_ACID, true); > runStatementOnDriver("create table myctas stored as ORC as" + > " select a, b from " + Table.NONACIDORCTBL); > List rs = runStatementOnDriver("select ROW__ID, a, b, > INPUT__FILE__NAME" + > " from myctas order by ROW__ID"); > } > {noformat} > {noformat} > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > metastore.HiveMetaStore (HiveMetaStore.java:logInfo(822)) - 114: Done > cleaning up thread local RawStore > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(305)) - ugi=hive > ip=unknown-ip-addr cmd=Done cleaning up thread local RawStore > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > exec.Task (SessionState.java:printError(1228)) - Failed with exception null > java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.metadata.Hive.moveAcidFiles(Hive.java:3816) > at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:298) > at
[jira] [Commented] (HIVE-18606) CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask
[ https://issues.apache.org/jira/browse/HIVE-18606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16349875#comment-16349875 ] Hive QA commented on HIVE-18606: Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12908896/HIVE-18606.02.patch {color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 26 failed/errored test(s), 12967 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestAccumuloCliDriver.testCliDriver[accumulo_queries] (batchId=240) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[auto_sortmerge_join_2] (batchId=49) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[mapjoin_hook] (batchId=13) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[ppd_join5] (batchId=36) org.apache.hadoop.hive.cli.TestEncryptedHDFSCliDriver.testCliDriver[encryption_move_tbl] (batchId=175) org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[llap_smb] (batchId=152) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[bucket_map_join_tez1] (batchId=172) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[insert_values_orig_table_use_metadata] (batchId=167) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[llap_acid] (batchId=171) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[llap_acid_fast] (batchId=161) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[resourceplan] (batchId=164) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[sysdb] (batchId=161) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vectorization_input_format_excludes] (batchId=163) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[ppd_join5] (batchId=122) org.apache.hadoop.hive.cli.control.TestDanglingQOuts.checkDanglingQOut (batchId=221) org.apache.hadoop.hive.metastore.TestMarkPartition.testMarkingPartitionSet (batchId=215) org.apache.hadoop.hive.metastore.client.TestTablesCreateDropAlterTruncate.testAlterTableNullStorageDescriptorInNew[Embedded] (batchId=206) org.apache.hadoop.hive.metastore.client.TestTablesList.testListTableNamesByFilterNullDatabase[Embedded] (batchId=206) org.apache.hadoop.hive.ql.TestTxnNoBuckets.testCtasEmpty (batchId=280) org.apache.hadoop.hive.ql.TestTxnNoBucketsVectorized.testCtasEmpty (batchId=280) org.apache.hadoop.hive.ql.exec.TestOperators.testNoConditionalTaskSizeForLlap (batchId=282) org.apache.hadoop.hive.ql.io.TestDruidRecordWriter.testWrite (batchId=256) org.apache.hive.beeline.cli.TestHiveCli.testNoErrorDB (batchId=188) org.apache.hive.jdbc.TestSSL.testConnectionMismatch (batchId=234) org.apache.hive.jdbc.TestSSL.testConnectionWrongCertCN (batchId=234) org.apache.hive.jdbc.TestSSL.testMetastoreConnectionWrongCertCN (batchId=234) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/8982/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/8982/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-8982/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 26 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12908896 - PreCommit-HIVE-Build > CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask > --- > > Key: HIVE-18606 > URL: https://issues.apache.org/jira/browse/HIVE-18606 > Project: Hive > Issue Type: Bug > Components: Transactions >Reporter: Eugene Koifman >Assignee: Eugene Koifman >Priority: Major > Attachments: HIVE-18606.01.patch, HIVE-18606.02.patch > > > {noformat} > @Test > public void testCtasEmpty() throws Exception { > MetastoreConf.setBoolVar(hiveConf, > MetastoreConf.ConfVars.CREATE_TABLES_AS_ACID, true); > runStatementOnDriver("create table myctas stored as ORC as" + > " select a, b from " + Table.NONACIDORCTBL); > List rs = runStatementOnDriver("select ROW__ID, a, b, > INPUT__FILE__NAME" + > " from myctas order by ROW__ID"); > } > {noformat} > {noformat} > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > metastore.HiveMetaStore (HiveMetaStore.java:logInfo(822)) - 114: Done > cleaning up thread local RawStore > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(305)) - ugi=hive > ip=unknown-ip-addr cmd=Done cleaning up thread local
[jira] [Commented] (HIVE-18606) CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask
[ https://issues.apache.org/jira/browse/HIVE-18606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16349825#comment-16349825 ] Hive QA commented on HIVE-18606: | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 0m 0s{color} | {color:blue} Findbugs executables are not available. {color} | | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 6m 51s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 57s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 40s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 51s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 14s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 59s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 0m 59s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} checkstyle {color} | {color:red} 0m 41s{color} | {color:red} ql: The patch generated 1 new + 322 unchanged - 0 fixed = 323 total (was 322) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 51s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 12s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 13m 30s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus/dev-support/hive-personality.sh | | git revision | master / 32b8994 | | Default Java | 1.8.0_111 | | checkstyle | http://104.198.109.242/logs//PreCommit-HIVE-Build-8982/yetus/diff-checkstyle-ql.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-8982/yetus.txt | | Powered by | Apache Yetushttp://yetus.apache.org | This message was automatically generated. > CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask > --- > > Key: HIVE-18606 > URL: https://issues.apache.org/jira/browse/HIVE-18606 > Project: Hive > Issue Type: Bug > Components: Transactions >Reporter: Eugene Koifman >Assignee: Eugene Koifman >Priority: Major > Attachments: HIVE-18606.01.patch, HIVE-18606.02.patch > > > {noformat} > @Test > public void testCtasEmpty() throws Exception { > MetastoreConf.setBoolVar(hiveConf, > MetastoreConf.ConfVars.CREATE_TABLES_AS_ACID, true); > runStatementOnDriver("create table myctas stored as ORC as" + > " select a, b from " + Table.NONACIDORCTBL); > List rs = runStatementOnDriver("select ROW__ID, a, b, > INPUT__FILE__NAME" + > " from myctas order by ROW__ID"); > } > {noformat} > {noformat} > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > metastore.HiveMetaStore (HiveMetaStore.java:logInfo(822)) - 114: Done > cleaning up thread local RawStore > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(305)) - ugi=hive > ip=unknown-ip-addr cmd=Done cleaning up thread local RawStore > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > exec.Task (SessionState.java:printError(1228)) - Failed with exception null > java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.metadata.Hive.moveAcidFiles(Hive.java:3816) > at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:298) > at
[jira] [Commented] (HIVE-18606) CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask
[ https://issues.apache.org/jira/browse/HIVE-18606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16349637#comment-16349637 ] Sergey Shelukhin commented on HIVE-18606: - nit: else should be on the same line according to Hive coding standard :) +1 > CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask > --- > > Key: HIVE-18606 > URL: https://issues.apache.org/jira/browse/HIVE-18606 > Project: Hive > Issue Type: Bug > Components: Transactions >Reporter: Eugene Koifman >Assignee: Eugene Koifman >Priority: Major > Attachments: HIVE-18606.01.patch, HIVE-18606.02.patch > > > {noformat} > @Test > public void testCtasEmpty() throws Exception { > MetastoreConf.setBoolVar(hiveConf, > MetastoreConf.ConfVars.CREATE_TABLES_AS_ACID, true); > runStatementOnDriver("create table myctas stored as ORC as" + > " select a, b from " + Table.NONACIDORCTBL); > List rs = runStatementOnDriver("select ROW__ID, a, b, > INPUT__FILE__NAME" + > " from myctas order by ROW__ID"); > } > {noformat} > {noformat} > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > metastore.HiveMetaStore (HiveMetaStore.java:logInfo(822)) - 114: Done > cleaning up thread local RawStore > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(305)) - ugi=hive > ip=unknown-ip-addr cmd=Done cleaning up thread local RawStore > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > exec.Task (SessionState.java:printError(1228)) - Failed with exception null > java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.metadata.Hive.moveAcidFiles(Hive.java:3816) > at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:298) > at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:205) > at > org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:97) > at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2267) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1919) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1651) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1395) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1388) > at > org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:253) > at > org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:92) > at > org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:345) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1965) > at > org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:358) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > ql.Driver (SessionState.java:printError(1228)) - FAILED: Execution Error, > return code 1 from {noformat} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-18606) CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask
[ https://issues.apache.org/jira/browse/HIVE-18606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16349633#comment-16349633 ] Eugene Koifman commented on HIVE-18606: --- yes, you are right. fixed in patch2 > CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask > --- > > Key: HIVE-18606 > URL: https://issues.apache.org/jira/browse/HIVE-18606 > Project: Hive > Issue Type: Bug > Components: Transactions >Reporter: Eugene Koifman >Assignee: Eugene Koifman >Priority: Major > Attachments: HIVE-18606.01.patch, HIVE-18606.02.patch > > > {noformat} > @Test > public void testCtasEmpty() throws Exception { > MetastoreConf.setBoolVar(hiveConf, > MetastoreConf.ConfVars.CREATE_TABLES_AS_ACID, true); > runStatementOnDriver("create table myctas stored as ORC as" + > " select a, b from " + Table.NONACIDORCTBL); > List rs = runStatementOnDriver("select ROW__ID, a, b, > INPUT__FILE__NAME" + > " from myctas order by ROW__ID"); > } > {noformat} > {noformat} > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > metastore.HiveMetaStore (HiveMetaStore.java:logInfo(822)) - 114: Done > cleaning up thread local RawStore > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(305)) - ugi=hive > ip=unknown-ip-addr cmd=Done cleaning up thread local RawStore > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > exec.Task (SessionState.java:printError(1228)) - Failed with exception null > java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.metadata.Hive.moveAcidFiles(Hive.java:3816) > at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:298) > at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:205) > at > org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:97) > at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2267) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1919) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1651) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1395) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1388) > at > org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:253) > at > org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:92) > at > org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:345) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1965) > at > org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:358) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > ql.Driver (SessionState.java:printError(1228)) - FAILED: Execution Error, > return code 1 from {noformat} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-18606) CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask
[ https://issues.apache.org/jira/browse/HIVE-18606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16349629#comment-16349629 ] Sergey Shelukhin commented on HIVE-18606: - {noformat} +if(srcs != null) { + LOG.debug("No files found to move from " + sourcePath + " to " + targetPath); {noformat} Seems like this debug statement should be in the else. Looks good otherwise > CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask > --- > > Key: HIVE-18606 > URL: https://issues.apache.org/jira/browse/HIVE-18606 > Project: Hive > Issue Type: Bug > Components: Transactions >Reporter: Eugene Koifman >Assignee: Eugene Koifman >Priority: Major > Attachments: HIVE-18606.01.patch > > > {noformat} > @Test > public void testCtasEmpty() throws Exception { > MetastoreConf.setBoolVar(hiveConf, > MetastoreConf.ConfVars.CREATE_TABLES_AS_ACID, true); > runStatementOnDriver("create table myctas stored as ORC as" + > " select a, b from " + Table.NONACIDORCTBL); > List rs = runStatementOnDriver("select ROW__ID, a, b, > INPUT__FILE__NAME" + > " from myctas order by ROW__ID"); > } > {noformat} > {noformat} > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > metastore.HiveMetaStore (HiveMetaStore.java:logInfo(822)) - 114: Done > cleaning up thread local RawStore > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(305)) - ugi=hive > ip=unknown-ip-addr cmd=Done cleaning up thread local RawStore > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > exec.Task (SessionState.java:printError(1228)) - Failed with exception null > java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.metadata.Hive.moveAcidFiles(Hive.java:3816) > at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:298) > at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:205) > at > org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:97) > at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2267) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1919) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1651) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1395) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1388) > at > org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:253) > at > org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:92) > at > org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:345) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1965) > at > org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:358) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > ql.Driver (SessionState.java:printError(1228)) - FAILED: Execution Error, > return code 1 from {noformat} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HIVE-18606) CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask
[ https://issues.apache.org/jira/browse/HIVE-18606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16349627#comment-16349627 ] Eugene Koifman commented on HIVE-18606: --- [~sershe] could you review please > CTAS on empty table throws NPE from org.apache.hadoop.hive.ql.exec.MoveTask > --- > > Key: HIVE-18606 > URL: https://issues.apache.org/jira/browse/HIVE-18606 > Project: Hive > Issue Type: Bug > Components: Transactions >Reporter: Eugene Koifman >Assignee: Eugene Koifman >Priority: Major > Attachments: HIVE-18606.01.patch > > > {noformat} > @Test > public void testCtasEmpty() throws Exception { > MetastoreConf.setBoolVar(hiveConf, > MetastoreConf.ConfVars.CREATE_TABLES_AS_ACID, true); > runStatementOnDriver("create table myctas stored as ORC as" + > " select a, b from " + Table.NONACIDORCTBL); > List rs = runStatementOnDriver("select ROW__ID, a, b, > INPUT__FILE__NAME" + > " from myctas order by ROW__ID"); > } > {noformat} > {noformat} > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > metastore.HiveMetaStore (HiveMetaStore.java:logInfo(822)) - 114: Done > cleaning up thread local RawStore > 2018-02-01T19:08:52,813 INFO [HiveServer2-Background-Pool: Thread-463]: > HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(305)) - ugi=hive > ip=unknown-ip-addr cmd=Done cleaning up thread local RawStore > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > exec.Task (SessionState.java:printError(1228)) - Failed with exception null > java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.metadata.Hive.moveAcidFiles(Hive.java:3816) > at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:298) > at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:205) > at > org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:97) > at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2267) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1919) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1651) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1395) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1388) > at > org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:253) > at > org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:92) > at > org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:345) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1965) > at > org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:358) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2018-02-01T19:08:52,815 ERROR [HiveServer2-Background-Pool: Thread-463]: > ql.Driver (SessionState.java:printError(1228)) - FAILED: Execution Error, > return code 1 from {noformat} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)