[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14533217#comment-14533217 ] Sushanth Sowmyan commented on HIVE-10614: - Yup, skipping 24hour wait for this - it's either that or we revert the patch, and reverting the patch is no good either, because that breaks schematool. I will go ahead and commit. > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Fix For: 1.2.0 > > Attachments: HIVE-10614.1-branch-0.12.patch, HIVE-10614.1.patch, > HIVE-10614.2.addendum-branch-1.2.patch, HIVE-10614.2.addendum.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14533213#comment-14533213 ] Thejas M Nair commented on HIVE-10614: -- +1 Lets get this in soon, otherwise trunk and 1.2 branch are broken. > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Fix For: 1.2.0 > > Attachments: HIVE-10614.1-branch-0.12.patch, HIVE-10614.1.patch, > HIVE-10614.2.addendum-branch-1.2.patch, HIVE-10614.2.addendum.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531384#comment-14531384 ] Hari Sankar Sivarama Subramaniyan commented on HIVE-10614: -- [~sushanth] Thanks, HIVE-10635 is the follow-up jira. Thanks Hari > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Fix For: 1.2.0 > > Attachments: HIVE-10614.1-branch-0.12.patch, HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531360#comment-14531360 ] Sushanth Sowmyan commented on HIVE-10614: - Cool, will go ahead and commit HIVE-10614.1.patch to master and HIVE-10614.1.branch-0.12.patch to branch-1.2. [~hsubramaniyan], could you please file another jira and link it to HIVE-7018 and this jira as a follow-up jira to address removal of LINK_TARGET_ID in a manner that is schematool compliant? > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Attachments: HIVE-10614.1-branch-0.12.patch, HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531257#comment-14531257 ] Sergio Peña commented on HIVE-10614: [~thejas] Tests were run successfully!. I noticed there is a bug on the test script. I just filed a bug (HIVE-10634), and attach a patch to fix it. > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Attachments: HIVE-10614.1-branch-0.12.patch, HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531132#comment-14531132 ] Thejas M Nair commented on HIVE-10614: -- [~spena] Though it says "no tests executed", everything it ran seems to have succeeded. It looks like the run was actually successful. But I am not sure about the scope of the tests being run, can you please take a quick look ? http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-METASTORE-Test/47/console > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Attachments: HIVE-10614.1-branch-0.12.patch, HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531117#comment-14531117 ] Hive QA commented on HIVE-10614: {color:red}Overall{color}: -1 no tests executed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12730910/HIVE-10614.1.patch Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-METASTORE-Test/47/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-METASTORE-Test/47/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-METASTORE-Test-47/ This message is automatically generated. ATTACHMENT ID: 12730910 - PreCommit-HIVE-METASTORE-Test > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Attachments: HIVE-10614.1-branch-0.12.patch, HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531088#comment-14531088 ] Thejas M Nair commented on HIVE-10614: -- schematool upgrades one version at a time. It uses the version order specified in ./metastore/scripts/upgrade//upgrade.order. (eg ./metastore/scripts/upgrade/mysql/upgrade.order.mysql). > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Attachments: HIVE-10614.1.master.patch, HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531026#comment-14531026 ] Sergio Peña commented on HIVE-10614: Hi [~thejas] The script does not test an upgrade skipping hive versions. It only executes the upgrade-a.b.c-to-x.y.z.mysq.sql files. Starting from 0.10.0 until 1.3.0. For example: {noformat} Executing sql test: mysql/hive-schema-0.10.0.mysql.sql Executing sql test: mysql/upgrade-0.10.0-to-0.11.0.mysql.sql Executing sql test: mysql/upgrade-0.11.0-to-0.12.0.mysql.sql Executing sql test: mysql/upgrade-0.12.0-to-0.13.0.mysql.sql Executing sql test: mysql/upgrade-0.13.0-to-0.14.0.mysql.sql Executing sql test: mysql/upgrade-0.14.0-to-1.1.0.mysql.sql Executing sql test: mysql/upgrade-1.1.0-to-1.2.0.mysql.sql Executing sql test: mysql/upgrade-1.2.0-to-1.3.0.mysql.sql {noformat} How does the schemaTool work? Does it try to upgrade from hive-schema-0.14.0 to hive-schema-1.3.0 directly? > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Attachments: HIVE-10614.1.master.patch, HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14530974#comment-14530974 ] Thejas M Nair commented on HIVE-10614: -- [~spena] Would the metastore test suite you added be useful to test this ? I see that PreCommit-HIVE-METASTORE-Test-43 got run, but that picked the 1.2 branch patch file, so that result might not be valid. > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Attachments: HIVE-10614.1.master.patch, HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14530914#comment-14530914 ] Sushanth Sowmyan commented on HIVE-10614: - As with HIVE-9456, precommit tests would not be able to test anything here. After the requisite 24 hours, I think this can be committed as-is. > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Attachments: HIVE-10614.1.master.patch, HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14529684#comment-14529684 ] Thejas M Nair commented on HIVE-10614: -- +1 for current patch, it would work with 1.2 branch. We need another one for master (that also has similar change for hive-schema-1.3.0.mysql.sql) > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Attachments: HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14529657#comment-14529657 ] Hive QA commented on HIVE-10614: {color:red}Overall{color}: -1 no tests executed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12730668/HIVE-10614.1.patch Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-METASTORE-Test/43/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-METASTORE-Test/43/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-METASTORE-Test-43/ This message is automatically generated. ATTACHMENT ID: 12730668 - PreCommit-HIVE-METASTORE-Test > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > Attachments: HIVE-10614.1.patch > > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-10614) schemaTool upgrade from 0.14.0 to 1.3.0 causes failure
[ https://issues.apache.org/jira/browse/HIVE-10614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14529229#comment-14529229 ] Sushanth Sowmyan commented on HIVE-10614: - Marked as outage, approved for 1.2 > schemaTool upgrade from 0.14.0 to 1.3.0 causes failure > -- > > Key: HIVE-10614 > URL: https://issues.apache.org/jira/browse/HIVE-10614 > Project: Hive > Issue Type: Bug > Components: Metastore >Reporter: Hari Sankar Sivarama Subramaniyan >Assignee: Hari Sankar Sivarama Subramaniyan >Priority: Critical > > ./schematool -dbType mysql -upgradeSchemaFrom 0.14.0 -verbose > {code} > ++--+ > | >| > ++--+ > | < HIVE-7018 Remove Table and Partition tables column LINK_TARGET_ID from > Mysql for other DBs do not have it > | > ++--+ > 1 row selected (0.004 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_TLBS_LINKID > No rows affected (0.005 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS > RM_PARTITIONS_LINKID > No rows affected (0.006 seconds) > 0: jdbc:mysql://node-1.example.com/hive> DROP PROCEDURE IF EXISTS RM_LINKID > No rows affected (0.002 seconds) > 0: jdbc:mysql://node-1.example.com/hive> CREATE PROCEDURE RM_TLBS_LINKID() > BEGIN IF EXISTS (SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE > `TABLE_NAME` = 'TBLS' AND `COLUMN_NAME` = 'LINK_TARGET_ID') THEN ALTER TABLE > `TBLS` DROP FOREIGN KEY `TBLS_FK3` ; ALTER TABLE `TBLS` DROP KEY `TBLS_N51` ; > ALTER TABLE `TBLS` DROP COLUMN `LINK_TARGET_ID` ; END IF; END > Error: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near '' > at line 1 (state=42000,code=1064) > Closing: 0: jdbc:mysql://node-1.example.com/hive?createDatabaseIfNotExist=true > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > org.apache.hadoop.hive.metastore.HiveMetaException: Upgrade FAILED! Metastore > state would be inconsistent !! > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:229) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:468) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.io.IOException: Schema script failed, errorcode 2 > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:355) > at > org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:326) > at > org.apache.hive.beeline.HiveSchemaTool.doUpgrade(HiveSchemaTool.java:224) > {code} > Looks like HIVE-7018 has introduced stored procedure as part of mysql upgrade > script and it is causing issues with schematool upgrade. -- This message was sent by Atlassian JIRA (v6.3.4#6332)