Interactive Query Cluster
Manages a HDInsight Interactive Query 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.InteractiveQueryCluster;
import com.pulumi.azure.hdinsight.InteractiveQueryClusterArgs;
import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterComponentVersionArgs;
import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterGatewayArgs;
import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterStorageAccountArgs;
import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesArgs;
import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesHeadNodeArgs;
import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeArgs;
import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesZookeeperNodeArgs;
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 exampleInteractiveQueryCluster = new InteractiveQueryCluster("exampleInteractiveQueryCluster", InteractiveQueryClusterArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.clusterVersion("3.6")
.tier("Standard")
.componentVersion(InteractiveQueryClusterComponentVersionArgs.builder()
.interactiveHive("2.1")
.build())
.gateway(InteractiveQueryClusterGatewayArgs.builder()
.username("acctestusrgw")
.password("Password!")
.build())
.storageAccounts(InteractiveQueryClusterStorageAccountArgs.builder()
.storageContainerId(exampleContainer.id())
.storageAccountKey(exampleAccount.primaryAccessKey())
.isDefault(true)
.build())
.roles(InteractiveQueryClusterRolesArgs.builder()
.headNode(InteractiveQueryClusterRolesHeadNodeArgs.builder()
.vmSize("Standard_D13_V2")
.username("acctestusrvm")
.password("AccTestvdSC4daf986!")
.build())
.workerNode(InteractiveQueryClusterRolesWorkerNodeArgs.builder()
.vmSize("Standard_D14_V2")
.username("acctestusrvm")
.password("AccTestvdSC4daf986!")
.targetInstanceCount(3)
.build())
.zookeeperNode(InteractiveQueryClusterRolesZookeeperNodeArgs.builder()
.vmSize("Standard_A4_V2")
.username("acctestusrvm")
.password("AccTestvdSC4daf986!")
.build())
.build())
.build());
}
}
Content copied to clipboard
Import
HDInsight Interactive Query Clusters can be imported using the resource id
, e.g.
$ pulumi import azure:hdinsight/interactiveQueryCluster:InteractiveQueryCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard