文档

DATASOURCE::EMR::Cluster2

更新时间:

DATASOURCE::EMR::Cluster2类型用于查询EMR集群。

语法

{
  "Type": "DATASOURCE::EMR::Cluster2",
  "Properties": {
    "PaymentTypes": List,
    "ResourceGroupId": String,
    "ClusterName": String,
    "ClusterType": List,
    "ClusterIds": List,
    "Tags": List,
    "ClusterStates": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

PaymentTypes

List

付费类型。

取值:

  • PayAsYouGo:后付费。

  • Subscription:预付费。

ResourceGroupId

String

资源组ID。

ClusterName

String

集群名 /称。

长度为1~128个字符,必须以大小写字母或中文开头,不能以http://https://开头。可以包含中文、英文、数字、半角冒号(:)、下划线(_)、半角句号(.)或者短划线(-)。

ClusterType

List

集群类型。

取值:

  • DATALAKE:新版数据湖。

  • OLAP:数据分析。

  • DATAFLOW:实时数据流。

  • DATASERVING:数据服务。

ClusterIds

List

集群ID列表。

Tags

List

标签。

最多添加5个自定义标签。

更多信息,请参见Tags属性

ClusterStates

List

集群类型。

取值:

  • DATALAKE:新版数据湖。

  • OLAP:数据分析。

  • DATAFLOW:实时数据流。

  • DATASERVING:数据服务。

  • CUSTOM:自定义混部集群。

  • HADOOP:旧版数据湖。

Tags语法

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Tags属性

属性名称

类型

必须

允许更新

描述

约束

Value

String

标签值。

非必填,可以为空字符串。最多支持128个字符,不能以acs:开头,不能包含http://或者https://

Key

String

标签键。

必填参数,不允许为空字符串。最多支持128个字符,不能以aliyunacs:开头,不能包含http://https://

返回值

Fn::GetAtt

  • Clusters:集群列表。

  • ClusterIds:集群ID列表。

属性名称

类型

描述

约束

ClusterIds

List

集群ID列表。

Clusters

List

集群列表。

DeployMode

String

集群中的应用部署模式。

FlowProjectName

String

项目名称。

VpcId

String

VPC ID。

ClusterState

String

集群状态。

EmrDefaultRole

String

EMR服务角色。

ReadyTime

String

可用时间。

CreateTime

String

创建时间。

UserId

String

用户ID。

Status

String

集群状态。

StateChangeReason

String

失败原因。

Description

String

集群描述。

ClusterName

String

集群名称。

LogCollectStrategy

String

日志收集策略。

FlowProjectId

String

项目ID。

GmtModified

String

修改时间。

SecurityMode

String

集群Kerberos安全模式。

PaymentType

String

付费类型。

ReleaseVersion

String

EMR发行版。

NodeAttributes

String

节点属性。

ClusterType

String

集群类型。

SubscriptionConfig

String

预付费配置。

ResourceGroupId

String

资源组ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ClusterName:
        Type: String
        Description:
          en: The name of cluster.
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::EMR::Cluster2
        Properties:
          ClusterName:
            Ref: ClusterName
    Outputs:
      Clusters:
        Description: The detail of the cluster.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Clusters
      ClusterIds:
        Description: The list of the cluster id.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - ClusterIds
    
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ClusterName": {
          "Type": "String",
          "Description": {
            "en": "The name of cluster."
          }
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::EMR::Cluster2",
          "Properties": {
            "ClusterName": {
              "Ref": "ClusterName"
            }
          }
        }
      },
      "Outputs": {
        "Clusters": {
          "Description": "The detail of the cluster.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Clusters"
            ]
          }
        },
        "ClusterIds": {
          "Description": "The list of the cluster id.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ClusterIds"
            ]
          }
        }
      }
    }
  • 本页导读 (1)
文档反馈