다음을 통해 공유


SynapseSparkCompute 클래스

참고

이는 실험적인 클래스이며 언제든지 변경될 수 있습니다. 자세한 내용은 https://aka.ms/azuremlexperimental을 참조하세요.

SynapseSpark Compute 리소스.

상속
azure.ai.ml.entities._compute.compute.Compute
SynapseSparkCompute

생성자

SynapseSparkCompute(*, name: str, description: str | None = None, tags: Dict[str, str] | None = None, node_count: int | None = None, node_family: str | None = None, node_size: str | None = None, spark_version: str | None = None, identity: IdentityConfiguration | None = None, scale_settings: AutoScaleSettings | None = None, auto_pause_settings: AutoPauseSettings | None = None, **kwargs: Any)

키워드 전용 매개 변수

Name Description
name
str

컴퓨팅의 이름입니다.

description

리소스에 대한 설명입니다. 기본값은 None입니다.

tags

키/값 쌍으로 정의된 리소스 태그 집합입니다. 기본값은 None입니다.

node_count

컴퓨팅의 노드 수입니다.

node_family

컴퓨팅의 노드 패밀리입니다.

node_size

노드의 크기입니다.

spark_version

사용할 Spark 버전입니다.

identity

컴퓨팅 클러스터와 연결된 ID의 구성입니다.

scale_settings

컴퓨팅에 대한 크기 조정 설정입니다.

auto_pause_settings

컴퓨팅에 대한 자동 일시 중지 설정입니다.

kwargs

부모 클래스에 전달된 추가 키워드(keyword) 인수입니다.

예제

Synapse Spark 컴퓨팅 만들기.


   from azure.ai.ml.entities import (
       AutoPauseSettings,
       AutoScaleSettings,
       IdentityConfiguration,
       ManagedIdentityConfiguration,
       SynapseSparkCompute,
   )

   synapse_compute = SynapseSparkCompute(
       name="synapse_name",
       resource_id="/subscriptions/subscription/resourceGroups/group/providers/Microsoft.Synapse/workspaces/workspace/bigDataPools/pool",
       identity=IdentityConfiguration(
           type="UserAssigned",
           user_assigned_identities=[
               ManagedIdentityConfiguration(
                   resource_id="/subscriptions/subscription/resourceGroups/group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity"
               )
           ],
       ),
       scale_settings=AutoScaleSettings(min_node_count=1, max_node_count=3, enabled=True),
       auto_pause_settings=AutoPauseSettings(delay_in_minutes=10, enabled=True),
   )


메서드

dump

컴퓨팅 콘텐츠를 yaml 형식의 파일로 덤프합니다.

dump

컴퓨팅 콘텐츠를 yaml 형식의 파일로 덤프합니다.

dump(dest: str | PathLike | IO, **kwargs: Any) -> None

매개 변수

Name Description
dest
필수
Union[<xref:PathLike>, str, IO[AnyStr]]

이 컴퓨팅의 콘텐츠를 받을 대상입니다. 로컬 파일의 경로이거나 이미 열려 있는 파일 스트림이어야 합니다. dest가 파일 경로인 경우 새 파일이 만들어지고 파일이 있는 경우 예외가 발생합니다. dest가 열려 있는 파일인 경우 파일이 직접 기록되고 파일을 쓸 수 없는 경우 예외가 발생합니다.'

특성

base_path

리소스의 기본 경로입니다.

반환

형식 Description
str

리소스의 기본 경로입니다.

created_on

컴퓨팅 리소스 만들기 타임스탬프입니다.

반환

형식 Description

컴퓨팅 리소스 만들기 타임스탬프입니다.

creation_context

리소스의 만들기 컨텍스트입니다.

반환

형식 Description

리소스에 대한 만들기 메타데이터입니다.

id

리소스 ID입니다.

반환

형식 Description

리소스의 전역 ID인 ARM(Azure Resource Manager) ID입니다.

provisioning_errors

컴퓨팅 리소스 프로비저닝 오류입니다.

반환

형식 Description

컴퓨팅 리소스 프로비저닝 오류입니다.

provisioning_state

컴퓨팅 리소스의 프로비전 상태입니다.

반환

형식 Description

컴퓨팅 리소스의 프로비전 상태입니다.

type

컴퓨팅 유형입니다.

반환

형식 Description

컴퓨팅 유형입니다.