6.4 Creating Worker VMs and Configuring ZK plus Kafka on each VM

  1. Create requested number of Worker VMs in the private regional subnet, your-private-regional-subnet using the GGSA image. All Worker VMs should be of same compute shape. Minimum shape is VM Standard 2.2.

    Note:

    IP addresses of all these Worker VMs are required for the next step. Save them as a space separated list, for example, Worker VM IP List.
  2. SSH and execute the script init-kafka-zk.sh on each Worker VM. The usage for the script is as follows and all arguments to the script must be separated by space.

    Note:

    The Server ID must be incremental starting with 1 and up to the number of workers. For example, if we have three Worker VMs, the ServerID will start with 1 and end at 3.

    $OSA_HOME/osa-base/bin/init-kafka-zk.sh <ServerId> <MountTargetIP> <IP Address List of Workers>

    Examples:
    • When running on Worker VM1:

      $OSA_HOME/osa-base/bin/init-kafka-zk.sh 1 10.0.1.73 10.0.0.45 10.0.0.46 10.0.0.47

    • When running on Worker VM2:

      $OSA_HOME/osa-base/bin/init-kafka-zk.sh 2 10.0.1.73 10.0.0.45 10.0.0.46 10.0.0.47

A successful run has Kafka and Zookeeper servers running on all Worker VMs.

You can use an OCI Streaming Service (OSS) connection instead of Kafka or Zookeeper. See Creating a Connection to OSS.