- Get Started
QuickStart - Kafka Client
Note
- This quick start assumes that you already have a StreamNative Cloud account with a valid form of payment.
- If you cannot enable the Kafka protocol on an existing cluster, submit a ticket with this request to the support team.
This QuickStart guides you through how to do the following:
- Set up a StreamNative cluster in a new organization and a new instance and enable the Kafka protocol on the Pulsar cluster.
- Configure a Kafka client to produce and consume messages.
For a general quick start on creating a cluster and using a Pulsar Java client to produce and consume messages to the Pulsar cluster, see QuickStart - StreamNative Cloud.
Step 1: Log in to StreamNative Cloud Console
To log in to the Streamnative Cloud Console, navigate to the StreamNative Cloud Console login page, enter the email address and password, and then click Log in to log in to the StreamNative Cloud Console.
Step 2: Create an organization
- In the upper-right corner of the StreamNative Cloud Console, click your Profile and select Organizations.
- On the Organization page, click Create organization.
- Enter a name for the organization and then click Create.
You might have to wait briefly for the organization to be created. After your new organization is created, proceed to creating an instance.
Step 3: Create an instance and a cluster
On the left navigation pane, click Dashboard.
On the Instances card, click New.
Click Deploy Dedicated to start the instance creation process.
On the Instance Configuration page, enter a name for your instance, select an infrastructure pool and the Availability Zone (AZ), and then click Cluster Location.
On the Cluster Location page, enter a name for your cluster, select the cluster location, and then click Cluster Size.
On the Cluster Size page, configure the cluster, and then click Payment.
On the Basic tab, select custom sizing options.
On the Advanced tab, in the Features area, enable the Kafka Protocol option.
If needed, on the Payment page, in the Create Payment Method box, enter a valid credit card number, and then click Create Payment Method.
Click Finish.
The cluster page displays, showing the cluster creation process. The cluster is ready for use after all components have been successfully deployed.
Step 4: Create a service account
On the left navigation pane, click Service Accounts.
Click Create Service Account.
Enter a name for the service account, and then click Confirm.
After creating a service account, you need to grant the service account produce and consume permissions to a namespace on your Pulsar cluster.
Step 5: Grant service account permissions
On the left navigation pane, in the Admin section, click Tenants/Namespaces.
Select the Public tenant, then select the Default namespace under the tenant.
Select the POLICY tab.
In the Authorization area, click ADD ROLE and select the service account you just created in the previous section.
In the Authorization area, on the drop-down menu below the service name you just added, select the consume and produce roles. The roles are added to your service account.
Now, you can use the service account to connect to your cluster with the Kafka CLI tool or Kafka client.
Step 6: Connect to the cluster
For more information about how to connect to a Pulsar cluster using Kafka clients, see use Kafka clients to connect to your Pulsar cluster.