Managed Service for Apache Spark クラスタを作成する際には、オプション コンポーネント機能を使用して、ZooKeeper などの追加コンポーネントをインストールできます。このページでは、ZooKeeper コンポーネントについて説明します。
Apache ZooKeeper コンポーネントは、データの分散同期を行う集中管理サービスです。
コンポーネントをインストールする
Managed Service for Apache Spark クラスタの作成時にコンポーネントをインストールします。
Managed Service for Apache Spark イメージの各リリースに含まれるコンポーネント バージョンについては、サポートされているイメージ バージョンをご覧ください。
Google Cloud コンソール
- Google Cloud コンソールで、[クラスタの作成] ページを開きます。
- [その他の構成] をクリックして、セクションを開きます。
- [オプション コンポーネント] を編集します。
- 開いたパネルで、[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