File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,15 @@ def main(args):
98
98
99
99
sr_conf = {'url' : args .schema_registry }
100
100
schema_registry_client = SchemaRegistryClient (sr_conf )
101
+ rule_conf = None
102
+ # KMS credentials can be passed as follows
103
+ # rule_conf = {'secret.access.key': 'xxx', 'access.key.id': 'yyy'}
104
+ # Alternatively, the KMS credentials can be set via environment variables
101
105
102
106
avro_deserializer = AvroDeserializer (schema_registry_client ,
103
107
schema_str ,
104
- dict_to_user )
108
+ dict_to_user ,
109
+ rule_conf = rule_conf )
105
110
106
111
consumer_conf = {'bootstrap.servers' : args .bootstrap_servers ,
107
112
'group.id' : args .group ,
Original file line number Diff line number Diff line change @@ -95,10 +95,15 @@ def main(args):
95
95
96
96
sr_conf = {'url' : args .schema_registry }
97
97
schema_registry_client = SchemaRegistryClient (sr_conf )
98
+ rule_conf = None
99
+ # KMS credentials can be passed as follows
100
+ # rule_conf = {'secret.access.key': 'xxx', 'access.key.id': 'yyy'}
101
+ # Alternatively, the KMS credentials can be set via environment variables
98
102
99
103
json_deserializer = JSONDeserializer (schema_str ,
100
104
dict_to_user ,
101
- schema_registry_client )
105
+ schema_registry_client ,
106
+ rule_conf = rule_conf )
102
107
103
108
consumer_conf = {'bootstrap.servers' : args .bootstrap_servers ,
104
109
'group.id' : args .group ,
Original file line number Diff line number Diff line change @@ -69,10 +69,15 @@ def main(args):
69
69
70
70
sr_conf = {'url' : args .schema_registry }
71
71
schema_registry_client = SchemaRegistryClient (sr_conf )
72
+ rule_conf = None
73
+ # KMS credentials can be passed as follows
74
+ # rule_conf = {'secret.access.key': 'xxx', 'access.key.id': 'yyy'}
75
+ # Alternatively, the KMS credentials can be set via environment variables
72
76
73
77
protobuf_deserializer = ProtobufDeserializer (user_pb2 .User ,
74
78
{'use.deprecated.format' : False },
75
- schema_registry_client )
79
+ schema_registry_client ,
80
+ rule_conf = rule_conf )
76
81
77
82
consumer_conf = {'bootstrap.servers' : args .bootstrap_servers ,
78
83
'group.id' : args .group ,
You can’t perform that action at this time.
0 commit comments