azure - 通过 powershell 指定 HDInsight 3.2 实例大小

标签 azure azure-hdinsight

根据新的 HDInsight pricing schemarelease notes ,您现在可以指定实例的大小(A3-A9 和 D3-D14)。但是,我无法找到在通过 powershell New-AzureHDInsightCluster 命令创建新集群时如何指定实例大小的方法。我确实发现现在它接受 -DataNodeVMSize ,但是它不理解像“A7”这样的关键字,并且当指定“Extra Large”时,它会创建一个标准的 A3 集群。目前是否确实可以指定实例大小有什么建议吗?

“可用”VM 大小 https://msdn.microsoft.com/en-us/library/azure/dn197896.aspx

这是我正在运行的脚本:

$VmSize = "Small";

New-AzureHDInsightCluster -Name $clusterName `
              -ClusterType Hadoop `
              -Version $MyClusterVersion `
              -Location $MyClusterLocation `
              -ClusterSizeInNodes $NumClusterNodes `
              -Credential $HdInsightCreds `
              -DefaultStorageAccountName $DefaultStorageAccountFqdn `
              -DefaultStorageAccountKey $storageAccountKey `
              -DefaultStorageContainerName $hadoopContainer' `
              -DataNodeVMSize $VmSize `
              -HeadNodeVMSize $HeadNodeVmSize

最佳答案

正如您已经提到的,目前 HDInsight 群集仅支持 A3-A9D3-D14 内的节点。

您提供的链接非常清楚地显示了与每个节点类型和大小相关的代码。代码 Small 属于实例类型 A1\SmallHDInsight 不支持该类型。因此,它可能会考虑使用最小的可用实例,在本例中为 A3\Large

您应该尝试指定 HDInsight 群集支持的范围内的其他实例。我可以看到您已经尝试过超大。您可能想尝试根据可用的代码索引 here 输入代码(例如,在Web 和辅助角色实例的大小下)。

A3: Large
A4: Extralarge

关于azure - 通过 powershell 指定 HDInsight 3.2 实例大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28612799/

相关文章:

azure - 检查azure逻辑应用程序内的azure表中是否存在记录

java - HDInsight-Spark(spark-submit)失败 - java.lang.NoSuchMethodError : com. microsoft.azure.storage.blob.CloudBlockBlob.startCopy

c# - 提交 C# MapReduce 作业 Windows Azure HDInsight - 响应状态代码不表示成功 : 500 (Server Error)

azure - 具有日期分区的 HdInsight Azure DW Polybase 到 Hive 表 (ORC) 失败

hadoop - Web 平台安装程序 Hadoop 重新安装

azure - 如何通过 REST API、Powershell 或 Azure CLI 提取 Azure 资源模板格式

ios - Azure 物联网通信

c# - 如何使用 C# 从 Azure Active Directory 组获取所有用户

c# - Azure 函数获取登录标识

azure - 使用模板部署通过数据湖创建 Azure HDInsight 时出现问题