Skip to content

Commit

Permalink
Capitalized default password due to change of password policy in Ranger.
Browse files Browse the repository at this point in the history
"This commit does not contain secrets"
  • Loading branch information
asdaraujo committed Aug 3, 2022
1 parent bd8835c commit 752b7f6
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 44 deletions.
2 changes: 1 addition & 1 deletion AC_Demo.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ssh -i $WPEM centos@$WDNS
|Schema Registry|http://<public_dns>:7788/|
|SMM|http://<public_dns>:9991/|
|Hue|http://<public_dns>:8888/|
|CDSW|http://cdsw.<public_IP>.nip.io/|`admin/supersecret1`
|CDSW|http://cdsw.<public_IP>.nip.io/|`admin/Supersecret1`
|===
. Login into *Cloudera Manager* and familiarize yourself with the services installed
. Login into *Hue*. As you are the first user to login into Hue, you are granted admin privileges. At this point, you won't need to do anything on Hue, but by logging in, CDH has created your HDFS user and folder.
Expand Down
8 changes: 4 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ You instructor will give access to a registration link where you can request a c
[%autowidth,options="header"]
|===
|Service|URL|Credentials
|Cloudera Manager|http://<public_dns>:7180/|`admin/supersecret1`
|Cloudera Manager|http://<public_dns>:7180/|`admin/Supersecret1`
|Edge Flow Manager|http://<public_dns>:10088/efm/ui/|
|NiFi|http://<public_dns>:8080/nifi/|
|NiFi Registry|http://<public_dns>:18080/nifi-registry/|
|Schema Registry|http://<public_dns>:7788/|
|SMM|http://<public_dns>:9991/|
|Hue|http://<public_dns>:8888/|`admin/supersecret1`
|CDSW|http://cdsw.<public_IP>.nip.io/|`admin/supersecret1`
|Hue|http://<public_dns>:8888/|`admin/Supersecret1`
|CDSW|http://cdsw.<public_IP>.nip.io/|`admin/Supersecret1`
|===
. Login into *Cloudera Manager* and familiarize yourself with the services installed
. Login into *Hue*. As you are the first user to login into Hue, you are granted admin privileges. At this point, you won't need to do anything on Hue, but by logging in, CDH has created your HDFS user and folder, which you will need for the next lab.
Expand All @@ -65,7 +65,7 @@ SSH access is only required if you need to troubleshoot issues or want to poke a

==== SSH into the cluster from the Web UI

From the registration link, you can click on the link at the right side to connect to the cluster from a web based SSH client with the credential centos/supersecret1.
From the registration link, you can click on the link at the right side to connect to the cluster from a web based SSH client with the credential centos/Supersecret1.

==== SSH into the cluster from Linux/Macos

Expand Down
2 changes: 1 addition & 1 deletion setup/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ A few helper scripts are provided to help managing the clusters. Cluster numbers

== Use the environment

* Once the script returns, you can open Cloudera Manager at http://<public_dns>:7180. The default credentials are `admin/supersecret1`.
* Once the script returns, you can open Cloudera Manager at http://<public_dns>:7180. The default credentials are `admin/Supersecret1`.

* Wait for about 10-20 mins for CDSW to be ready. You can monitor the status of CDSW by issuing the `cdsw status` command.

Expand Down
2 changes: 1 addition & 1 deletion setup/terraform/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export TF_VAR_azure_tenant_id=

# Other options
export TF_VAR_ssh_username=centos
export TF_VAR_ssh_password=supersecret1
export TF_VAR_ssh_password=Supersecret1
export TF_VAR_deploy_cdsw_model=true

# Instance Type (defaults are: AWS=r5a.4xlarge, Azure=Standard_E16_v3)
Expand Down
2 changes: 1 addition & 1 deletion setup/terraform/ipa/setup-ipa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o xtrace
trap 'echo Setup return code: $?' 0
BASE_DIR=$(cd $(dirname $0); pwd -L)

THE_PWD=supersecret1
THE_PWD=Supersecret1

KEYTABS_DIR=/keytabs
REALM_NAME=WORKSHOP.COM
Expand Down
2 changes: 1 addition & 1 deletion setup/terraform/lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PUBLIC_IPS_FILE=$BASE_DIR/.hosts.$$

BASE_PROVIDER_DIR=$BASE_DIR/providers

THE_PWD=supersecret1
THE_PWD=Supersecret1

OPTIONAL_VARS="TF_VAR_registration_code|TF_VAR_aws_profile|TF_VAR_aws_access_key_id|TF_VAR_aws_secret_access_key|TF_VAR_azure_subscription_id|TF_VAR_azure_tenant_id"

Expand Down
22 changes: 0 additions & 22 deletions setup/terraform/providers/azure/env

This file was deleted.

2 changes: 1 addition & 1 deletion setup/terraform/resources/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ KEYTABS_DIR=/keytabs
KAFKA_CLIENT_PROPERTIES=${KEYTABS_DIR}/kafka-client.properties
KRB_REALM=WORKSHOP.COM

export THE_PWD=supersecret1
export THE_PWD=Supersecret1
export THE_PWD_HASH=2221f4b716722c14a16f02edc6a3dbeb3a12e63affa9bde99f9ac79f2bbcb276
export THE_PWD_SALT=7690128891203708887

