Creating a Cluster Configuration
Before creating the cluster, you need to create a new cluster configuration file or use an existing one in Streaming with Apache Kafka..
A default configuration is provided when you create a Kafka cluster. You can use that or create a custom one.
If you choose to use a custom configuration, we recommend you create the cluster configuration file before creating the Kafka cluster. After a Kafka cluster is created, you can still update the cluster configuration file, but with certain limitations.
This task can't be performed using the Console. But, you can provide the cluster configuration when creating a cluster using the Console.
Use the
cluster-config createcommand and required parameters to create the configuration file for a Kafka cluster:oci kafka cluster-config create -c <compartment-ocid> --latest-config '{"properties":{"<key1>":"<value1>","<key2>":"<value2>"}}'As a best practice, you can create a configuration file
config_name.propertieswith all the required property key-value pairs and then provide this file to thecluster-config createcommand:oci kafka cluster-config create -c <compartment-ocid> --latest-config <file-name>For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the
CreateKafkaClusterConfigoperation to create a cluster configuration file.