QuickStart

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 Pulsar 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

  1. In the upper-right corner of the StreamNative Cloud Console, click your Profile and select Organizations.
  2. On the Organization page, click Create organization.
  3. 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

  1. On the left navigation pane, click Dashboard.

  2. On the Instances card, click New.

  3. Click Deploy Hosted to start the instance creation process.

  4. 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.

  5. On the Cluster Location page, enter a name for your cluster, select the cluster location, and then click Cluster Size.

  6. 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.

  7. If needed, on the Payment page, in the Create Payment Method box, enter a valid credit card number, and then click Create Payment Method.

  8. 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

  1. On the left navigation pane, click Service Accounts.

  2. Click Create Service Account.

  3. 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

  1. On the left navigation pane, in the Admin section, click Tenants/Namespaces.

  2. Select the Public tenant, then select the Default namespace under the tenant.

  3. Select the POLICY tab.

  4. In the Authorization area, click ADD ROLE and select the service account you just created in the previous section.

  5. 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.

Previous
Overview