Skip to content

Commit

Permalink
[HDInsight] JEDI: Support compute isolation (Azure#12068)
Browse files Browse the repository at this point in the history
* Add networkProperties and clusterId

* Add compute isolation property

Co-authored-by: Zhenyu Zhou <zhezhou@microsoft.com>
  • Loading branch information
2 people authored and dabenhamMic committed Dec 14, 2020
1 parent ceb51b5 commit d108aa1
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
},
"Create cluster with network properties": {
"$ref": "./examples/CreateHDInsightClusterWithCustomNetworkProperties.json"
},
"Create cluster with compute isolation properties": {
"$ref": "./examples/CreateHDInsightClusterWithComputeIsolationProperties.json"
}
},
"parameters": [
Expand Down Expand Up @@ -1043,6 +1046,19 @@
}
}
},
"ComputeIsolationProperties": {
"description": "The compute isolation properties.",
"properties": {
"enableComputeIsolation": {
"type": "boolean",
"description": "The flag indicates whether enable compute isolation or not."
},
"hostSku": {
"type": "string",
"description": "The host sku."
}
}
},
"ClusterCreateProperties": {
"description": "The cluster create parameters.",
"properties": {
Expand Down Expand Up @@ -1109,6 +1125,10 @@
"networkProperties": {
"$ref": "#/definitions/NetworkProperties",
"description": "The network properties."
},
"computeIsolationProperties": {
"$ref": "#/definitions/ComputeIsolationProperties",
"description": "The compute isolation properties."
}
}
},
Expand Down Expand Up @@ -1301,6 +1321,10 @@
"networkProperties": {
"$ref": "#/definitions/NetworkProperties",
"description": "The network properties."
},
"computeIsolationProperties": {
"$ref": "#/definitions/ComputeIsolationProperties",
"description": "The compute isolation properties."
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"parameters": {
"clusterName": "cluster1",
"resourceGroupName": "rg1",
"api-version": "2018-06-01-preview",
"subscriptionId": "subId",
"parameters": {
"properties": {
"clusterVersion": "3.6",
"osType": "Linux",
"clusterDefinition": {
"kind": "hadoop",
"configurations": {
"gateway": {
"restAuthCredential.isEnabled": true,
"restAuthCredential.username": "admin",
"restAuthCredential.password": "**********"
}
}
},
"storageProfile": {
"storageaccounts": [
{
"name": "mystorage",
"isDefault": true,
"container": "containername",
"key": "storage account key"
}
]
},
"computeProfile": {
"roles": [
{
"name": "headnode",
"targetInstanceCount": 2,
"hardwareProfile": {
"vmSize": "standard_d3"
},
"osProfile": {
"linuxOperatingSystemProfile": {
"username": "sshuser",
"password": "**********",
"sshProfile": {
"publicKeys": [
{
"certificateData": "**********"
}
]
}
}
}
},
{
"name": "workernode",
"targetInstanceCount": 2,
"hardwareProfile": {
"vmSize": "standard_d3"
},
"osProfile": {
"linuxOperatingSystemProfile": {
"username": "sshuser",
"password": "**********",
"sshProfile": {
"publicKeys": [
{
"certificateData": "**********"
}
]
}
}
}
}
]
},
"computeIsolationProperties": {
"enableComputeIsolation": true,
"hostSku": null
}
}
}
},
"responses": {
"200": {
"headers": {
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1",
"name": "cluster1",
"type": "Microsoft.HDInsight/clusters",
"location": "South Central US",
"etag": "fdf2a6e8-ce83-42cc-8c2d-0ceb11a370ff",
"tags": null,
"properties": {
"clusterVersion": "3.6.1000.67",
"osType": "Linux",
"clusterId": "8186508b6234470e9d16c9e8e13bd821",
"clusterDefinition": {
"blueprint": "https://blueprints.azurehdinsight.net/hadoop-3.6.1000.67.2005040905.json",
"kind": "hadoop"
},
"computeProfile": {
"roles": [
{
"name": "headnode",
"targetInstanceCount": 2,
"hardwareProfile": {
"vmSize": "standard_d3"
},
"osProfile": {
"linuxOperatingSystemProfile": {
"username": "sshuser"
}
},
"virtualNetworkProfile": {
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
"subnet": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
}
},
{
"name": "workernode",
"targetInstanceCount": 2,
"hardwareProfile": {
"vmSize": "standard_d3"
},
"osProfile": {
"linuxOperatingSystemProfile": {
"username": "sshuser"
}
}
}
]
},
"computeIsolationProperties": {
"enableComputeIsolation": true,
"hostSku": null
},
"provisioningState": "Succeeded",
"clusterState": "Running",
"createdDate": "2020-06-09T12:25:43.48",
"quotaInfo": {
"coresUsed": 16
},
"tier": "Standard"
}
}
}
}
}

0 comments on commit d108aa1

Please sign in to comment.