Skip to content

Commit 0e340a5

Browse files
author
jruaux
committed
style(demo): Ordered properties
1 parent ee0ffd1 commit 0e340a5

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

run.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ echo -e "\nAdding Redis Kafka Sink Connector for the 'pageviews' topic into the
8080
curl -X POST -H "Content-Type: application/json" --data '
8181
{"name": "redis-sink",
8282
"config": {
83-
"connector.class":"com.redis.kafka.connect.RedisSinkConnector",
84-
"tasks.max":"1",
85-
"topics":"pageviews",
86-
"redis.uri":"redis://redis:6379",
83+
"connector.class": "com.redis.kafka.connect.RedisSinkConnector",
84+
"tasks.max": "1",
85+
"topics": "pageviews",
86+
"redis.uri": "redis://redis:6379",
8787
"key.converter": "org.apache.kafka.connect.storage.StringConverter",
8888
"value.converter": "org.apache.kafka.connect.json.JsonConverter",
8989
"value.converter.schemas.enable": "false"
@@ -94,28 +94,28 @@ echo -e "\nAdding Redis Kafka Sink Connector for the 'pageviews' topic into Redi
9494
curl -X POST -H "Content-Type: application/json" --data '
9595
{"name": "redis-sink-json",
9696
"config": {
97-
"connector.class":"com.redis.kafka.connect.RedisSinkConnector",
98-
"tasks.max":"1",
99-
"topics":"pageviews",
100-
"redis.uri":"redis://redis:6379",
101-
"redis.command":"JSONSET",
97+
"connector.class": "com.redis.kafka.connect.RedisSinkConnector",
98+
"tasks.max": "1",
10299
"key.converter": "org.apache.kafka.connect.json.JsonConverter",
103-
"value.converter": "org.apache.kafka.connect.storage.StringConverter",
104-
"value.converter.schemas.enable": "false",
100+
"redis.command": "JSONSET",
101+
"redis.uri": "redis://redis:6379",
102+
"topics": "pageviews",
105103
"transforms": "Cast",
104+
"transforms.Cast.spec": "string",
106105
"transforms.Cast.type": "org.apache.kafka.connect.transforms.Cast$Key",
107-
"transforms.Cast.spec": "string"
106+
"value.converter": "org.apache.kafka.connect.storage.StringConverter",
107+
"value.converter.schemas.enable": "false"
108108
}}' http://localhost:8083/connectors -w "\n"
109109

110110
sleep 2
111111
echo -e "\nAdding Redis Kafka Source Connector for the 'mystream' stream:"
112112
curl -X POST -H "Content-Type: application/json" --data '
113113
{"name": "redis-source",
114114
"config": {
115-
"tasks.max":"1",
116-
"connector.class":"com.redis.kafka.connect.RedisStreamSourceConnector",
117-
"redis.uri":"redis://redis:6379",
118-
"redis.stream.name":"mystream",
115+
"tasks.max": "1",
116+
"connector.class": "com.redis.kafka.connect.RedisStreamSourceConnector",
117+
"redis.uri": "redis://redis:6379",
118+
"redis.stream.name": "mystream",
119119
"topic": "mystream"
120120
}}' http://localhost:8083/connectors -w "\n"
121121

@@ -124,10 +124,10 @@ echo -e "\nAdding Keys Source Connector for keys 'mykey:*':"
124124
curl -X POST -H "Content-Type: application/json" --data '
125125
{"name": "redis-keys-source",
126126
"config": {
127-
"tasks.max":"1",
128-
"connector.class":"com.redis.kafka.connect.RedisKeysSourceConnector",
129-
"redis.uri":"redis://redis:6379",
130-
"redis.keys.pattern":"mykey:*",
127+
"tasks.max": "1",
128+
"connector.class": "com.redis.kafka.connect.RedisKeysSourceConnector",
129+
"redis.uri": "redis://redis:6379",
130+
"redis.keys.pattern": "mykey:*",
131131
"topic": "mykeys"
132132
}}' http://localhost:8083/connectors -w "\n"
133133

0 commit comments

Comments
 (0)