HadoopClusterArgs

data class HadoopClusterArgs(val clusterVersion: Output<String>? = null, val componentVersion: Output<HadoopClusterComponentVersionArgs>? = null, val computeIsolation: Output<HadoopClusterComputeIsolationArgs>? = null, val diskEncryptions: Output<List<HadoopClusterDiskEncryptionArgs>>? = null, val extension: Output<HadoopClusterExtensionArgs>? = null, val gateway: Output<HadoopClusterGatewayArgs>? = null, val location: Output<String>? = null, val metastores: Output<HadoopClusterMetastoresArgs>? = null, val monitor: Output<HadoopClusterMonitorArgs>? = null, val name: Output<String>? = null, val network: Output<HadoopClusterNetworkArgs>? = null, val resourceGroupName: Output<String>? = null, val roles: Output<HadoopClusterRolesArgs>? = null, val securityProfile: Output<HadoopClusterSecurityProfileArgs>? = null, val storageAccountGen2: Output<HadoopClusterStorageAccountGen2Args>? = null, val storageAccounts: Output<List<HadoopClusterStorageAccountArgs>>? = null, val tags: Output<Map<String, String>>? = null, val tier: Output<String>? = null, val tlsMinVersion: Output<String>? = null) : ConvertibleToJava<HadoopClusterArgs>

Manages a HDInsight Hadoop Cluster.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.Container;
import com.pulumi.azure.storage.ContainerArgs;
import com.pulumi.azure.hdinsight.HadoopCluster;
import com.pulumi.azure.hdinsight.HadoopClusterArgs;
import com.pulumi.azure.hdinsight.inputs.HadoopClusterComponentVersionArgs;
import com.pulumi.azure.hdinsight.inputs.HadoopClusterGatewayArgs;
import com.pulumi.azure.hdinsight.inputs.HadoopClusterStorageAccountArgs;
import com.pulumi.azure.hdinsight.inputs.HadoopClusterRolesArgs;
import com.pulumi.azure.hdinsight.inputs.HadoopClusterRolesHeadNodeArgs;
import com.pulumi.azure.hdinsight.inputs.HadoopClusterRolesWorkerNodeArgs;
import com.pulumi.azure.hdinsight.inputs.HadoopClusterRolesZookeeperNodeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
.storageAccountName(exampleAccount.name())
.containerAccessType("private")
.build());
var exampleHadoopCluster = new HadoopCluster("exampleHadoopCluster", HadoopClusterArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.clusterVersion("3.6")
.tier("Standard")
.componentVersion(HadoopClusterComponentVersionArgs.builder()
.hadoop("2.7")
.build())
.gateway(HadoopClusterGatewayArgs.builder()
.username("acctestusrgw")
.password("PAssword123!")
.build())
.storageAccounts(HadoopClusterStorageAccountArgs.builder()
.storageContainerId(exampleContainer.id())
.storageAccountKey(exampleAccount.primaryAccessKey())
.isDefault(true)
.build())
.roles(HadoopClusterRolesArgs.builder()
.headNode(HadoopClusterRolesHeadNodeArgs.builder()
.vmSize("Standard_D3_V2")
.username("acctestusrvm")
.password("AccTestvdSC4daf986!")
.build())
.workerNode(HadoopClusterRolesWorkerNodeArgs.builder()
.vmSize("Standard_D4_V2")
.username("acctestusrvm")
.password("AccTestvdSC4daf986!")
.targetInstanceCount(3)
.build())
.zookeeperNode(HadoopClusterRolesZookeeperNodeArgs.builder()
.vmSize("Standard_D3_V2")
.username("acctestusrvm")
.password("AccTestvdSC4daf986!")
.build())
.build())
.build());
}
}

Import

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

$ pulumi import azure:hdinsight/hadoopCluster:HadoopCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1

Constructors

Link copied to clipboard
fun HadoopClusterArgs(clusterVersion: Output<String>? = null, componentVersion: Output<HadoopClusterComponentVersionArgs>? = null, computeIsolation: Output<HadoopClusterComputeIsolationArgs>? = null, diskEncryptions: Output<List<HadoopClusterDiskEncryptionArgs>>? = null, extension: Output<HadoopClusterExtensionArgs>? = null, gateway: Output<HadoopClusterGatewayArgs>? = null, location: Output<String>? = null, metastores: Output<HadoopClusterMetastoresArgs>? = null, monitor: Output<HadoopClusterMonitorArgs>? = null, name: Output<String>? = null, network: Output<HadoopClusterNetworkArgs>? = null, resourceGroupName: Output<String>? = null, roles: Output<HadoopClusterRolesArgs>? = null, securityProfile: Output<HadoopClusterSecurityProfileArgs>? = null, storageAccountGen2: Output<HadoopClusterStorageAccountGen2Args>? = null, storageAccounts: Output<List<HadoopClusterStorageAccountArgs>>? = null, tags: Output<Map<String, String>>? = null, tier: Output<String>? = null, tlsMinVersion: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): HadoopClusterArgs

Properties

Link copied to clipboard
val clusterVersion: Output<String>? = null

Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.

Link copied to clipboard

A component_version block as defined below.

Link copied to clipboard

A compute_isolation block as defined below.

Link copied to clipboard

One or more disk_encryption block as defined below.

Link copied to clipboard

An extension block as defined below.

Link copied to clipboard
val gateway: Output<HadoopClusterGatewayArgs>? = null

A gateway block as defined below.

Link copied to clipboard
val location: Output<String>? = null

Specifies the Azure Region which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created.

Link copied to clipboard

A metastores block as defined below.

Link copied to clipboard
val monitor: Output<HadoopClusterMonitorArgs>? = null

A monitor block as defined below.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name for this HDInsight Hadoop Cluster. Changing this forces a new resource to be created.

Link copied to clipboard
val network: Output<HadoopClusterNetworkArgs>? = null

A network block as defined below.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Specifies the name of the Resource Group in which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val roles: Output<HadoopClusterRolesArgs>? = null

A roles block as defined below.

Link copied to clipboard

A security_profile block as defined below. Changing this forces a new resource to be created.

Link copied to clipboard

A storage_account_gen2 block as defined below.

Link copied to clipboard

One or more storage_account block as defined below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of Tags which should be assigned to this HDInsight Hadoop Cluster.

Link copied to clipboard
val tier: Output<String>? = null

Specifies the Tier which should be used for this HDInsight Hadoop Cluster. Possible values are Standard or Premium. Changing this forces a new resource to be created.

Link copied to clipboard
val tlsMinVersion: Output<String>? = null

The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created.