-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for SQL Stream Builder deployment #48
Conversation
name: ssb_admin | ||
user: ssb_admin | ||
password: "{{ database_default_password }}" | ||
SQL_STREAM_BUILDER_MVE: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is any magic required to make this DB get provisioned? I had a feeling that this is a list of services rather than a list of databases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a list of databases. There was no additional magic required. Just added the db here and it got created correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised because here: https://github.com/cloudera-labs/cloudera.cluster/blob/main/roles/deployment/databases/tasks/mariadb.yml#L17 it's iterating through the databases using the list of services as a key. I'm struggling tos ee how SQL_STREAM_BUILDER_MVE would ever get created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmm... that's a good point, @tmgstevens . Let me review/retest this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmgstevens I've reviewed this and I believe there's no need for the MariaDB and PostgreSQL db creation role to filter the list of databases by the service names ({{ databases | intersect(services) }}
). Removing that subtraction appears to be harmless to me and makes it more flexible, since you can specify multiple databases per service if needed, which is the case of SSB.
I've made the change and re-tested it and the database is now being created successfully and I haven't seen any collateral effects so far.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would the side effect of this be that all database get created now, regardless of whether they are being used, due to the way that the config merge happens>=?
Signed-off-by: Andre Araujo <araujo@cloudera.com>
Signed-off-by: Andre Araujo <araujo@cloudera.com>
@tmgstevens @wmudge Anything pending here? |
One comment above |
No description provided.