Expand Down
4 changes: 2 additions & 2 deletions setup/terraform/resources/labs/workshop_cdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'connector' = 'postgres-cdc',
'hostname' = '{hostname}',
'username' = 'cdc_user',
'password' = 'supersecret1',
'password' = '{pwd}',
'database-name' = 'cdc_test',
'table-name' = 'transactions',
'schema-name' = 'public',
Expand All @@ -49,7 +49,7 @@
'debezium.slot.name' = 'flink',
'debezium.snapshot.mode' = 'initial'
);
'''.format(hostname=get_hostname())
'''.format(pwd=get_the_pwd(), hostname=get_hostname())

LAB3_TRANSACTIONS = '''
INSERT INTO transactions
Expand Down
2 changes: 1 addition & 1 deletion setup/terraform/smm/smm-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export SR_ADDR=
export SR_URL=

CM_USER=admin
CM_PWD=supersecret1
CM_PWD=Supersecret1
CM_HOST=$(grep "^ *server_host" /etc/cloudera-scm-agent/config.ini | sed 's/ //g;s/.*=//')

declare -a KAFKA_TOPICS=(
Expand Down
2 changes: 1 addition & 1 deletion setup/terraform/web/start-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BASE_DIR=$(cd $(dirname $0); pwd -L)
DB_HOST=localhost
DB_NAME=workshop
DB_USER=workshop
DB_PWD=supersecret1
DB_PWD=Supersecret1

function log_status() {
local msg=$1
Expand Down
14 changes: 7 additions & 7 deletions workshop_cdc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ The command below creates the `cdc_user` user/role as a _superuser_:
[source,sql]
----
-- Create cdc_user as a superuser
CREATE ROLE cdc_user WITH SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD 'supersecret1';
CREATE ROLE cdc_user WITH SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD 'Supersecret1';
----

Alternatively, you can ask the database administrator to set the database up so that the Debezium user does not need to be a superuser and only has the privileges to connect and capture changelogs from specific databases.
Expand All @@ -98,7 +98,7 @@ The commands below creates the `cdc_user` user/role as a _superuser_:
[source,sql]
----
-- Create cdc_user user with only LOGIN and REPLICATION privileges
CREATE ROLE cdc_user WITH REPLICATION LOGIN PASSWORD 'supersecret1';
CREATE ROLE cdc_user WITH REPLICATION LOGIN PASSWORD 'Supersecret1';
-- Grant privileges on the cdc_test database to the cdc_user
GRANT CONNECT ON DATABASE cdc_test TO cdc_user;
-- Connect to the cdc_test database
Expand Down Expand Up @@ -137,7 +137,7 @@ Let's start by connecting to PostgreSQL and creating the table.

. Connect to your cluster host using SSH

. Execute the following command to connect to the `cdc_test` database as `cdc_user`. The password for this user is `supersecret1`.
. Execute the following command to connect to the `cdc_test` database as `cdc_user`. The password for this user is `Supersecret1`.
+
[source,shell]
----
Expand Down Expand Up @@ -186,7 +186,7 @@ SELECT * FROM transactions;

In this lab you will set up an SSB table to capture the changelog stream for the `transactions` table.

. In the SSB UI, if you haven't authenticated yet, log in with user `admin` and password `supersecret1`.
. In the SSB UI, if you haven't authenticated yet, log in with user `admin` and password `Supersecret1`.

. Create a new job and call it `cdc_labs`.

Expand Down Expand Up @@ -241,7 +241,7 @@ connector: postgres-cdc
database-name: cdc_test
hostname: <CLUSTER_HOSTNAME>
username: cdc_user
password: supersecret1
password: Supersecret1
schema-name: public
table-name: transactions
----
Expand Down Expand Up @@ -269,7 +269,7 @@ CREATE TABLE transactions_cdc (
'connector' = 'postgres-cdc',
'hostname' = '<CLUSTER_HOSTNAME>',
'username' = 'cdc_user',
'password' = 'supersecret1',
'password' = 'Supersecret1',
'database-name' = 'cdc_test',
'schema-name' = 'public',
'table-name' = 'transactions',
Expand Down Expand Up @@ -422,7 +422,7 @@ connector: jdbc
url: jdbc:postgresql://<CLUSTER_HOSTNAME>:5432/cdc_test
table-name: trans_replica
username: cdc_user
password: supersecret1
password: Supersecret1
driver: org.postgresql.Driver
----

Expand Down
2 changes: 1 addition & 1 deletion workshop_ssb.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Before you can start querying data from Kafka topics you need to register the Ka

. Click on the *SQLStreamBuilder Console* link to open the SSB UI.

. On the logon screen, authenticate with user `admin` and password `supersecret1`.
. On the logon screen, authenticate with user `admin` and password `Supersecret1`.

. You will notice that SSB already has a Kafka cluster registered as a data provider, named `CDP Kafka`. This provider is created automatically for SSB when it is installed on a cluster that also has a Kafka service:
+
Expand Down

0 comments on commit 752b7f6

Please sign in to comment.