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