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

ZooKeeper 구성요소는 SoftwareConfig.Component 를 사용하여 Dataproc API를 통해 clusters.create 요청의 일부로 지정할 수 있습니다.