根据新的 HDInsight pricing schema和 release 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-A9
和 D3-D14
内的节点。
您提供的链接非常清楚地显示了与每个节点类型和大小相关的代码。代码 Small
属于实例类型 A1\Small
,HDInsight 不支持该类型。因此,它可能会考虑使用最小的可用实例,在本例中为 A3\Large
。
您应该尝试指定 HDInsight 群集支持的范围内的其他实例。我可以看到您已经尝试过超大
。您可能想尝试根据可用的代码索引 here 输入代码(例如,在Web 和辅助角色实例的大小下)。
A3: Large
A4: Extralarge
关于azure - 通过 powershell 指定 HDInsight 3.2 实例大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28612799/