Re: weird alter table commands running on hive metastore

2014-12-07 Thread Viral Bajaria
Just so that this helps someone else... I found that the issue is with metastore running on a MariaDB 10.0 with TokuDB engine 7.1 TokuDB does not support foreign keys, it allows the execution of the ALTER TABLE statements, rebuilds the table for some reason but the foreign key constraint is not ap

Re: weird alter table commands running on hive metastore

2014-12-04 Thread Viral Bajaria
Some of the commands that are running (I am ignoring the REFERENCES part of it) ALTER TABLE `PARTITIONS` ADD CONSTRAINT `PARTITIONS_FK1` FOREIGN KEY (`SD_ID`) ALTER TABLE `COLUMNS_V2` ADD CONSTRAINT `COLUMNS_V2_FK1` FOREIGN KEY (`CD_ID`) ALTER TABLE `SDS` ADD CONSTRAINT `SDS_FK1` FOREIGN KEY (`CD_

weird alter table commands running on hive metastore

2014-12-04 Thread Viral Bajaria
Hi, I am seeing a bunch of "ALTER TABLE" commands running on my hive metastore (MySQL / MariaDB) and it happens whenever I run the Hive CLI. Why would running a Hive CLI issue ALTER TABLE commands ? Those ALTER TABLE commands lock the metastore and hence I find a lot of DEADLOCK issues which I h