This repo shows an example for rolling out a complete HDInsight environment (inbound) via Terraform.
This includes rollout of the following resources:
- HDInsight Cluster
- Azure Storage Account
- Virtual Network including a default subnet
- Azure SQL Database for Ambari, Oozie and Hive metastores
Make sure you have the Azure CLI and Terraform installed.
- Go to
terraform
folder - Copy
terraform.tfvars.example
toterraform.tfvars
- Update
terraform.tfvars
with your desired values - Run Terraform
$ terraform init $ terraform plan $ terraform apply
See notes below for additional info:
- Change
enable_hadoop_cluster
,enable_spark_cluster
,enable_kafka_cluster
,enable_interactive_cluster
orenable_hbase_cluster
values to deploy any of those clusters. - Cluster creation can take between 20-40min.
- The deployment was tested on wsl (ubuntu).