|
| 1 | +--- |
| 2 | +title: 'Quickstart: Create Interactive Query cluster using template - Azure HDInsight' |
| 3 | +description: This quickstart shows how to use Resource Manager template to create an Interactive Query cluster in Azure HDInsight. |
| 4 | +author: hrasheed-msft |
| 5 | +ms.author: hrasheed |
| 6 | +ms.reviewer: jasonh |
| 7 | +ms.service: hdinsight |
| 8 | +ms.topic: quickstart |
| 9 | +ms.custom: subject-armqs |
| 10 | +ms.date: 03/13/2020 |
| 11 | + |
| 12 | +#Customer intent: As a developer new to Interactive Query on Azure, I need to see how to create an Interactive Query cluster. |
| 13 | +--- |
| 14 | + |
| 15 | +# Quickstart: Create Interactive Query cluster in Azure HDInsight using Resource Manager template |
| 16 | + |
| 17 | +In this quickstart, you use an Azure Resource Manager template to create an [Interactive Query](./apache-interactive-query-get-started.md) cluster in Azure HDInsight. Interactive Query (also called Apache Hive LLAP, or [Low Latency Analytical Processing](https://cwiki.apache.org/confluence/display/Hive/LLAP)) is an Azure HDInsight [cluster type](../hdinsight-hadoop-provision-linux-clusters.md#cluster-type). |
| 18 | + |
| 19 | +[!INCLUDE [About Azure Resource Manager](../../../includes/resource-manager-quickstart-introduction.md)] |
| 20 | + |
| 21 | +If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin. |
| 22 | + |
| 23 | +## Create an Interactive Query cluster |
| 24 | + |
| 25 | +### Review the template |
| 26 | + |
| 27 | +The template used in this quickstart is from [Azure Quickstart templates](https://github.com/Azure/azure-quickstart-templates/tree/master/101-hdinsight-interactive-hive). |
| 28 | + |
| 29 | +:::code language="json" source="~/quickstart-templates/101-hdinsight-interactive-hive/azuredeploy.json" range="1-158"::: |
| 30 | + |
| 31 | + |
| 32 | +Two Azure resources are defined in the template: |
| 33 | + |
| 34 | +* [Microsoft.Storage/storageAccounts](https://docs.microsoft.com/azure/templates/microsoft.storage/storageaccounts): create an Azure Storage Account. |
| 35 | +* [Microsoft.HDInsight/cluster](https://docs.microsoft.com/azure/templates/microsoft.hdinsight/clusters): create an HDInsight cluster. |
| 36 | + |
| 37 | +### Deploy the template |
| 38 | + |
| 39 | +1. Select the **Deploy to Azure** button below to sign in to Azure and open the Resource Manager template. |
| 40 | + |
| 41 | + [](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-hdinsight-interactive-hive%2Fazuredeploy.json) |
| 42 | + |
| 43 | +1. Enter or select the following values: |
| 44 | + |
| 45 | + |Property |Description | |
| 46 | + |---|---| |
| 47 | + |Subscription|From the drop-down list, select the Azure subscription that's used for the cluster.| |
| 48 | + |Resource group|From the drop-down list, select your existing resource group, or select **Create new**.| |
| 49 | + |Location|The value will autopopulate with the location used for the resource group.| |
| 50 | + |Cluster Name|Enter a globally unique name. For this template, use only lowercase letters, and numbers.| |
| 51 | + |Cluster Login User Name|Provide the username, default is **admin**.| |
| 52 | + |Cluster Login Password|Provide a password. The password must be at least 10 characters in length and must contain at least one digit, one uppercase, and one lower case letter, one non-alphanumeric character (except characters ' " ` ). | |
| 53 | + |Ssh User Name|Provide the username, default is sshuser| |
| 54 | + |Ssh Password|Provide the password.| |
| 55 | + |
| 56 | +  |
| 57 | + |
| 58 | +1. Review the **TERMS AND CONDITIONS**. Then select **I agree to the terms and conditions stated above**, then **Purchase**. You'll receive a notification that your deployment is in progress. It takes about 20 minutes to create a cluster. |
| 59 | + |
| 60 | +## Review deployed resources |
| 61 | + |
| 62 | +Once the cluster is created, you'll receive a **Deployment succeeded** notification with a **Go to resource** link. Your Resource group page will list your new HDInsight cluster and the default storage associated with the cluster. Each cluster has an [Azure Storage](../hdinsight-hadoop-use-blob-storage.md) account or an [Azure Data Lake Storage account](../hdinsight-hadoop-use-data-lake-store.md) dependency. It's referred as the default storage account. The HDInsight cluster and its default storage account must be colocated in the same Azure region. Deleting clusters doesn't delete the storage account. |
| 63 | + |
| 64 | +## Clean up resources |
| 65 | + |
| 66 | +After you complete the quickstart, you may want to delete the cluster. With HDInsight, your data is stored in Azure Storage, so you can safely delete a cluster when it isn't in use. You're also charged for an HDInsight cluster, even when it isn't in use. Since the charges for the cluster are many times more than the charges for storage, it makes economic sense to delete clusters when they aren't in use. |
| 67 | + |
| 68 | +From the Azure portal, navigate to your cluster, and select **Delete**. |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +You can also select the resource group name to open the resource group page, and then select **Delete resource group**. By deleting the resource group, you delete both the HDInsight cluster, and the default storage account. |
| 73 | + |
| 74 | +## Next steps |
| 75 | + |
| 76 | +In this quickstart, you learned how to create an Interactive Query cluster in HDInsight using a Resource Manager template. In the next article, you learn how to use Apache Zeppelin to run Apache Hive queries. |
| 77 | + |
| 78 | +> [!div class="nextstepaction"] |
| 79 | +> [Execute Apache Hive queries in Azure HDInsight with Apache Zeppelin](./hdinsight-connect-hive-zeppelin.md) |
0 commit comments