Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HDInsight][Hilo]Add new APIs #24940

Merged
merged 11 commits into from
Aug 4, 2023
2 changes: 2 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2862,6 +2862,7 @@ usagescenarios
useast
useraccount
userargs
userassignedidentities
userdata
userdelegationkey
usererror
Expand Down Expand Up @@ -2988,6 +2989,7 @@ wandisco
wans
wargs
wasb
wasbs
wasm
wasserstein
watchlist
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,335 @@
{
"parameters": {
"subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6",
"resourceGroupName": "hiloResourcegroup",
"api-version": "2023-06-01-preview",
"clusterPoolName": "clusterpool1",
"clusterName": "cluster1",
"HDInsightCluster": {
"location": "West US 2",
"properties": {
"clusterType": "kafka",
"computeProfile": {
"nodes": [
{
"type": "worker",
"vmSize": "Standard_D3_v2",
"count": 4
}
]
},
"clusterProfile": {
"clusterVersion": "1.0.1",
"ossVersion": "2.4.1",
"identityProfile": {
"msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi",
"msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34",
"msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441"
},
"authorizationProfile": {
"userIds": [
"testuser1",
"testuser2"
]
},
"kafkaProfile": {},
"sshProfile": {
"count": 2
},
"autoscaleProfile": {
"enabled": true,
"autoscaleType": "ScheduleBased",
"gracefulDecommissionTimeout": 3600,
"scheduleBasedConfig": {
"defaultCount": 10,
"timeZone": "Cen. Australia Standard Time",
"schedules": [
{
"days": [
"Monday"
],
"startTime": "00:00",
"endTime": "12:00",
"count": 20
},
{
"days": [
"Sunday"
],
"startTime": "00:00",
"endTime": "12:00",
"count": 25
}
]
},
"loadBasedConfig": {
"minNodes": 10,
"maxNodes": 20,
"pollInterval": 60,
"cooldownPeriod": 300,
"scalingRules": [
{
"actionType": "scaleup",
"evaluationCount": 3,
"scalingMetric": "cpu",
"comparisonRule": {
"operator": "greaterThan",
"threshold": 90
}
},
{
"actionType": "scaledown",
"evaluationCount": 3,
"scalingMetric": "cpu",
"comparisonRule": {
"operator": "lessThan",
"threshold": 20
}
}
]
}
}
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1",
"name": "cluster1",
"type": "Microsoft.HDInsight/clusterPools/clusters",
"properties": {
"provisioningState": "Succeeded",
"clusterType": "kafka",
"deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36",
"computeProfile": {
"nodes": [
{
"type": "worker",
"vmSize": "Standard_D3_v2",
"count": 4
}
]
},
"clusterProfile": {
"clusterVersion": "1.0.1",
"ossVersion": "2.4.1",
"components": [
{
"name": "Hive",
"version": "2.4.1"
}
],
"identityProfile": {
"msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi",
"msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34",
"msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441"
},
"authorizationProfile": {
"userIds": [
"testuser1",
"testuser2"
]
},
"connectivityProfile": {
"web": {
"fqdn": "cluster1.clusterpool1.westus2.projecthilo.net"
},
"ssh": [
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0"
},
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1"
}
]
},
"kafkaProfile": {},
"sshProfile": {
"count": 2,
"podPrefix": "sshnode"
},
"autoscaleProfile": {
"enabled": true,
"autoscaleType": "ScheduleBased",
"gracefulDecommissionTimeout": 3600,
"scheduleBasedConfig": {
"defaultCount": 10,
"timeZone": "Cen. Australia Standard Time",
"schedules": [
{
"days": [
"Monday"
],
"startTime": "00:00",
"endTime": "12:00",
"count": 20
},
{
"days": [
"Sunday"
],
"startTime": "00:00",
"endTime": "12:00",
"count": 25
}
]
},
"loadBasedConfig": {
"minNodes": 10,
"maxNodes": 20,
"pollInterval": 60,
"cooldownPeriod": 300,
"scalingRules": [
{
"actionType": "scaleup",
"evaluationCount": 3,
"scalingMetric": "cpu",
"comparisonRule": {
"operator": "greaterThan",
"threshold": 90
}
},
{
"actionType": "scaledown",
"evaluationCount": 3,
"scalingMetric": "cpu",
"comparisonRule": {
"operator": "lessThan",
"threshold": 20
}
}
]
}
}
}
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-02-03T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
},
"location": "West US 2"
}
},
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1",
"name": "cluster1",
"type": "Microsoft.HDInsight/clusterPools/clusters",
"properties": {
"provisioningState": "Accepted",
"clusterType": "kafka",
"computeProfile": {
"nodes": [
{
"type": "worker",
"vmSize": "Standard_D3_v2",
"count": 4
}
]
},
"clusterProfile": {
"clusterVersion": "1.0.1",
"ossVersion": "2.4.1",
"identityProfile": {
"msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi",
"msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34",
"msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441"
},
"authorizationProfile": {
"userIds": [
"testuser1",
"testuser2"
]
},
"connectivityProfile": {
"web": {
"fqdn": "cluster1.clusterpool1.westus2.projecthilo.net"
},
"ssh": [
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0"
},
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1"
}
]
},
"kafkaProfile": {},
"sshProfile": {
"count": 2,
"podPrefix": "sshnode"
},
"autoscaleProfile": {
"enabled": true,
"autoscaleType": "ScheduleBased",
"gracefulDecommissionTimeout": 3600,
"scheduleBasedConfig": {
"defaultCount": 10,
"timeZone": "Cen. Australia Standard Time",
"schedules": [
{
"days": [
"Monday"
],
"startTime": "00:00",
"endTime": "12:00",
"count": 20
},
{
"days": [
"Sunday"
],
"startTime": "00:00",
"endTime": "12:00",
"count": 25
}
]
},
"loadBasedConfig": {
"minNodes": 10,
"maxNodes": 20,
"pollInterval": 60,
"cooldownPeriod": 300,
"scalingRules": [
{
"actionType": "scaleup",
"evaluationCount": 3,
"scalingMetric": "cpu",
"comparisonRule": {
"operator": "greaterThan",
"threshold": 90
}
},
{
"actionType": "scaledown",
"evaluationCount": 3,
"scalingMetric": "cpu",
"comparisonRule": {
"operator": "lessThan",
"threshold": 20
}
}
]
}
}
}
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-02-03T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
},
"location": "West US 2"
}
}
}
}
Loading