Improve Your Producers Efficiency With This Powerful Calculator
Go
LogoLogo
WebsiteStart FreeSuperstream Console
  • Superstream
  • Getting started
    • Option 1: BYOC
      • Step 1: Agent Deployment
      • Step 2: Create a Kafka user
      • Step 3: Connect your Kafka cluster/s
      • Step 4: Activate
      • Additional resources
        • Engine deployment
          • Supertstream Engine Deployment using existing secrets
          • How to deploy and manage Superstream using ArgoCD
          • Superstream Engine deployment for environments with a local container registry
          • Supertstream Engine Deployment using custom resource limits
          • Superstream Platform deployment for Air-Gapped environments
        • Engine upgrade
          • Upgrading From Helmfile based Deployment to Superstream Helm Chart
    • Option 2: Fully managed
      • Step 1: Create a Kafka user
      • Step 2: Connect your Kafka cluster/s
      • Step 3: Activate
  • Optimizations
    • Improve Network Efficiency
    • Resize AWS MSK Size
  • Settings
    • Notifications
  • Security & Legal
    • Processed data
    • Compliance
    • Firewall rules
    • Authentication
    • Legal
      • Terms and Conditions
      • Privacy Policy
  • Solution briefs
    • Superstream for Confluent Platform
    • Superstream for Confluent Cloud
    • Superstream for Redpanda
    • Superstream for Apache Kafka
    • Superstream for AWS MSK
    • Superstream for AWS MSK Serverless
    • Superstream for Aiven
  • Release notes
    • Changelog
      • Feb 2, 2025
      • Jan 11, 2025
      • Dec 5, 2024
      • Nov 1, 2024
      • Oct 14, 2024
      • Sep 24, 2024
      • Sep 10, 2024
      • August 26, 2024
Powered by GitBook
LogoLogo

Product

  • Superstream Console

Copyright to Superstream Labs Inc. 2025

On this page
  • Key features
  • Getting started
  • Step 0: Confirm that the superstream.metadata topic has been created
  • Step 1: Set environment variable
  • Step 2: Library replacement
  • Appendixes
  • Appendix A - Securing Client Connections
  • Appendix B - Setting Up a Maven Repository and Managing Artifacts with JFrog Artifactory
  • Knowledge Base

Was this helpful?

Edit on GitHub
Export as PDF
  1. Getting started

Step 4: Connect Your Clients

This page describes how to connect your Kafka clients to Superstream

Last updated 7 months ago

Was this helpful?

Superstream client is a supplement for your existing Kafka library.

Key features

  • Identical to your existing Kafka SDKs

  • Easy to replace

  • You control your Kafka Clients: batch, linger, compression, data format

  • Enforce governance

  • Runtime client configuration updates

  • Transparent client migration between topics and clusters

  • Zero additional computing resources are needed

Getting started

Step 0: Confirm that the superstream.metadata topic has been created

As described in the page, a topic named superstream.metadata has to be created with the following permissions: Read, Create, and Write.

Step 1: Set environment variable

Please set the following environment variables for each connected client

#Required. Superstream local engine URL to connect the client to.
SUPERSTREAM_HOST="superstream-nats.orgname.com"

#Optional. Enable compression as soon as the client starts
SUPERSTREAM_REDUCTION_ENABLED=false

#Optional. Adding tags will help you to identify this client, attach configuration, send emails, and more.
#There are no specific keys to use; add as you want and as many as needed.
SUPERSTREAM_TAGS={"owner":'Johnd@google.com', "config":'prod'}

#Optional. Debug mode for additional client logs
SUPERSTREAM_DEBUG=false

Step 2: Library replacement

Within each lib repo made by Superstream, under the "Releases" section, you will find the equivalent version to the existing "stable" library according to the major release.

For example, if you are currently using Apache Kafka 3.1.0, then you would use the latest release of 3.x.x by Superstream.

Language
Source SDK
Superstream equivalent

Python

Appendixes

Appendix A - Securing Client Connections

For clients with enabled authentication, set the following environment variable for each client in addition:

SUPERSTREAM_TOKEN=
## This token is required to access Superstream engine securely.

Appendix B - Setting Up a Maven Repository and Managing Artifacts with JFrog Artifactory

Prerequisites

  1. Access to a JFrog Artifactory instance.

  2. GitHub account and access to a repository with releases.

Create a New Maven Repository

  1. Log in to your JFrog Artifactory.

  2. Navigate to Admin > Repositories > Repositories.

  3. Click on 'Add Repositories' and select 'Local Repository'.

  4. Choose 'Maven' as the package type.

  5. Enter the repository key and other configuration details.

  6. Save the repository settings.

Download the artifact from GitHub:

Find your equivalent release

  1. Navigate to the 'Releases' section of the desired GitHub repository.

  2. Select the release that contains the needed kafka-clients-yourversion.tar.gz file.

Download the artifact

  1. Right-click on the kafka-clients-yourversion.tar.gz link and copy the URL.

  2. Use curl or wget to download the file from the terminal.

Deploy via the JFrog UI

  1. Navigate to the Artifactory repository where you want to deploy the artifact.

  2. Click on 'Deploy' and select the kafka-clients-yourversion.tar.gz file from your local system.

  3. Specify the target path within the repository if required.

  4. Click 'Deploy' to upload the artifact.

Knowledge Base

Q: I am using Kafka Connect. How can I ensure Superstream identifies it when declaring a topic inactive?

To enable secured client connections to the Superstream Engine, ensure that skipLocalAuthentication is turned off. Detailed instructions can be found .

​

A: To enable Superstream to detect a source or sink that is activated for a specific period and then removed, the connector must be configured with a group.id. This configuration will "leave a trace" in the form of a zombie consumer group. You can find an example of this from Confluent .

here
https://github.com/superstreamlabs/apache-kafka-java-sdk/releases
here
Java
Native Apache Kafka Java
Native Apache Kafka Java
Cloudera 2.8.x
Native Apache Kafka Java
spring-kafka
Native Apache Kafka Java
confluent-python
superstream-confluent-kafka
prerequisites