-name:Create instance of Clusterazure_rm_hdinsightcluster:resource_group:"{{resource_group}}"name:"{{cluster_name}}"location:eastus2cluster_version:3.6os_type:linuxtier:standardcluster_definition:kind:sparkgateway_rest_username:http-usergateway_rest_password:MuABCPassword!!@123storage_accounts:-name:"{{storage_account_name}}.blob.core.windows.net"is_default:yescontainer:"{{cluster_name}}"key:"{{storage_output['response']['keys'][0]['value']}}"compute_profile_roles:-name:headnodetarget_instance_count:1vm_size:Standard_D3linux_profile:username:sshuserpassword:MuABCPassword!!@123-name:workernodetarget_instance_count:1vm_size:Standard_D3linux_profile:username:sshuserpassword:MuABCPassword!!@123-name:zookeepernodetarget_instance_count:3vm_size:Mediumlinux_profile:username:sshuserpassword:MuABCPassword!!@123
Resize Cluster
The only thing that can be changed after HDInsight cluster is created is the number of worker nodes.
Below task will increment number of nodes from 1 to 2.