Dataproc optional Zookeeper component

You can install additional components like Zookeeper when you create a Dataproccluster using theOptional componentsfeature. This page describes the Zookeeper component.

TheApache Zookeeper component is centralized service for providing distributed synchronizationof data.

Install the component

Install the component when you create a Dataproc cluster.

SeeSupported Dataproc versionsfor the component version included in each Dataproc image release.

gcloud command

To create a Dataproc cluster that includes the Zookeeper component,use thegcloud dataproc clusters createcluster-namecommand with the--optional-components flag (using image version1.0 or later).

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

REST API

The Zookeeper component can be specified through the Dataproc API usingSoftwareConfig.Componentas part of aclusters.createrequest.

Console

  1. Enable the component.
    • In the Google Cloud console, open the DataprocCreate 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.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.