forked from logicalclocks/hopsworks-chef
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FSTORE-588] Kafka Authoriser Update (logicalclocks#879)
- Loading branch information
Showing
4 changed files
with
66 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,15 @@ CREATE TABLE IF NOT EXISTS `hdfs_command_execution` ( | |
|
||
ALTER TABLE `hopsworks`.`executions` MODIFY COLUMN `app_id` char(45) COLLATE latin1_general_cs DEFAULT NULL; | ||
|
||
ALTER TABLE `hopsworks`.`maggy_driver` MODIFY COLUMN `app_id` char(45) COLLATE latin1_general_cs NOT NULL; | ||
ALTER TABLE `hopsworks`.`maggy_driver` MODIFY COLUMN `app_id` char(45) COLLATE latin1_general_cs NOT NULL; | ||
|
||
DROP TABLE `shared_topics`; | ||
DROP TABLE `topic_acls`; | ||
|
||
ALTER TABLE `hopsworks`.`project_topics` ADD UNIQUE KEY `topic_name_UNIQUE` (`topic_name`); | ||
|
||
SET SQL_SAFE_UPDATES = 0; | ||
UPDATE `project_team` | ||
SET team_role = 'Data owner' | ||
WHERE team_member = '[email protected]'; | ||
SET SQL_SAFE_UPDATES = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,53 @@ DROP TABLE IF EXISTS `hopsworks`.`hdfs_command_execution`; | |
ALTER TABLE `hopsworks`.`executions` MODIFY COLUMN `app_id` char(30) COLLATE latin1_general_cs DEFAULT NULL; | ||
|
||
ALTER TABLE `hopsworks`.`maggy_driver` MODIFY COLUMN `app_id` char(30) COLLATE latin1_general_cs NOT NULL; | ||
|
||
-- | ||
-- Table structure for table `shared_topics` | ||
-- | ||
|
||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `shared_topics` ( | ||
`topic_name` varchar(255) COLLATE latin1_general_cs NOT NULL, | ||
`project_id` int(11) NOT NULL, | ||
`owner_id` int(11) NOT NULL, | ||
`accepted` tinyint(1) NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`project_id`,`topic_name`), | ||
KEY `topic_idx` (`topic_name`,`owner_id`), | ||
CONSTRAINT `topic_idx_shared` FOREIGN KEY (`topic_name`,`owner_id`) REFERENCES `project_topics` (`topic_name`,`project_id`) ON DELETE CASCADE ON UPDATE NO ACTION | ||
) ENGINE=ndbcluster DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs | ||
/*!50100 PARTITION BY KEY (topic_name) */; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Table structure for table `topic_acls` | ||
-- | ||
|
||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `topic_acls` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`topic_name` varchar(255) COLLATE latin1_general_cs NOT NULL, | ||
`project_id` int(11) NOT NULL, | ||
`username` varchar(150) COLLATE latin1_general_cs NOT NULL, | ||
`principal` varchar(170) COLLATE latin1_general_cs NOT NULL, | ||
`permission_type` varchar(255) COLLATE latin1_general_cs NOT NULL, | ||
`operation_type` varchar(255) COLLATE latin1_general_cs NOT NULL, | ||
`host` varchar(255) COLLATE latin1_general_cs NOT NULL, | ||
`role` varchar(255) COLLATE latin1_general_cs NOT NULL, | ||
PRIMARY KEY (`id`), | ||
KEY `username` (`username`), | ||
KEY `topic_idx` (`topic_name`,`project_id`), | ||
CONSTRAINT `FK_262_338` FOREIGN KEY (`username`) REFERENCES `users` (`email`) ON DELETE NO ACTION ON UPDATE NO ACTION, | ||
CONSTRAINT `topic_idx_topic_acls` FOREIGN KEY (`topic_name`,`project_id`) REFERENCES `project_topics` (`topic_name`,`project_id`) ON DELETE CASCADE ON UPDATE NO ACTION | ||
) ENGINE=ndbcluster DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
ALTER TABLE `hopsworks`.`project_topics` DROP INDEX `topic_name_UNIQUE`; | ||
|
||
SET SQL_SAFE_UPDATES = 0; | ||
UPDATE `project_team` | ||
SET team_role = 'Data scientist' | ||
WHERE team_member = '[email protected]'; | ||
SET SQL_SAFE_UPDATES = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters