你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzHDInsightClusterConfig
创建描述 Azure HDInsight 群集配置的非持久化群集配置对象。
语法
New-AzHDInsightClusterConfig
[-StorageAccountResourceId <String>]
[-StorageAccountKey <String>]
[-StorageAccountType <StorageType>]
[-OozieMetastore <AzureHDInsightMetastore>]
[-HiveMetastore <AzureHDInsightMetastore>]
[-HeadNodeSize <String>]
[-WorkerNodeSize <String>]
[-EdgeNodeSize <String>]
[-ZookeeperNodeSize <String>]
[-ClusterType <String>]
[-ClusterTier <String>]
[-ObjectId <Guid>]
[-ApplicationId <Guid>]
[-CertificateFileContents <Byte[]>]
[-CertificateFilePath <String>]
[-CertificatePassword <String>]
[-AadTenantId <Guid>]
[-MinSupportedTlsVersion <String>]
[-AssignedIdentity <String>]
[-EncryptionAlgorithm <String>]
[-EncryptionKeyName <String>]
[-EncryptionKeyVersion <String>]
[-EncryptionVaultUri <String>]
[-EncryptionInTransit <Boolean>]
[-EncryptionAtHost <Boolean>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
New-AzHDInsightClusterConfig cmdlet 创建描述 Azure HDInsight 群集配置的非持久化对象。
示例
示例 1:创建群集配置对象
# Primary storage account info
$storageAccountResourceGroupName = "Group"
$storageAccountResourceId = "yourstorageaccountresourceid"
$storageAccountName = "yourstorageaccountname"
$storageAccountKey = (Get-AzStorageAccountKey -ResourceGroupName $storageAccountResourceGroupName -Name $storageAccountName)[0].value
$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-AzResourceGroup -Name $clusterResourceGroupName -Location $location
# Create the cluster
New-AzHDInsightClusterConfig `
| Add-AzHDInsightStorage `
-StorageAccountName "$secondStorageAccountName.blob.core.contoso.net" `
-StorageAccountKey $key2 `
| New-AzHDInsightCluster `
-ClusterType Hadoop `
-OSType Windows `
-ClusterSizeInNodes 4 `
-ResourceGroupName $clusterResourceGroupName `
-ClusterName $clusterName `
-HttpCredential $clusterCreds `
-Location $location `
-StorageAccountResourceId $storageAccountResourceId `
-StorageAccountKey $storageAccountKey `
-StorageContainer $storageContainer
此命令创建群集配置对象。
参数
-AadTenantId
指定访问 Azure Data Lake Store 时将使用的 Microsoft Entra 租户 ID。
类型: | Guid |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ApplicationId
获取或设置用于访问 Azure Data Lake 的服务主体应用程序 ID。
类型: | Guid |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-AssignedIdentity
获取或设置分配的标识。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-CertificateFileContents
指定访问 Azure Data Lake Store 时将使用的证书的文件内容。
类型: | Byte[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-CertificateFilePath
指定将用于作为服务主体进行身份验证的证书的文件路径。 访问 Azure Data Lake Store 时,群集将使用此群集。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-CertificatePassword
指定将用于作为服务主体进行身份验证的证书的密码。 访问 Azure Data Lake Store 时,群集将使用此群集。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ClusterTier
指定 HDInsight 群集层。 此参数的可接受值为:
- 标准
- 高级默认值为 Standard。 高级层只能与 Linux 群集一起使用,并使用它来使用一些新功能。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ClusterType
指定要创建的群集的类型。 此参数的可接受值为:
- Hadoop
- HBase
- 风暴
- 火花
- INTERACTIVEHIVE
- 卡 夫 卡
- RServer
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EdgeNodeSize
指定边缘节点的虚拟机大小。 对可接受的 VM 大小使用 Get-AzVMSize,并查看 HDInsight 的定价页。 此参数仅适用于 RServer 群集。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EncryptionAlgorithm
获取或设置加密算法。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EncryptionAtHost
获取或设置指示是否在主机上启用加密的标志。
类型: | Nullable<T>[Boolean] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EncryptionInTransit
获取或设置指示是否在传输中启用加密的标志。
类型: | Nullable<T>[Boolean] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EncryptionKeyName
获取或设置加密密钥名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EncryptionKeyVersion
获取或设置加密密钥版本。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EncryptionVaultUri
获取或设置加密保管库 URI。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-HeadNodeSize
指定头节点的虚拟机大小。 对可接受的 VM 大小使用 Get-AzVMSize,并查看 HDInsight 的定价页。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-HiveMetastore
指定要存储 Hive 元数据的元存储。 也可以使用 Add-AzHDInsightMetastore cmdlet。
类型: | AzureHDInsightMetastore |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-MinSupportedTlsVersion
获取或设置受支持的最低 TLS 版本。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ObjectId
指定表示群集的 Microsoft Entra 服务主体的 Microsoft Entra 对象 ID(GUID)。 访问 Azure Data Lake Store 时,群集将使用此群集。
类型: | Guid |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-OozieMetastore
指定要存储 Oozie 元数据的元存储。 也可以使用 Add-AzHDInsightMetastore cmdlet。
类型: | AzureHDInsightMetastore |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-StorageAccountKey
获取或设置存储帐户访问密钥。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-StorageAccountResourceId
获取或设置存储帐户资源 ID。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-StorageAccountType
获取或设置默认存储帐户的类型。
类型: | StorageType |
接受的值: | AzureStorage, AzureDataLakeStore, AzureDataLakeStorageGen2 |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WorkerNodeSize
指定工作器节点的虚拟机大小。 对可接受的 VM 大小使用 Get-AzVMSize,并查看 HDInsight 的定价页。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ZookeeperNodeSize
指定 Zookeeper 节点的虚拟机大小。 对可接受的 VM 大小使用 Get-AzVMSize,并查看 HDInsight 的定价页。 此参数仅适用于 HBase 或 Storm 群集。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
None