Share via


New-AzureRmHDInsightCluster

현재 구독에 대해 지정된 리소스 그룹에 Azure HDInsight 클러스터를 만듭니다.

Warning

AzureRM PowerShell 모듈은 2024년 2월 29일부터 공식적으로 사용되지 않습니다. 사용자는 지속적인 지원 및 업데이트를 보장하기 위해 AzureRM에서 Az PowerShell 모듈로 마이그레이션하는 것이 좋습니다.

AzureRM 모듈은 여전히 작동할 수 있지만 더 이상 기본 또는 지원되지 않으므로 사용자의 재량에 따라 계속 사용할 수 있습니다. Az 모듈로 전환하는 방법에 대한 지침은 마이그레이션 리소스를 참조하세요.

Syntax

New-AzureRmHDInsightCluster
   [-Location] <String>
   [-ResourceGroupName] <String>
   [-ClusterName] <String>
   [-ClusterSizeInNodes] <Int32>
   [-HttpCredential] <PSCredential>
   [[-DefaultStorageAccountName] <String>]
   [[-DefaultStorageAccountKey] <String>]
   [-DefaultStorageAccountType <StorageType>]
   [-Config <AzureHDInsightConfig>]
   [-OozieMetastore <AzureHDInsightMetastore>]
   [-HiveMetastore <AzureHDInsightMetastore>]
   [-AdditionalStorageAccounts <System.Collections.Generic.Dictionary`2[System.String,System.String]>]
   [-Configurations <System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[System.String,System.String]]>]
   [-ScriptActions <System.Collections.Generic.Dictionary`2[Microsoft.Azure.Management.HDInsight.Models.ClusterNodeType,System.Collections.Generic.List`1[Microsoft.Azure.Commands.HDInsight.Models.Management.AzureHDInsightScriptAction]]>]
   [-DefaultStorageContainer <String>]
   [-DefaultStorageRootPath <String>]
   [-Version <String>]
   [-HeadNodeSize <String>]
   [-WorkerNodeSize <String>]
   [-EdgeNodeSize <String>]
   [-ZookeeperNodeSize <String>]
   [-ClusterType <String>]
   [-ComponentVersion <System.Collections.Generic.Dictionary`2[System.String,System.String]>]
   [-VirtualNetworkId <String>]
   [-SubnetName <String>]
   [-OSType <OSType>]
   [-ClusterTier <Tier>]
   [-SshCredential <PSCredential>]
   [-SshPublicKey <String>]
   [-RdpCredential <PSCredential>]
   [-RdpAccessExpiry <DateTime>]
   [-ObjectId <Guid>]
   [-CertificatePassword <String>]
   [-AadTenantId <Guid>]
   [-SecurityProfile <AzureHDInsightSecurityProfile>]
   [-DisksPerWorkerNode <Int32>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzureRmHDInsightCluster
   [-Location] <String>
   [-ResourceGroupName] <String>
   [-ClusterName] <String>
   [-ClusterSizeInNodes] <Int32>
   [-HttpCredential] <PSCredential>
   [[-DefaultStorageAccountName] <String>]
   [[-DefaultStorageAccountKey] <String>]
   [-DefaultStorageAccountType <StorageType>]
   [-Config <AzureHDInsightConfig>]
   [-OozieMetastore <AzureHDInsightMetastore>]
   [-HiveMetastore <AzureHDInsightMetastore>]
   [-AdditionalStorageAccounts <System.Collections.Generic.Dictionary`2[System.String,System.String]>]
   [-Configurations <System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[System.String,System.String]]>]
   [-ScriptActions <System.Collections.Generic.Dictionary`2[Microsoft.Azure.Management.HDInsight.Models.ClusterNodeType,System.Collections.Generic.List`1[Microsoft.Azure.Commands.HDInsight.Models.Management.AzureHDInsightScriptAction]]>]
   [-DefaultStorageContainer <String>]
   [-DefaultStorageRootPath <String>]
   [-Version <String>]
   [-HeadNodeSize <String>]
   [-WorkerNodeSize <String>]
   [-EdgeNodeSize <String>]
   [-ZookeeperNodeSize <String>]
   [-ClusterType <String>]
   [-ComponentVersion <System.Collections.Generic.Dictionary`2[System.String,System.String]>]
   [-VirtualNetworkId <String>]
   [-SubnetName <String>]
   [-OSType <OSType>]
   [-ClusterTier <Tier>]
   [-SshCredential <PSCredential>]
   [-SshPublicKey <String>]
   [-RdpCredential <PSCredential>]
   [-RdpAccessExpiry <DateTime>]
   [-ObjectId <Guid>]
   [-CertificateFilePath <String>]
   [-CertificatePassword <String>]
   [-AadTenantId <Guid>]
   [-SecurityProfile <AzureHDInsightSecurityProfile>]
   [-DisksPerWorkerNode <Int32>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzureRmHDInsightCluster
   [-Location] <String>
   [-ResourceGroupName] <String>
   [-ClusterName] <String>
   [-ClusterSizeInNodes] <Int32>
   [-HttpCredential] <PSCredential>
   [[-DefaultStorageAccountName] <String>]
   [[-DefaultStorageAccountKey] <String>]
   [-DefaultStorageAccountType <StorageType>]
   [-Config <AzureHDInsightConfig>]
   [-OozieMetastore <AzureHDInsightMetastore>]
   [-HiveMetastore <AzureHDInsightMetastore>]
   [-AdditionalStorageAccounts <System.Collections.Generic.Dictionary`2[System.String,System.String]>]
   [-Configurations <System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[System.String,System.String]]>]
   [-ScriptActions <System.Collections.Generic.Dictionary`2[Microsoft.Azure.Management.HDInsight.Models.ClusterNodeType,System.Collections.Generic.List`1[Microsoft.Azure.Commands.HDInsight.Models.Management.AzureHDInsightScriptAction]]>]
   [-DefaultStorageContainer <String>]
   [-DefaultStorageRootPath <String>]
   [-Version <String>]
   [-HeadNodeSize <String>]
   [-WorkerNodeSize <String>]
   [-EdgeNodeSize <String>]
   [-ZookeeperNodeSize <String>]
   [-ClusterType <String>]
   [-ComponentVersion <System.Collections.Generic.Dictionary`2[System.String,System.String]>]
   [-VirtualNetworkId <String>]
   [-SubnetName <String>]
   [-OSType <OSType>]
   [-ClusterTier <Tier>]
   [-SshCredential <PSCredential>]
   [-SshPublicKey <String>]
   [-RdpCredential <PSCredential>]
   [-RdpAccessExpiry <DateTime>]
   [-ObjectId <Guid>]
   [-CertificateFileContents <Byte[]>]
   [-CertificatePassword <String>]
   [-AadTenantId <Guid>]
   [-SecurityProfile <AzureHDInsightSecurityProfile>]
   [-DisksPerWorkerNode <Int32>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

New-AzureHDInsightCluster는 지정된 매개 변수를 사용하거나 New-AzureRmHDInsightClusterConfig cmdlet을 사용하여 만든 구성 개체를 사용하여 Azure HDInsight 클러스터를 만듭니다.

예제

예제 1: Azure HDInsight 클러스터 만들기

PS C:\> # Primary storage account info
        $storageAccountResourceGroupName = "Group"
        $storageAccountName = "yourstorageacct001"
        $storageAccountKey = Get-AzureStorageAccountKey `
            -ResourceGroupName $storageAccountResourceGroupName `
            -Name $storageAccountName | %{ $_.Key1 }
        $storageContainer = "container002"

        # Cluster configuration info
        $location = "East US 2"
        $clusterResourceGroupName = "Group"
        $clusterName = "your-hadoop-002"
        $clusterCreds = Get-Credential

        # If the cluster's resource group doesn't exist yet, run:
        #   New-AzureRMResourceGroup -Name $clusterResourceGroupName -Location $location

        # Create the cluster
        New-AzureRmHDInsightCluster `
            -ClusterType Hadoop `
            -OSType Windows `
            -ClusterSizeInNodes 4 `
            -ResourceGroupName $clusterResourceGroupName `
            -ClusterName $clusterName `
            -HttpCredential $clusterCreds `
            -Location $location `
            -DefaultStorageAccountName "$storageAccountName.blob.core.contoso.net" `
            -DefaultStorageAccountKey $storageAccountKey `
            -DefaultStorageContainer $storageContainer

이 명령은 현재 구독에 클러스터를 만듭니다.

매개 변수

-AadTenantId

Azure Data Lake Store에 액세스할 때 사용할 Microsoft Entra 테넌트 ID를 지정합니다.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AdditionalStorageAccounts

클러스터에 대한 추가 Azure Storage 계정을 지정합니다. 또는 Add-AzureRmHDInsightStorage cmdlet을 사용할 수 있습니다.

Type:Dictionary<TKey,TValue>[System.String,System.String]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CertificateFileContents

Azure Data Lake Store에 액세스할 때 사용할 인증서의 파일 콘텐츠를 지정합니다.

Type:Byte[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CertificateFilePath

서비스 주체로 인증하는 데 사용할 인증서의 파일 경로를 지정합니다. 클러스터는 Azure Data Lake Store에 액세스할 때 이를 사용합니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CertificatePassword

서비스 주체로 인증하는 데 사용할 인증서의 암호를 지정합니다. 클러스터는 Azure Data Lake Store에 액세스할 때 이를 사용합니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ClusterName

클러스터의 이름을 지정합니다.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ClusterSizeInNodes

클러스터의 작업자 노드 수를 지정합니다.

Type:Int32
Position:3
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ClusterTier

HDInsight 클러스터 계층을 지정합니다. 기본적으로 표준입니다. 프리미엄 계층은 Linux 클러스터에서만 사용할 수 있으며 몇 가지 새로운 기능을 사용할 수 있습니다.

Type:Tier
Accepted values:Standard, Premium
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ClusterType

만들 클러스터의 유형을 지정합니다. 옵션은 Hadoop, HBase, Storm, Spark입니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ComponentVersion

Type:Dictionary<TKey,TValue>[System.String,System.String]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Config

클러스터를 만드는 데 사용할 클러스터 개체를 지정합니다. 이 개체는 New-AzureRmHDInsightClusterConfig cmdlet을 사용하여 만들 수 있습니다.

Type:AzureHDInsightConfig
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Configurations

이 HDInsight 클러스터의 구성을 지정합니다. 또는 Add-AzureRmHDInsightConfigValues cmdlet을 사용할 수 있습니다.

Type:Dictionary<TKey,TValue>[System.String,System.Collections.Generic.Dictionary`2[System.String,System.String]]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultStorageAccountKey

HDInsight 클러스터에서 사용할 기본 Azure Storage 계정의 계정 키를 지정합니다. 또는 Set-AzureRmHDInsightDefaultStorage cmdlet을 사용할 수 있습니다.

Type:String
Position:6
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultStorageAccountName

HDInsight 클러스터에서 사용할 기본 Azure Storage 계정의 이름을 지정합니다. 또는 Set-AzureRmHDInsightDefaultStorage cmdlet을 사용할 수 있습니다.

Type:String
Position:5
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultStorageAccountType

HDInsight 클러스터에서 사용할 기본 스토리지 계정의 유형을 지정합니다. 가능한 값은 AzureStorage 및 AzureDataLakeStore입니다. 지정하지 않으면 기본적으로 AzureStorage로 설정됩니다.

Type:Nullable<T>[StorageType]
Accepted values:AzureStorage, AzureDataLakeStore
Position:Named
Default value:AzureStorage
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultStorageContainer

HDInsight 클러스터에서 사용할 기본 Azure Storage 계정의 기본 컨테이너 이름을 지정합니다. 또는 Set-AzureRmHDInsightDefaultStorage cmdlet을 사용할 수 있습니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultStorageRootPath

HDInsight 클러스터가 기본 파일 시스템으로 사용할 Data Lake Store 계정의 경로 접두사를 지정합니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisksPerWorkerNode

클러스터의 작업자 노드 역할에 대한 디스크 수를 지정합니다.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EdgeNodeSize

에지 노드에 대한 가상 머신의 크기를 지정합니다. 허용되는 VM 크기에 대해 Get-AzureRmVMSize를 사용하고 HDInsight의 가격 책정 페이지를 참조하세요. 이 매개 변수는 RServer 클러스터에만 유효합니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-HeadNodeSize

헤드 노드에 대한 가상 머신의 크기를 지정합니다. 허용되는 VM 크기에 대해 Get-AzureRmVMSize를 사용하고 HDInsight의 가격 책정 페이지를 참조하세요.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-HiveMetastore

Hive 메타데이터를 저장할 SQL Database를 지정합니다. 또는 Add-AzureRmHDInsightMetastore cmdlet을 사용할 수 있습니다.

Type:AzureHDInsightMetastore
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-HttpCredential

클러스터에 대한 HTTP(클러스터 로그인) 자격 증명을 지정합니다.

Type:PSCredential
Position:4
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Location

클러스터의 위치를 지정합니다.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ObjectId

클러스터를 나타내는 Microsoft Entra 서비스 주체의 Microsoft Entra 개체 ID(GUID)를 지정합니다. 클러스터는 Azure Data Lake Store에 액세스할 때 이를 사용합니다.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-OozieMetastore

Oozie 메타데이터를 저장할 SQL Database를 지정합니다. 또는 Add-AzureRmHDInsightMetastore cmdlet을 사용할 수 있습니다.

Type:AzureHDInsightMetastore
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-OSType

클러스터의 운영 체제를 지정합니다. 옵션: Windows, Linux

Type:OSType
Accepted values:Windows, Linux
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RdpAccessExpiry

클러스터에 대한 RDP(원격 데스크톱 프로토콜) 액세스에 대한 DateTime 개체로 만료를 지정합니다.

Type:DateTime
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RdpCredential

클러스터에 대한 RDP(원격 데스크톱) 자격 증명을 지정합니다. 이는 Windows 클러스터에만 해당됩니다.

Type:PSCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

리소스 그룹의 이름을 지정합니다.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ScriptActions

클러스터 만들기가 끝날 때 클러스터에서 실행할 스크립트 동작을 지정합니다. 또는 Add-AzureRmHDInsightScriptAction을 사용할 수 있습니다.

Type:Dictionary<TKey,TValue>[Microsoft.Azure.Management.HDInsight.Models.ClusterNodeType,System.Collections.Generic.List`1[AzureHDInsightScriptAction]]
Accepted values:HeadNode, WorkerNode, ZookeeperNode, EdgeNode
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SecurityProfile

보안 클러스터를 만드는 데 사용되는 보안 관련 속성을 지정합니다. 또는 Add-AzureRmHDInsightSecurityProfile cmdlet을 사용할 수 있습니다.

Type:AzureHDInsightSecurityProfile
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SshCredential

SSH 연결에 사용할 SSH 자격 증명을 지정합니다. 이는 Linux 클러스터에만 해당됩니다.

Type:PSCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SshPublicKey

SSH 연결에 사용할 공개 키를 지정합니다. 이는 Linux 클러스터에만 해당됩니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubnetName

클러스터에 대해 선택한 가상 네트워크 내에서 서브넷의 이름을 지정합니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Version

HDInsight 클러스터의 HDI 버전을 지정합니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VirtualNetworkId

클러스터를 프로비전할 가상 네트워크의 ID를 지정합니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WorkerNodeSize

작업자 노드에 대한 가상 머신의 크기를 지정합니다. 허용되는 VM 크기에 대해 Get-AzureRmVMSize를 사용하고 HDInsight의 가격 책정 페이지를 참조하세요.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ZookeeperNodeSize

Zookeeper 노드에 대한 가상 머신의 크기를 지정합니다. 허용되는 VM 크기에 대해 Get-AzureRmVMSize를 사용하고 HDInsight의 가격 책정 페이지를 참조하세요. 이 매개 변수는 HBase 또는 Storm 클러스터에만 유효합니다.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

입력

AzureHDInsightConfig

매개 변수: 구성(ByValue)

출력

AzureHDInsightCluster

참고

키워드: azure, azurerm, arm, 리소스, 관리, 관리자, hadoop, hdinsight, hd, 인사이트