Managed Service for Apache Spark のオプションの ZooKeeper コンポーネント

Managed Service for Apache Spark クラスタを作成する際には、オプション コンポーネント機能を使用して、ZooKeeper などの追加コンポーネントをインストールできます。このページでは、ZooKeeper コンポーネントについて説明します。

Apache ZooKeeper コンポーネントは、データの分散同期を行う集中管理サービスです。

コンポーネントをインストールする

Managed Service for Apache Spark クラスタの作成時にコンポーネントをインストールします。

Managed Service for Apache Spark イメージの各リリースに含まれるコンポーネント バージョンについては、サポートされているイメージ バージョンをご覧ください。

Google Cloud コンソール

  1. Google Cloud コンソールで、[クラスタの作成] ページを開きます。
  2. [その他の構成] をクリックして、セクションを開きます。
  3. [オプション コンポーネント] を編集します。
  4. 開いたパネルで、[ZooKeeper] のチェックボックスをオンにして、[保存] をクリックします。

gcloud CLI

ZooKeeper コンポーネントを組み込んだ Managed Service for Apache Spark クラスタを作成するには、--optional-components フラグを指定した gcloud dataproc clusters create cluster-name コマンドを使用します(イメージ バージョン 1.0 以降を使用)。

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

REST API

Dataproc API を使用して ZooKeeper コンポーネントを指定するには、clusters.create リクエストの一部として SoftwareConfig.Component を使用します。