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 클러스터를 만들려면 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 요청의 일부로 지정할 수 있습니다.