Lab 4 - Managed Connectors
Lab 4 - Managed Connectors
Labs
Setup
Ensure you have your cluster ready. If you followed the steps of the instructions of
Lab 3: ACLs and RBAC, your cluster is probably upgraded to a Standard cluster by
now.
Install the confluent CLI if you have not done so already. See references for a link to
the documentation on how.
Find and click on Connectors in the left-hand panel of your cluster overview.
You should be presented with a list of Connector plugins. Find the “Sample
Data” plugin, also known as the “Datagen Source” and click on the link.
You are presented with a “Launch Sample Data” screen. Click on “Additional
configuration” to fine-tune the settings.
You first need to choose or create a topic on which to write to. Choose “Add
new topic” and create a topic called “orders”, then continue.
Pick “My Account” for now, then “Generate API Key & download”. Give the key a
meaningful description.
Pick JSON as the record format, and Orders as the template, then continue.
Keep Connector Sizing at 1, then continue.
Create another Datagen Connector, this time with a new topic called “users”
and a Service Account API Key option.
Choose a new Service Account named “user-generator”
Add all the required ACLs
Pick AVRO for the format, and Users as the template
Launch the connector
Check out the messages in the Topics console
Use kafka-avro-console-consumer or kcat (kafkacat) to consume the
messages on your local computer. You will have to connect to the schema
registry as well as to the cluster to be able to see the messages formatted
correctly. Use the API Key from Lab 2: Clients as before.
Hint: if you want to check the role bindings of a Service User concerning resources
like a Connector or a Topic, you need to add the –inclusive flag:
Expected Outcomes
Successfully deploy and configure a Managed Connector via the UI and the CLI.
Provide a connector with the correct permissions following the Least Privilege
principle.