produce
and consume
permissions to a namespace for the target topic.kcat
will be equal to token:<API KEY>
.~/kafka
folder.
kafka-token.properties
, substituting API-KEY
with an API key of your service account.
Remind that the password is: token:API-KEY
kop-test-topic
topic.
bootstrap-server
: the Kafka service URL of your StreamNative cluster.test-topic
topic.
Hello, Kafka on Pulsar!
and then press the Enter key to produce the message to the kop-test-topic
topic. Then, you should see this message on the consumer terminal.
~/kafka
folder.
kafka.properties
, substituting the path to your downloaded OAuth2 credential file and the audience respectively.
oauth.issuer.url
: the OAuth2 authentication provider. You can get the value from your downloaded OAuth2 credential file.oauth.credentials.url
: the path to your downloaded OAuth2 credential file.oauth.audience
: the audience
parameter is a combination of the urn:sn:pulsar
, your organization name, and your Pulsar instance name.test-topic
topic.
bootstrap-server
: the Kafka service URL of your StreamNative cluster.test-topic
topic.
Hello, Kafka on Pulsar!
and then press the Enter key to produce the message to the test-topic
topic. Then, you should see this message on the consumer terminal.