Managed Service for Apache Spark optional Zookeeper component

You can install additional components like Zookeeper when you create a Managed Service for Apache Spark cluster using the Optional components feature. This page describes the Zookeeper component.

The Apache Zookeeper component is centralized service for providing distributed synchronization of data.

Install the component

Install the component when you create a Managed Service for Apache Spark cluster.

See Supported Dataproc versions for the component version included in each Managed Service for Apache Spark image release.

gcloud command

To create a Managed Service for Apache Spark cluster that includes the Zookeeper component, use the gcloud dataproc clusters create cluster-name command with the --optional-components flag (using image version 1.0 or later).

gcloud dataproc clusters create cluster-name \
    --optional-components=ZOOKEEPER \
    --region=region \
    ... other flags

REST API

The Zookeeper component can be specified through the Managed Service for Apache Spark API using SoftwareConfig.Component as part of a clusters.create request.

Console

  1. Enable the component.
    • In the Google Cloud console, open the Managed Service for Apache Spark Create a cluster page. The Set up cluster panel is selected.
    • In the Components section, under Optional components, select Zookeeper and other optional components to install on your cluster.