forked from dharmeshkakadia/presto-hdinsight
-
Notifications
You must be signed in to change notification settings - Fork 9
/
airpal-deploy.json
74 lines (74 loc) · 2.67 KB
/
airpal-deploy.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"clusterName": {
"type": "string",
"metadata": {
"description": "The name of the existing HDInsight presto cluster"
}
},
"edgeNodeSize": {
"type": "string",
"metadata": {
"description": "Size of the edge node that hosts the application"
},
"defaultValue": "Standard_D3",
"allowedValues": [
"Standard_A1",
"Standard_A2",
"Standard_A3",
"Standard_A4",
"Standard_D1",
"Standard_D2",
"Standard_D3",
"Standard_D4"
]
},
"prestoaddress": {
"type": "string",
"metadata": {
"description": "The node where presto coordinator is running (can be obtained by running sudo slider registry --name presto1 --getexp presto"
}
}
},
"variables": {
"clusterApiVersion": "2015-03-01-preview",
"applicationName": "airpal"
},
"resources": [{
"name": "[concat(parameters('clusterName'),'/', variables('applicationName'))]",
"type": "Microsoft.HDInsight/clusters/applications",
"apiVersion": "[variables('clusterApiVersion')]",
"properties": {
"marketPlaceIdentifier": "airpal",
"computeProfile": {
"roles": [{
"name": "edgenode",
"targetInstanceCount": 1,
"hardwareProfile": {
"vmSize": "[parameters('edgeNodeSize')]"
}
}]
},
"installScriptActions": [{
"name": "[concat('emptynode','-' ,uniquestring(variables('applicationName')))]",
"uri": "https://raw.githubusercontent.com/hdinsight/presto-hdinsight/master/installairpal.sh",
"parameters":"[parameters('prestoaddress')]",
"roles": ["edgenode"]
}],
"uninstallScriptActions": [],
"httpsEndpoints": [{
"subDomainSuffix": "air",
"destinationPort": 9191,
"accessModes": ["webpage"]}],
"applicationType": "CustomApplication"
}
}],
"outputs": {
"application": {
"type": "object",
"value": "[reference(resourceId('Microsoft.HDInsight/clusters/applications/',parameters('clusterName'), variables('applicationName')))]"
}
}
}