You are viewing documentation for an older version of Confluent Platform. For the latest, click here.

Connecting Kafka REST Proxy to Confluent Cloud

You can configure a local Connect cluster backed by a source Kafka cluster in Confluent Cloud.

This topic describes how to setup a local Kafka Rest cluster backed by a Kafka cluster in Confluent Cloud. A Kafka Rest cluster is configured to produce and consume to a topic, and describe topics in a Kafka cluster in Confluent Cloud.

To connect Kafka Rest to Confluent Cloud, you must download the Confluent Platform tarball and then start Kafka REST by using a customized properties file.

  • Access to Confluent Cloud
  • Confluent Cloud CLI installed
  1. Download Confluent Platform and extract the contents.

  2. Create a topic named rest-proxy-test by using the Confluent Cloud CLI:

    $ ccloud topic create --partitions 4 rest-proxy-test
  3. Create a properties file.

    1. Find the client settings for your cluster by clicking Client config from the Confluent Cloud web interface and copy the configuration.


      They should look like the following:

      bootstrap.servers=<BOOTSTRAP_SERVERS> required username="<API_KEY>" password="<API_SECRET>";
    2. Create a properties file named

      $ cd <path-to-confluent>
      $ cat
    3. Paste the client config contents and add the client. prefix to each of security properties. For example:

      client.sasl.mechanism=PLAIN required \
      username="<API_KEY>" password="<API_SECRET>";
      # consumer only properties must be prefixed with consumer.
      # producer only properties must be prefixed with producer.
      # admin client only properties must be prefixed with admin.
      # uncomment and set correct value if using with schema registry

      Producers, consumers, and admin client will share the client. properties. To specify properties only for the producer or consumer, use the following table:

  4. Start Kafka Rest.

    $ ./bin/kafka-rest-start