azurerm_hdinsight_hadoop_cluster

Manages a HDInsight Hadoop Cluster.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_storage_account" "example" {
  name                     = "hdinsightstor"
  resource_group_name      = azurerm_resource_group.example.name
  location                 = azurerm_resource_group.example.location
  account_tier             = "Standard"
  account_replication_type = "LRS"
}

resource "azurerm_storage_container" "example" {
  name                  = "hdinsight"
  storage_account_name  = azurerm_storage_account.example.name
  container_access_type = "private"
}

resource "azurerm_hdinsight_hadoop_cluster" "example" {
  name                = "example-hdicluster"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  cluster_version     = "3.6"
  tier                = "Standard"

  component_version {
    hadoop = "2.7"
  }

  gateway {
    username = "acctestusrgw"
    password = "TerrAform123!"
  }

  storage_account {
    storage_container_id = azurerm_storage_container.example.id
    storage_account_key  = azurerm_storage_account.example.primary_access_key
    is_default           = true
  }

  roles {
    head_node {
      vm_size  = "Standard_D3_V2"
      username = "acctestusrvm"
      password = "AccTestvdSC4daf986!"
    }

    worker_node {
      vm_size               = "Standard_D4_V2"
      username              = "acctestusrvm"
      password              = "AccTestvdSC4daf986!"
      target_instance_count = 3
    }

    zookeeper_node {
      vm_size  = "Standard_D3_V2"
      username = "acctestusrvm"
      password = "AccTestvdSC4daf986!"
    }
  }
}

Argument Reference

The following arguments are supported:



A component_version block supports the following:


A gateway block supports the following:


A head_node block supports the following:


A script_actions block supports the following:


A roles block supports the following:


A network block supports the following:


A compute_isolation block supports the following:


A storage_account block supports the following:


A storage_account_gen2 block supports the following:


A private_link_configuration block supports the following:


A private_link_service_connection block supports the following:


A worker_node block supports the following:


A disk_encryption block supports the following:


A zookeeper_node block supports the following:


A edge_node block supports the following:


A install_script_action block supports the following:


A https_endpoints block supports the following:


A uninstall_script_actions block supports the following:


A metastores block supports the following:


A hive block supports the following:


An oozie block supports the following:


An ambari block supports the following:


A monitor block supports the following:


A extension block supports the following:


An autoscale block supports the following:


A capacity block supports the following:


A recurrence block supports the following:


A schedule block supports the following:


A security_profile block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

HDInsight Hadoop Clusters can be imported using the resource id, e.g.

terraform import azurerm_hdinsight_hadoop_cluster.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1