Apache Spark용 관리형 서비스 선택적 ZooKeeper 구성요소

선택적 구성요소 기능을 사용하여 Managed Service for Apache Spark 클러스터를 만들 때 Zookeeper와 같은 추가 구성요소를 설치할 수 있습니다. 이 페이지에서는 Zookeeper 구성요소를 설명합니다.

Apache Zookeeper 구성요소는 데이터의 분산형 동기화를 제공하기 위한 중앙 집중식 서비스입니다.

구성요소 설치

Managed Service for Apache Spark 클러스터를 만들 때 구성요소를 설치합니다.

각 Managed Service for Apache Spark 이미지 출시에 포함된 구성요소 버전은 지원되는 Dataproc 버전을 참고하세요.

gcloud 명령어

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 구성요소는 clusters.create 요청의 일부로 SoftwareConfig.Component를 사용하여 Managed Service for Apache Spark API를 통해 지정할 수 있습니다.

콘솔

  1. 구성요소를 사용 설정합니다.
    • Google Cloud 콘솔에서 Managed Service for Apache Spark 클러스터 만들기 페이지를 엽니다. '클러스터 설정' 패널이 선택되어 있습니다.
    • 구성요소 섹션의 선택적 구성요소 아래에서 클러스터에 설치할 Zookeeper 및 기타 선택적 구성요소를 선택합니다.