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

Apache ZooKeeper コンポーネントは、データの分散同期を行う集中管理サービスです。Managed Service for Apache Spark クラスタを作成する際に、オプション コンポーネント機能を使用して 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 を使用します。