-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -1,4 +1,26 @@ | ||
--- | ||
OZONE: | ||
OZONE_PROMETHEUS: | ||
ozone.prometheus.ca.file: {{ tls_chain_path }} | ||
ozone.prometheus.ca.file: {{ tls_chain_path }} | ||
SQL_STREAM_BUILDER: | ||
STREAMING_SQL_ENGINE: | ||
ssl_client_truststore_location: {{ tls_truststore_path }} | ||
ssl_client_truststore_password: {{ tls_truststore_password }} | ||
ssl_enabled: true | ||
ssl_server_keystore_keypassword: {{ tls_keystore_password }} | ||
ssl_server_keystore_location: {{ tls_keystore_path_generic }} | ||
ssl_server_keystore_password: {{ tls_keystore_password }} | ||
MATERIALIZED_VIEW_ENGINE: | ||
ssl_client_truststore_location: {{ tls_truststore_path }} | ||
ssl_client_truststore_password: {{ tls_truststore_password }} | ||
ssl_enabled: true | ||
ssl_server_keystore_keypassword: {{ tls_keystore_password }} | ||
ssl_server_keystore_location: {{ tls_keystore_path_generic }} | ||
ssl_server_keystore_password: {{ tls_keystore_password }} | ||
STREAMING_SQL_CONSOLE: | ||
ssl_client_truststore_location: {{ tls_chain_path }} | ||
ssl_enabled: true | ||
ssl_server_ca_certificate_location: {{ tls_chain_path }} | ||
ssl_server_certificate_location: {{ tls_cert_path_generic }} | ||
ssl_server_privatekey_location: {{ tls_key_path_generic }} | ||
ssl_server_privatekey_password: {{ tls_key_password }} |
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
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
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 |
---|---|---|
@@ -1,57 +1,58 @@ | ||
- KEYTRUSTEE_SERVER | ||
- ZOOKEEPER | ||
- INFRA_SOLR | ||
- RANGER | ||
- RANGER_KMS | ||
- RANGER_KMS_KTS | ||
- RANGER_RAZ | ||
- KMS | ||
- HDFS | ||
- SENTRY | ||
- LIVY | ||
- HBASE | ||
- SOLR | ||
- SQOOP | ||
- SQOOP_CLIENT | ||
- ACCUMULO16 | ||
- ACCUMULO_C6 | ||
- HIVE | ||
- TEZ | ||
- HIVE_ON_TEZ | ||
- KUDU | ||
- IMPALA | ||
- YARN | ||
- ADLS_CONNECTOR | ||
- ATLAS | ||
- AWS_S3 | ||
- CDSW | ||
- CORE_SETTINGS | ||
- CRUISE_CONTROL | ||
- DAS | ||
- FLINK | ||
- FLUME | ||
- SPARK | ||
- SPARK2_ON_YARN | ||
- SPARK3_ON_YARN | ||
- SPARK_ON_YARN | ||
- HBASE | ||
- HDFS | ||
- HIVE | ||
- HIVE_ON_TEZ | ||
- HUE | ||
- IMPALA | ||
- INFRA_SOLR | ||
- ISILON | ||
- KAFKA | ||
- KEYTRUSTEE | ||
- KEYTRUSTEE_SERVER | ||
- KMS | ||
- KNOX | ||
- KS_INDEXER | ||
- KUDU | ||
- LIVY | ||
- LUNA_KMS | ||
- MAPREDUCE | ||
- NIFI | ||
- NIFIREGISTRY | ||
- NIFITOOLKITCA | ||
- OOZIE | ||
- OZONE | ||
- PHOENIX | ||
- QUEUEMANAGER | ||
- RANGER | ||
- RANGER_KMS | ||
- RANGER_KMS_KTS | ||
- RANGER_RAZ | ||
- SCHEMAREGISTRY | ||
- SENTRY | ||
- SOLR | ||
- SPARK | ||
- SPARK2_ON_YARN | ||
- SPARK3_ON_YARN | ||
- SPARK_ON_YARN | ||
- SQL_STREAM_BUILDER | ||
tmgstevens marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- SQOOP | ||
- SQOOP_CLIENT | ||
- STREAMS_MESSAGING_MANAGER | ||
- STREAMS_REPLICATION_MANAGER | ||
- TEZ | ||
- THALES_KMS | ||
- WXM | ||
- YARN | ||
- ZEPPELIN | ||
- ATLAS | ||
- OOZIE | ||
- HUE | ||
- ZOOKEEPER |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
FLINK: | ||
- FLINK_HISTORY_SERVER | ||
- GATEWAY | ||
SQL_STREAM_BUILDER: | ||
- STREAMING_SQL_ENGINE | ||
- MATERIALIZED_VIEW_ENGINE | ||
- STREAMING_SQL_CONSOLE |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2021 Cloudera, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
|
||
postgresql_connector_url: https://jdbc.postgresql.org/download/postgresql-42.3.3.jar | ||
postgresql_connector_checksum: md5:bef0b2e1c6edcd8647c24bed31e1a4ac |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2021 Cloudera, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
dependencies: | ||
- role: cloudera.cluster.deployment.definition | ||
tmgstevens marked this conversation as resolved.
Show resolved
Hide resolved
|
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright 2021 Cloudera, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
|
||
- name: Download PostgreSQL Connector | ||
get_url: | ||
url: "{{ postgresql_connector_url }}" | ||
dest: "{{ local_temp_dir }}/postgresql-connector-java.jar" | ||
checksum: "{{ postgresql_connector_checksum }}" | ||
mode: 0644 | ||
become: no | ||
run_once: true | ||
delegate_to: localhost | ||
|
||
- name: Create /usr/share/java directory | ||
file: | ||
path: /usr/share/java | ||
state: directory | ||
mode: 0755 | ||
|
||
- name: Copy PostgreSQL Connector jar file to correct location | ||
copy: | ||
src: "{{ local_temp_dir }}/postgresql-connector-java.jar" | ||
dest: /usr/share/java/postgresql-connector-java.jar | ||
mode: 0644 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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>=?