Skip to content

Commit 4102fa2

Browse files
committed
Updated mysql demo readme and cdc sql
1 parent ac16110 commit 4102fa2

File tree

2 files changed

+67
-5
lines changed

2 files changed

+67
-5
lines changed

connectors/mysql/demo/README.md

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,37 @@ redislabs/redis-connect-mysql:pre-release-alpine stage
291291
<p>
292292
293293
```bash
294+
-------------------------------
295+
Staging Redis Connect redis-connect-mysql v0.4.0.7 job using Java 11.0.13 on virag-cdc started by root in /opt/redislabs/redis-connect-mysql/bin
296+
Loading Redis Connect redis-connect-mysql Configurations from /opt/redislabs/redis-connect-mysql/config/samples/mysql
297+
298+
06:37:36,477 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [/opt/redislabs/redis-connect-mysql/config/logback.xml] at [file:/opt/redislabs/redis-connect-mysql/config/logback.xml]
299+
....
300+
....
301+
06:37:36.727 [main] INFO startup - ##################################################################
302+
06:37:36.730 [main] INFO startup -
303+
06:37:36.730 [main] INFO startup - REDIS CONNECT SETUP CLEAN - Deletes metadata related to Redis Connect from Job Management Database
294304
305+
06:37:36.730 [main] INFO startup -
306+
06:37:36.730 [main] INFO startup - ##################################################################
307+
....
308+
....
309+
06:37:39.104 [main] INFO startup - ##################################################################
310+
06:37:39.106 [main] INFO startup -
311+
06:37:39.106 [main] INFO startup - REDIS CONNECT SETUP CREATE - Seed metadata related to Redis Connect to Job Management Database
312+
06:37:39.106 [main] INFO startup -
313+
06:37:39.106 [main] INFO startup - ##################################################################
314+
06:37:39.841 [main] INFO startup - Instance: 99@virag-cdc will attempt Job Management Database (Redis) with all the configurations and scripts, if applicable, needed to execute jobs
315+
06:37:40.591 [main] INFO startup - Instance: 99@virag-cdc successfully established Redis connection for INIT service
316+
06:37:40.593 [main] INFO startup - Instance: 99@virag-cdc successfully created Job Claim Assignment Stream and Consumer Group
317+
06:37:40.607 [main] INFO startup - Instance: 99@virag-cdc successfully seeded Job related metadata
318+
06:37:40.755 [main] ERROR startup - Key - RedisConnect:emp:C:Throughput already exists
319+
06:37:40.756 [main] ERROR startup - Key - RedisConnect:emp:U:Throughput already exists
320+
06:37:40.757 [main] ERROR startup - Key - RedisConnect:emp:D:Throughput already exists
321+
06:37:40.759 [main] ERROR startup - Key - RedisConnect:emp:Latency already exists
322+
06:37:40.769 [main] INFO startup - Instance: 99@virag-cdc successfully seeded Metrics related metadata
323+
06:37:40.769 [main] INFO startup - Instance: 99@virag-cdc successfully staged Job Management Database (Redis) with all the configurations and scripts, if applicable, needed to execute jobs
324+
-------------------------------
295325
```
296326
297327
</p>
@@ -323,7 +353,41 @@ redislabs/redis-connect-mysql:pre-release-alpine start
323353
<p>
324354
325355
```bash
326-
356+
-------------------------------
357+
Starting Redis Connect redis-connect-mysql v0.4.0.7 instance using Java 11.0.13 on virag-cdc started by root in /opt/redislabs/redis-connect-mysql/bin
358+
Loading Redis Connect redis-connect-mysql Configurations from /opt/redislabs/redis-connect-mysql/config/samples/mysql
359+
06:37:51,779 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [/opt/redislabs/redis-connect-mysql/config/logback.xml] at [file:/opt/redislabs/redis-connect-mysql/config/logback.xml]
360+
....
361+
....
362+
06:37:52.098 [main] INFO startup -
363+
06:37:52.103 [main] INFO startup - /$$$$$$$ /$$ /$$ /$$$$$$ /$$
364+
06:37:52.103 [main] INFO startup - | $$__ $$ | $$|__/ /$$__ $$ | $$
365+
06:37:52.104 [main] INFO startup - | $$ \ $$ /$$$$$$ /$$$$$$$ /$$ /$$$$$$$ | $$ \__/ /$$$$$$ /$$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$$ /$$$$$$
366+
06:37:52.104 [main] INFO startup - | $$$$$$$/ /$$__ $$ /$$__ $$| $$ /$$_____/ | $$ /$$__ $$| $$__ $$| $$__ $$ /$$__ $$ /$$_____/|_ $$_/
367+
06:37:52.104 [main] INFO startup - | $$__ $$| $$$$$$$$| $$ | $$| $$| $$$$$$ | $$ | $$ \ $$| $$ \ $$| $$ \ $$| $$$$$$$$| $$ | $$
368+
06:37:52.105 [main] INFO startup - | $$ \ $$| $$_____/| $$ | $$| $$ \____ $$ | $$ $$| $$ | $$| $$ | $$| $$ | $$| $$_____/| $$ | $$ /$$
369+
06:37:52.105 [main] INFO startup - | $$ | $$| $$$$$$$| $$$$$$$| $$ /$$$$$$$/ | $$$$$$/| $$$$$$/| $$ | $$| $$ | $$| $$$$$$$| $$$$$$$ | $$$$/
370+
06:37:52.105 [main] INFO startup - |__/ |__/ \_______/ \_______/|__/|_______/ \______/ \______/ |__/ |__/|__/ |__/ \_______/ \_______/ \___/
371+
06:37:52.105 [main] INFO startup -
372+
06:37:52.105 [main] INFO startup - ##################################################################
373+
06:37:52.105 [main] INFO startup -
374+
06:37:52.105 [main] INFO startup - Initializing Redis Connect Instance
375+
06:37:52.106 [main] INFO startup -
376+
06:37:52.106 [main] INFO startup - ##################################################################
377+
....
378+
....
379+
06:38:08.788 [JobManager-1] INFO startup - Instance: 30@virag-cdc successfully established Redis connection for HeartbeatManager service
380+
06:38:08.788 [JobManager-1] INFO startup - Instance: 30@virag-cdc was successfully elected Redis Connect cluster leader
381+
06:38:18.858 [JobManager-1] INFO startup - Getting instance of EventHandler for : REDIS_HASH_WRITER
382+
06:38:18.890 [JobManager-1] INFO startup - Instance: 30@virag-cdc successfully established Redis connection for RedisConnectorEventHandler service
383+
06:38:18.893 [JobManager-1] INFO startup - Getting instance of EventHandler for : REDIS_HASH_CHECKPOINT_WRITER
384+
06:38:18.894 [JobManager-1] WARN startup - metricsKey not set - Metrics collection will be disabled
385+
06:38:18.912 [JobManager-1] INFO startup - Instance: 30@virag-cdc successfully established Redis connection for RedisCheckpointReader service
386+
06:38:18.925 [JobManager-1] INFO redisconnect - Reading Mapper Config from : /opt/redislabs/redis-connect-mysql/config/samples/mysql/mappers
387+
06:38:18.940 [JobManager-1] INFO redisconnect - Loaded Config for : RedisConnect.emp
388+
06:38:19.469 [JobManager-1] INFO i.d.connector.common.BaseSourceTask - Starting MySqlConnectorTask with configuration:
389+
....
390+
....
327391
```
328392
329393
</p>

connectors/mysql/demo/mysql_cdc.sql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ SHOW DATABASES;
66
SELECT variable_value as "BINARY LOGGING STATUS (log-bin) ::" FROM performance_schema.global_variables WHERE variable_name='log_bin';
77

88
-- create a demo user for bin_log based replication
9-
CREATE USER 'redisconnectuser'@'localhost' IDENTIFIED BY 'redisconnectpassword';
9+
CREATE USER 'redisconnectuser' IDENTIFIED BY 'redisconnectpassword';
1010
-- Grant the required permissions to the user
11-
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'redisconnectuser' IDENTIFIED BY 'redisconnectpassword';
11+
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'redisconnectuser';
1212
-- check the permissions
1313
SELECT * from mysql.`user` where user='redisconnectuser';
1414

@@ -29,5 +29,3 @@ CREATE TABLE IF NOT EXISTS emp (
2929
ENGINE = InnoDB;
3030

3131
desc emp;
32-
33-
SET GLOBAL show_compatibility_56 = ON;

0 commit comments

Comments
 (0)