Last active
May 14, 2019 04:10
-
-
Save toanalien/e7421925b9af09f8b9713484194f6f7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", | |
"contentVersion": "0.9.0.0", | |
"parameters": { | |
"clusterName": { | |
"type": "string", | |
"metadata": { | |
"description": "The name of the HDInsight cluster to create." | |
} | |
}, | |
"clusterLoginUserName": { | |
"type": "string", | |
"defaultValue": "admin", | |
"metadata": { | |
"description": "These credentials can be used to submit jobs to the cluster and to log into cluster dashboards." | |
} | |
}, | |
"clusterLoginPassword": { | |
"type": "securestring", | |
"metadata": { | |
"description": "The password must be at least 10 characters in length and must contain at least one digit, one non-alphanumeric character, and one upper or lower case letter." | |
} | |
}, | |
"location": { | |
"type": "string", | |
"defaultValue": "eastus2", | |
"metadata": { | |
"description": "The location where all azure resources will be deployed." | |
} | |
}, | |
"clusterVersion": { | |
"type": "string", | |
"defaultValue": "3.6", | |
"metadata": { | |
"description": "HDInsight cluster version." | |
} | |
}, | |
"clusterWorkerNodeCount": { | |
"type": "int", | |
"defaultValue": 4, | |
"metadata": { | |
"description": "The number of nodes in the HDInsight cluster." | |
} | |
}, | |
"clusterKind": { | |
"type": "string", | |
"defaultValue": "HADOOP", | |
"metadata": { | |
"description": "The type of the HDInsight cluster to create." | |
} | |
}, | |
"sshUserName": { | |
"type": "string", | |
"defaultValue": "sshuser", | |
"metadata": { | |
"description": "These credentials can be used to remotely access the cluster." | |
} | |
}, | |
"sshPassword": { | |
"type": "securestring", | |
"metadata": { | |
"description": "The password must be at least 10 characters in length and must contain at least one digit, one non-alphanumeric character, and one upper or lower case letter." | |
} | |
} | |
}, | |
"resources": [ | |
{ | |
"apiVersion": "2015-03-01-preview", | |
"name": "[parameters('clusterName')]", | |
"type": "Microsoft.HDInsight/clusters", | |
"location": "[parameters('location')]", | |
"dependsOn": [ | |
"Microsoft.Storage/storageAccounts/toanvtt" | |
], | |
"properties": { | |
"clusterVersion": "[parameters('clusterVersion')]", | |
"osType": "Linux", | |
"tier": "standard", | |
"clusterDefinition": { | |
"kind": "[parameters('clusterKind')]", | |
"componentVersion": { | |
"Hadoop": "2.7" | |
}, | |
"configurations": { | |
"gateway": { | |
"restAuthCredential.isEnabled": true, | |
"restAuthCredential.username": "[parameters('clusterLoginUserName')]", | |
"restAuthCredential.password": "[parameters('clusterLoginPassword')]" | |
} | |
} | |
}, | |
"storageProfile": { | |
"storageaccounts": [ | |
{ | |
"name": "toanvtt.blob.core.windows.net", | |
"isDefault": true, | |
"container": "toanvtt-2019-05-14t03-49-41-211z", | |
"key": "[listKeys('Microsoft.Storage/storageAccounts/toanvtt', '2015-05-01-preview').key1]" | |
} | |
] | |
}, | |
"computeProfile": { | |
"roles": [ | |
{ | |
"autoscale": null, | |
"name": "headnode", | |
"minInstanceCount": 1, | |
"targetInstanceCount": 2, | |
"hardwareProfile": { | |
"vmSize": "Standard_D12_V2" | |
}, | |
"osProfile": { | |
"linuxOperatingSystemProfile": { | |
"username": "[parameters('sshUserName')]", | |
"password": "[parameters('sshPassword')]" | |
} | |
}, | |
"virtualNetworkProfile": null, | |
"scriptActions": [], | |
"dataDisksGroups": null | |
}, | |
{ | |
"autoscale": null, | |
"name": "workernode", | |
"targetInstanceCount": 4, | |
"hardwareProfile": { | |
"vmSize": "Standard_D4_V2" | |
}, | |
"osProfile": { | |
"linuxOperatingSystemProfile": { | |
"username": "[parameters('sshUserName')]", | |
"password": "[parameters('sshPassword')]" | |
} | |
}, | |
"virtualNetworkProfile": null, | |
"scriptActions": [], | |
"dataDisksGroups": null | |
}, | |
{ | |
"autoscale": null, | |
"name": "zookeepernode", | |
"minInstanceCount": 1, | |
"targetInstanceCount": 3, | |
"hardwareProfile": { | |
"vmSize": "Small" | |
}, | |
"osProfile": { | |
"linuxOperatingSystemProfile": { | |
"username": "[parameters('sshUserName')]", | |
"password": "[parameters('sshPassword')]" | |
} | |
}, | |
"virtualNetworkProfile": null, | |
"scriptActions": [], | |
"dataDisksGroups": null | |
} | |
] | |
} | |
} | |
}, | |
{ | |
"type": "Microsoft.Storage/storageAccounts", | |
"name": "toanvtt", | |
"apiVersion": "2015-05-01-preview", | |
"location": "eastus2", | |
"properties": { | |
"accountType": "Standard_LRS" | |
} | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"clusterName": { | |
"value": "toanvtt" | |
}, | |
"clusterLoginUserName": { | |
"value": "admin" | |
}, | |
"clusterLoginPassword": { | |
"value": null | |
}, | |
"location": { | |
"value": "eastus2" | |
}, | |
"clusterWorkerNodeCount": { | |
"value": 4 | |
}, | |
"clusterKind": { | |
"value": "HADOOP" | |
}, | |
"clusterVersion": { | |
"value": "3.6" | |
}, | |
"sshUserName": { | |
"value": "sshuser" | |
}, | |
"sshPassword": { | |
"value": null | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment