azure powershellを使用してHDINSIGHTクラスタを自動化しようとしています。azure hdinsight追加のストレージアカウントを持つクラスタを作成する
私は公式ドキュメントから、このテンプレートを使用していますどうすればセットアップ私クラスタのadditoinalストレージアカウント?あなたは何か考えていますか? ドキュメントは、ここで、私はAPIが変更された可能性があるので、約2年でこのコードを使用しますが、仕事に使用していないC#のライブラリーからの一例である例
$resourceGroupName = "<ResourceGroupName>" # Provide the Resource Group name
$storageAccountName = "<StorageAcccountName>" # Provide the Storage account name
$containerName = "<ContainerName>" # Provide the container name
$storageAccountKey = Get-AzureStorageAccountKey -Name $storageAccountName -ResourceGroupName $resourceGroupName | %{ $_.Key1 }
# Set these variables
$clusterName = $containerName # As a best practice, have the same name for the cluster and container
$clusterNodes = <ClusterSizeInNodes> # The number of nodes in the HDInsight cluster
$credentials = Get-Credential -Message "Enter Cluster user credentials" -UserName "admin"
$sshCredentials = Get-Credential -Message "Enter SSH user credentials"
# The location of the HDInsight cluster. It must be in the same data center as the Storage account.
$location = Get-AzureRmStorageAccount -ResourceGroupName $resourceGroupName -StorageAccountName $storageAccountName | %{$_.Location}
# Create a new HDInsight cluster
New-AzureRmHDInsightCluster -ClusterName $clusterName -ResourceGroupName $resourceGroupName -HttpCredential $credentials -Location $location -DefaultStorageAccountName "$storageAccountName.blob.core.windows.net" -DefaultStorageAccountKey $storageAccountKey -DefaultStorageContainer $containerName -ClusterSizeInNodes $clusterNodes -ClusterType Hadoop -OSType Linux -Version "3.2" -SshCredential $sshCredentials
を、それを追加しますが、私は紺碧のPowerShellと解決策を見つけるためにしようとしています、ありがとうございます。ありがとうございます。 –
私はスクラッチリソース、ストレージアカウントのエンティティなどから再作成しました。クラスタ名とは異なるストレージBLOBコンテナ名を設定すると、クラスタが失敗すると思われます。 –