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 クラスタを作成するには、 gcloud dataproc clusters create cluster-name コマンドを --optional-components フラグとともに使用します(イメージ バージョン 1.0 以降を使用)。

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

REST API

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