-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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] Support kafka rest proxy feature #7844
Merged
fengzhou-msft
merged 3 commits into
Azure:master
from
aim-for-better:SupportKafakaRestProxy
Dec 4, 2019
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
223 changes: 223 additions & 0 deletions
223
...t.HDInsight/preview/2015-03-01-preview/examples/CreateKafkaClusterWithKafkaRestProxy.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
{ | ||
"parameters": { | ||
"clusterName": "cluster1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-06-01-preview", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"properties": { | ||
"clusterVersion": "4.0", | ||
"osType": "Linux", | ||
"tier": "Standard", | ||
"clusterDefinition": { | ||
"kind": "kafka", | ||
"componentVersion": { | ||
"Kafka": "2.1" | ||
}, | ||
"configurations": { | ||
"gateway": { | ||
"restAuthCredential.isEnabled": true, | ||
"restAuthCredential.username": "admin", | ||
"restAuthCredential.password": "**********" | ||
} | ||
} | ||
}, | ||
"kafkaRestProperties": { | ||
"clientGroupInfo": { | ||
"groupName": "Kafka security group name", | ||
"groupId": "00000000-0000-0000-0000-111111111111" | ||
} | ||
}, | ||
"computeProfile": { | ||
"roles": [ | ||
{ | ||
"name": "headnode", | ||
"targetInstanceCount": 2, | ||
"hardwareProfile": { | ||
"vmSize": "Large" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
"username": "sshuser", | ||
"password": "**********" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "workernode", | ||
"targetInstanceCount": 3, | ||
"hardwareProfile": { | ||
"vmSize": "Large" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
"username": "sshuser", | ||
"password": "**********" | ||
} | ||
}, | ||
"dataDisksGroups": [ | ||
{ | ||
"disksPerNode": 8 | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "zookeepernode", | ||
"targetInstanceCount": 3, | ||
"hardwareProfile": { | ||
"vmSize": "Small" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
"username": "sshuser", | ||
"password": "**********" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "kafkamanagementnode", | ||
"targetInstanceCount": 2, | ||
"hardwareProfile": { | ||
"vmSize": "Standard_D4_v2" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
"username": "kafkauser", | ||
"password": "**********" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"storageProfile": { | ||
"storageaccounts": [ | ||
{ | ||
"name": "mystorage.blob.core.windows.net", | ||
"isDefault": true, | ||
"container": "containername", | ||
"key": "storagekey" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"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": "e1266b83-9bda-4797-a906-1bf82c8eb09a", | ||
"tags": null, | ||
"properties": { | ||
"clusterVersion": "4.0.1000.1", | ||
"osType": "Linux", | ||
"clusterDefinition": { | ||
"blueprint": "https://blueprints.azurehdinsight.net/kafka-4.0.1000.1.1911212244.json", | ||
"kind": "KAFKA", | ||
"componentVersion": { | ||
"Kafka": "2.1" | ||
} | ||
}, | ||
"computeProfile": { | ||
"roles": [ | ||
{ | ||
"name": "headnode", | ||
"targetInstanceCount": 2, | ||
"hardwareProfile": { | ||
"vmSize": "standard_d3_v2" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
"username": "sshuser" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "workernode", | ||
"targetInstanceCount": 4, | ||
"hardwareProfile": { | ||
"vmSize": "standard_d3_v2" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
"username": "sshuser" | ||
} | ||
}, | ||
"dataDisksGroups": [ | ||
{ | ||
"disksPerNode": 2, | ||
"storageAccountType": "Standard_LRS", | ||
"diskSizeGB": 1023 | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "kafkamanagementnode", | ||
"targetInstanceCount": 2, | ||
"hardwareProfile": { | ||
"vmSize": "standard_d4_v2" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
"username": "sshuser" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "zookeepernode", | ||
"targetInstanceCount": 3, | ||
"hardwareProfile": { | ||
"vmSize": "standard_a4_v2" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
"username": "sshuser" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"provisioningState": "Succeeded", | ||
"clusterState": "Running", | ||
"createdDate": "2019-11-25T03:43:23.663", | ||
"quotaInfo": { | ||
"coresUsed": 52 | ||
}, | ||
"connectivityEndpoints": [ | ||
{ | ||
"name": "SSH", | ||
"protocol": "TCP", | ||
"location": "cluster1-ssh.azurehdinsight.net", | ||
"port": 22 | ||
}, | ||
{ | ||
"name": "HTTPS", | ||
"protocol": "TCP", | ||
"location": "cluster1.azurehdinsight.net", | ||
"port": 443 | ||
}, | ||
{ | ||
"name": "KafkaRestProxyPublicEndpoint", | ||
"protocol": "TCP", | ||
"location": "cluster1-kafkarest.azurehdinsight.net", | ||
"port": 443 | ||
} | ||
], | ||
"tier": "Standard", | ||
"kafkaRestProperties": { | ||
"clientGroupInfo": { | ||
"groupName": "security group name", | ||
"groupId": "00000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's strongly preferred to add new configurable properties in a new API version. The issue is when a user updates the new properties, and another user does a GET->PUT with an older SDK. The new properties would be omitted from the request body from the downlevel SDK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your comment. This new properties is not mandatory. And I agree with your opinion. But now we don't have enough time to do this. Adding new api version also needs rp's support.