Kafka Hello World (Java)
To publish and consume our first Kafka messages, we will use KProducer and KConsumer found in KafkaHelloWorld.
This example uses API Keys. You have been supplied an API Key with tenant admin rights in a tenant with your student id (e.g. summitstudent1).. This tenant also contains a namespace developer.
Configuration of KProducer is completed in resources/client.properties.kafkahelloworld. You will need to make the following changes to client.properties.kafkahelloworld:
- Edit topic1 to use your student number (e.g. studentsummit1.developer.kafkahelloworld)
- Edit sasl.jaas.config to use your API Key (e.g. the password should be ‘token:<API KEY>’
Execute KProducer and KConsumer. You should see the following:

We will complete an example using OAuth2 when using schema in the next section.
