I am having an issue while creating HdInsight cluster. This functionality is fundamental to a POC I am doing.
I am trying to add an additional storage account to the cluster.
Here is my code:
private static void CreateCluster(HDInsightCertificateCredential creds)
{
var client = HDInsightClient.Connect(creds);
var clusterInfo = new ClusterCreateParameters()
{
Name = Clustername,
Location = Location,
DefaultStorageAccountName = Storageaccountname,
DefaultStorageAccountKey = Storageaccountkey,
DefaultStorageContainer = Containername,
UserName = Username,
Password = Password,
ClusterSizeInNodes = Clustersize
};
//clusterInfo.AdditionalStorageAccounts.Add(new WabStorageAccountConfiguration("sacvendor.blob.core.windows.net", "<mykey>"));
client.CreateCluster(clusterInfo);
Console.WriteLine("done creating cluster");
}
Everything works fine with
//clusterInfo.AdditionalStorageAccounts.Add(new WabStorageAccountConfiguration("sacvendor.blob.core.windows.net", "<mykey>"));
Line commented out
But when this line is not commented out the code fails with Task failed exception. On the Management portal I can see the cluster with Error status and error message says internal server error retry the request.
The following blog describes the exact same process.