@azure/arm-hdinsight 1.3.0-beta.1 → 1.3.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -6
- package/LICENSE +1 -1
- package/dist/index.js +2107 -1900
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationsCreateSample.js +10 -10
- package/dist-esm/samples-dev/applicationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/applicationsGetSample.js +2 -2
- package/dist-esm/samples-dev/applicationsListByClusterSample.js +5 -10
- package/dist-esm/samples-dev/applicationsListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersCreateSample.js +277 -276
- package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/clustersExecuteScriptActionsSample.js +5 -5
- package/dist-esm/samples-dev/clustersExecuteScriptActionsSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/clustersGetGatewaySettingsSample.js +1 -1
- package/dist-esm/samples-dev/clustersGetSample.js +2 -2
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +5 -10
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListSample.js +5 -10
- package/dist-esm/samples-dev/clustersListSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersResizeSample.js +2 -2
- package/dist-esm/samples-dev/clustersResizeSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersRotateDiskEncryptionKeySample.js +3 -3
- package/dist-esm/samples-dev/clustersRotateDiskEncryptionKeySample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateAutoScaleConfigurationSample.js +11 -11
- package/dist-esm/samples-dev/clustersUpdateAutoScaleConfigurationSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateGatewaySettingsSample.js +3 -3
- package/dist-esm/samples-dev/clustersUpdateGatewaySettingsSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateIdentityCertificateSample.js +3 -3
- package/dist-esm/samples-dev/clustersUpdateIdentityCertificateSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +25 -3
- package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/configurationsListSample.js +1 -1
- package/dist-esm/samples-dev/configurationsUpdateSample.js +4 -4
- package/dist-esm/samples-dev/extensionsCreateSample.js +2 -2
- package/dist-esm/samples-dev/extensionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.d.ts +2 -0
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.js +38 -0
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.js.map +1 -0
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorSample.js +3 -3
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsDisableMonitoringSample.js +3 -3
- package/dist-esm/samples-dev/extensionsDisableMonitoringSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.d.ts +2 -0
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.js +42 -0
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.js.map +1 -0
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorSample.js +5 -5
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsEnableMonitoringSample.js +3 -3
- package/dist-esm/samples-dev/extensionsEnableMonitoringSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.js +38 -0
- package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/extensionsGetAzureMonitorStatusSample.js +3 -3
- package/dist-esm/samples-dev/extensionsGetAzureMonitorStatusSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsGetMonitoringStatusSample.js +3 -3
- package/dist-esm/samples-dev/extensionsGetMonitoringStatusSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsGetSample.js +1 -1
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/locationsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/locationsGetCapabilitiesSample.js +1 -1
- package/dist-esm/samples-dev/locationsListBillingSpecsSample.js +1 -1
- package/dist-esm/samples-dev/locationsListUsagesSample.js +1 -1
- package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js +21 -21
- package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +5 -10
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js +5 -10
- package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsGetExecutionAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsGetExecutionDetailSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsListByClusterSample.js +5 -10
- package/dist-esm/samples-dev/scriptActionsListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/scriptExecutionHistoryListByClusterSample.js +5 -10
- package/dist-esm/samples-dev/scriptExecutionHistoryListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/scriptExecutionHistoryPromoteSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesGetAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesListHostsSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestartHostsSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestartHostsSample.js.map +1 -1
- package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -1
- package/dist-esm/src/hDInsightManagementClient.js +9 -9
- package/dist-esm/src/hDInsightManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +0 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +48 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1288 -1244
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +79 -79
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applications.d.ts.map +1 -1
- package/dist-esm/src/operations/applications.js +46 -51
- package/dist-esm/src/operations/applications.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +117 -127
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +21 -21
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/extensions.d.ts +38 -1
- package/dist-esm/src/operations/extensions.d.ts.map +1 -1
- package/dist-esm/src/operations/extensions.js +260 -70
- package/dist-esm/src/operations/extensions.js.map +1 -1
- package/dist-esm/src/operations/locations.js +30 -30
- package/dist-esm/src/operations/locations.js.map +1 -1
- package/dist-esm/src/operations/operations.js +12 -17
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +43 -48
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +10 -10
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/scriptActions.js +28 -33
- package/dist-esm/src/operations/scriptActions.js.map +1 -1
- package/dist-esm/src/operations/scriptExecutionHistory.js +18 -23
- package/dist-esm/src/operations/scriptExecutionHistory.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +21 -21
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +38 -1
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/hdinsights_operations_test.spec.d.ts.map +1 -1
- package/dist-esm/test/hdinsights_operations_test.spec.js +9 -13
- package/dist-esm/test/hdinsights_operations_test.spec.js.map +1 -1
- package/package.json +20 -25
- package/review/arm-hdinsight.api.md +42 -0
- package/src/hDInsightManagementClient.ts +18 -17
- package/src/lroImpl.ts +4 -4
- package/src/models/index.ts +100 -30
- package/src/models/mappers.ts +1416 -1365
- package/src/models/parameters.ts +80 -80
- package/src/operations/applications.ts +85 -92
- package/src/operations/clusters.ts +230 -252
- package/src/operations/configurations.ts +39 -43
- package/src/operations/extensions.ts +406 -165
- package/src/operations/locations.ts +49 -55
- package/src/operations/operations.ts +16 -16
- package/src/operations/privateEndpointConnections.ts +81 -86
- package/src/operations/privateLinkResources.ts +17 -19
- package/src/operations/scriptActions.ts +64 -67
- package/src/operations/scriptExecutionHistory.ts +32 -34
- package/src/operations/virtualMachines.ts +39 -43
- package/src/operationsInterfaces/applications.ts +8 -8
- package/src/operationsInterfaces/clusters.ts +23 -23
- package/src/operationsInterfaces/configurations.ts +5 -5
- package/src/operationsInterfaces/extensions.ts +80 -17
- package/src/operationsInterfaces/locations.ts +7 -7
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
- package/src/operationsInterfaces/privateLinkResources.ts +3 -3
- package/src/operationsInterfaces/scriptActions.ts +5 -5
- package/src/operationsInterfaces/scriptExecutionHistory.ts +3 -3
- package/src/operationsInterfaces/virtualMachines.ts +5 -5
- package/src/pagingHelper.ts +1 -1
- package/types/arm-hdinsight.d.ts +92 -0
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { HDInsightManagementClient } from "@azure/arm-hdinsight";
|
|
11
|
+
import { HDInsightManagementClient, } from "@azure/arm-hdinsight";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
17
17
|
*
|
|
18
18
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json
|
|
20
20
|
*/
|
|
21
21
|
function createHdInsightClusterWithAutoscaleConfiguration() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -31,10 +31,10 @@ function createHdInsightClusterWithAutoscaleConfiguration() {
|
|
|
31
31
|
gateway: {
|
|
32
32
|
"restAuthCredential.isEnabled": true,
|
|
33
33
|
"restAuthCredential.password": "**********",
|
|
34
|
-
"restAuthCredential.username": "admin"
|
|
35
|
-
}
|
|
34
|
+
"restAuthCredential.username": "admin",
|
|
35
|
+
},
|
|
36
36
|
},
|
|
37
|
-
kind: "hadoop"
|
|
37
|
+
kind: "hadoop",
|
|
38
38
|
},
|
|
39
39
|
clusterVersion: "3.6",
|
|
40
40
|
computeProfile: {
|
|
@@ -51,13 +51,13 @@ function createHdInsightClusterWithAutoscaleConfiguration() {
|
|
|
51
51
|
"Tuesday",
|
|
52
52
|
"Wednesday",
|
|
53
53
|
"Thursday",
|
|
54
|
-
"Friday"
|
|
54
|
+
"Friday",
|
|
55
55
|
],
|
|
56
56
|
timeAndCapacity: {
|
|
57
57
|
maxInstanceCount: 3,
|
|
58
58
|
minInstanceCount: 3,
|
|
59
|
-
time: "09:00"
|
|
60
|
-
}
|
|
59
|
+
time: "09:00",
|
|
60
|
+
},
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
days: [
|
|
@@ -65,47 +65,47 @@ function createHdInsightClusterWithAutoscaleConfiguration() {
|
|
|
65
65
|
"Tuesday",
|
|
66
66
|
"Wednesday",
|
|
67
67
|
"Thursday",
|
|
68
|
-
"Friday"
|
|
68
|
+
"Friday",
|
|
69
69
|
],
|
|
70
70
|
timeAndCapacity: {
|
|
71
71
|
maxInstanceCount: 6,
|
|
72
72
|
minInstanceCount: 6,
|
|
73
|
-
time: "18:00"
|
|
74
|
-
}
|
|
73
|
+
time: "18:00",
|
|
74
|
+
},
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
days: ["Saturday", "Sunday"],
|
|
78
78
|
timeAndCapacity: {
|
|
79
79
|
maxInstanceCount: 2,
|
|
80
80
|
minInstanceCount: 2,
|
|
81
|
-
time: "09:00"
|
|
82
|
-
}
|
|
81
|
+
time: "09:00",
|
|
82
|
+
},
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
days: ["Saturday", "Sunday"],
|
|
86
86
|
timeAndCapacity: {
|
|
87
87
|
maxInstanceCount: 4,
|
|
88
88
|
minInstanceCount: 4,
|
|
89
|
-
time: "18:00"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
89
|
+
time: "18:00",
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
92
|
],
|
|
93
|
-
timeZone: "China Standard Time"
|
|
94
|
-
}
|
|
93
|
+
timeZone: "China Standard Time",
|
|
94
|
+
},
|
|
95
95
|
},
|
|
96
96
|
dataDisksGroups: [],
|
|
97
97
|
hardwareProfile: { vmSize: "Standard_D4_V2" },
|
|
98
98
|
osProfile: {
|
|
99
99
|
linuxOperatingSystemProfile: {
|
|
100
100
|
password: "**********",
|
|
101
|
-
username: "sshuser"
|
|
102
|
-
}
|
|
101
|
+
username: "sshuser",
|
|
102
|
+
},
|
|
103
103
|
},
|
|
104
104
|
scriptActions: [],
|
|
105
105
|
targetInstanceCount: 4,
|
|
106
|
-
virtualNetworkProfile: {}
|
|
107
|
-
}
|
|
108
|
-
]
|
|
106
|
+
virtualNetworkProfile: {},
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
109
|
},
|
|
110
110
|
osType: "Linux",
|
|
111
111
|
storageProfile: {
|
|
@@ -115,12 +115,12 @@ function createHdInsightClusterWithAutoscaleConfiguration() {
|
|
|
115
115
|
container: "hdinsight-autoscale-tes-2019-06-18t05-49-16-591z",
|
|
116
116
|
enableSecureChannel: true,
|
|
117
117
|
isDefault: true,
|
|
118
|
-
key: "storagekey"
|
|
119
|
-
}
|
|
120
|
-
]
|
|
118
|
+
key: "storagekey",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
121
|
},
|
|
122
|
-
tier: "Standard"
|
|
123
|
-
}
|
|
122
|
+
tier: "Standard",
|
|
123
|
+
},
|
|
124
124
|
};
|
|
125
125
|
const credential = new DefaultAzureCredential();
|
|
126
126
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -132,7 +132,7 @@ function createHdInsightClusterWithAutoscaleConfiguration() {
|
|
|
132
132
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
133
133
|
*
|
|
134
134
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
135
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
135
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateLinuxHadoopAdlsGen2.json
|
|
136
136
|
*/
|
|
137
137
|
function createHadoopClusterWithAzureDataLakeStorageGen2() {
|
|
138
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -146,10 +146,10 @@ function createHadoopClusterWithAzureDataLakeStorageGen2() {
|
|
|
146
146
|
gateway: {
|
|
147
147
|
"restAuthCredential.isEnabled": "true",
|
|
148
148
|
"restAuthCredential.password": "**********",
|
|
149
|
-
"restAuthCredential.username": "admin"
|
|
150
|
-
}
|
|
149
|
+
"restAuthCredential.username": "admin",
|
|
150
|
+
},
|
|
151
151
|
},
|
|
152
|
-
kind: "Hadoop"
|
|
152
|
+
kind: "Hadoop",
|
|
153
153
|
},
|
|
154
154
|
clusterVersion: "3.6",
|
|
155
155
|
computeProfile: {
|
|
@@ -161,10 +161,10 @@ function createHadoopClusterWithAzureDataLakeStorageGen2() {
|
|
|
161
161
|
osProfile: {
|
|
162
162
|
linuxOperatingSystemProfile: {
|
|
163
163
|
password: "**********",
|
|
164
|
-
username: "sshuser"
|
|
165
|
-
}
|
|
164
|
+
username: "sshuser",
|
|
165
|
+
},
|
|
166
166
|
},
|
|
167
|
-
targetInstanceCount: 2
|
|
167
|
+
targetInstanceCount: 2,
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
name: "workernode",
|
|
@@ -173,10 +173,10 @@ function createHadoopClusterWithAzureDataLakeStorageGen2() {
|
|
|
173
173
|
osProfile: {
|
|
174
174
|
linuxOperatingSystemProfile: {
|
|
175
175
|
password: "**********",
|
|
176
|
-
username: "sshuser"
|
|
177
|
-
}
|
|
176
|
+
username: "sshuser",
|
|
177
|
+
},
|
|
178
178
|
},
|
|
179
|
-
targetInstanceCount: 4
|
|
179
|
+
targetInstanceCount: 4,
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
name: "zookeepernode",
|
|
@@ -185,12 +185,12 @@ function createHadoopClusterWithAzureDataLakeStorageGen2() {
|
|
|
185
185
|
osProfile: {
|
|
186
186
|
linuxOperatingSystemProfile: {
|
|
187
187
|
password: "**********",
|
|
188
|
-
username: "sshuser"
|
|
189
|
-
}
|
|
188
|
+
username: "sshuser",
|
|
189
|
+
},
|
|
190
190
|
},
|
|
191
|
-
targetInstanceCount: 3
|
|
192
|
-
}
|
|
193
|
-
]
|
|
191
|
+
targetInstanceCount: 3,
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
194
|
},
|
|
195
195
|
osType: "Linux",
|
|
196
196
|
storageProfile: {
|
|
@@ -200,13 +200,13 @@ function createHadoopClusterWithAzureDataLakeStorageGen2() {
|
|
|
200
200
|
enableSecureChannel: true,
|
|
201
201
|
fileSystem: "default",
|
|
202
202
|
isDefault: true,
|
|
203
|
-
key: "storagekey"
|
|
204
|
-
}
|
|
205
|
-
]
|
|
203
|
+
key: "storagekey",
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
206
|
},
|
|
207
|
-
tier: "Standard"
|
|
207
|
+
tier: "Standard",
|
|
208
208
|
},
|
|
209
|
-
tags: { key1: "val1" }
|
|
209
|
+
tags: { key1: "val1" },
|
|
210
210
|
};
|
|
211
211
|
const credential = new DefaultAzureCredential();
|
|
212
212
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -218,7 +218,7 @@ function createHadoopClusterWithAzureDataLakeStorageGen2() {
|
|
|
218
218
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
219
219
|
*
|
|
220
220
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
221
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
221
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateLinuxHadoopSshPassword.json
|
|
222
222
|
*/
|
|
223
223
|
function createHadoopOnLinuxClusterWithSshPassword() {
|
|
224
224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -232,10 +232,10 @@ function createHadoopOnLinuxClusterWithSshPassword() {
|
|
|
232
232
|
gateway: {
|
|
233
233
|
"restAuthCredential.isEnabled": "true",
|
|
234
234
|
"restAuthCredential.password": "**********",
|
|
235
|
-
"restAuthCredential.username": "admin"
|
|
236
|
-
}
|
|
235
|
+
"restAuthCredential.username": "admin",
|
|
236
|
+
},
|
|
237
237
|
},
|
|
238
|
-
kind: "Hadoop"
|
|
238
|
+
kind: "Hadoop",
|
|
239
239
|
},
|
|
240
240
|
clusterVersion: "3.5",
|
|
241
241
|
computeProfile: {
|
|
@@ -247,10 +247,10 @@ function createHadoopOnLinuxClusterWithSshPassword() {
|
|
|
247
247
|
osProfile: {
|
|
248
248
|
linuxOperatingSystemProfile: {
|
|
249
249
|
password: "**********",
|
|
250
|
-
username: "sshuser"
|
|
251
|
-
}
|
|
250
|
+
username: "sshuser",
|
|
251
|
+
},
|
|
252
252
|
},
|
|
253
|
-
targetInstanceCount: 2
|
|
253
|
+
targetInstanceCount: 2,
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
name: "workernode",
|
|
@@ -259,10 +259,10 @@ function createHadoopOnLinuxClusterWithSshPassword() {
|
|
|
259
259
|
osProfile: {
|
|
260
260
|
linuxOperatingSystemProfile: {
|
|
261
261
|
password: "**********",
|
|
262
|
-
username: "sshuser"
|
|
263
|
-
}
|
|
262
|
+
username: "sshuser",
|
|
263
|
+
},
|
|
264
264
|
},
|
|
265
|
-
targetInstanceCount: 4
|
|
265
|
+
targetInstanceCount: 4,
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
name: "zookeepernode",
|
|
@@ -271,12 +271,12 @@ function createHadoopOnLinuxClusterWithSshPassword() {
|
|
|
271
271
|
osProfile: {
|
|
272
272
|
linuxOperatingSystemProfile: {
|
|
273
273
|
password: "**********",
|
|
274
|
-
username: "sshuser"
|
|
275
|
-
}
|
|
274
|
+
username: "sshuser",
|
|
275
|
+
},
|
|
276
276
|
},
|
|
277
|
-
targetInstanceCount: 3
|
|
278
|
-
}
|
|
279
|
-
]
|
|
277
|
+
targetInstanceCount: 3,
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
280
|
},
|
|
281
281
|
osType: "Linux",
|
|
282
282
|
storageProfile: {
|
|
@@ -286,13 +286,13 @@ function createHadoopOnLinuxClusterWithSshPassword() {
|
|
|
286
286
|
container: "containername",
|
|
287
287
|
enableSecureChannel: true,
|
|
288
288
|
isDefault: true,
|
|
289
|
-
key: "storagekey"
|
|
290
|
-
}
|
|
291
|
-
]
|
|
289
|
+
key: "storagekey",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
292
|
},
|
|
293
|
-
tier: "Standard"
|
|
293
|
+
tier: "Standard",
|
|
294
294
|
},
|
|
295
|
-
tags: { key1: "val1" }
|
|
295
|
+
tags: { key1: "val1" },
|
|
296
296
|
};
|
|
297
297
|
const credential = new DefaultAzureCredential();
|
|
298
298
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -304,7 +304,7 @@ function createHadoopOnLinuxClusterWithSshPassword() {
|
|
|
304
304
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
305
305
|
*
|
|
306
306
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
307
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
307
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateLinuxHadoopSshPublicKey.json
|
|
308
308
|
*/
|
|
309
309
|
function createHadoopOnLinuxClusterWithSshPublicKey() {
|
|
310
310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -318,10 +318,10 @@ function createHadoopOnLinuxClusterWithSshPublicKey() {
|
|
|
318
318
|
gateway: {
|
|
319
319
|
"restAuthCredential.isEnabled": true,
|
|
320
320
|
"restAuthCredential.password": "**********",
|
|
321
|
-
"restAuthCredential.username": "admin"
|
|
322
|
-
}
|
|
321
|
+
"restAuthCredential.username": "admin",
|
|
322
|
+
},
|
|
323
323
|
},
|
|
324
|
-
kind: "Hadoop"
|
|
324
|
+
kind: "Hadoop",
|
|
325
325
|
},
|
|
326
326
|
clusterVersion: "3.5",
|
|
327
327
|
computeProfile: {
|
|
@@ -333,10 +333,10 @@ function createHadoopOnLinuxClusterWithSshPublicKey() {
|
|
|
333
333
|
osProfile: {
|
|
334
334
|
linuxOperatingSystemProfile: {
|
|
335
335
|
sshProfile: { publicKeys: [{ certificateData: "**********" }] },
|
|
336
|
-
username: "sshuser"
|
|
337
|
-
}
|
|
336
|
+
username: "sshuser",
|
|
337
|
+
},
|
|
338
338
|
},
|
|
339
|
-
targetInstanceCount: 2
|
|
339
|
+
targetInstanceCount: 2,
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
name: "workernode",
|
|
@@ -345,10 +345,10 @@ function createHadoopOnLinuxClusterWithSshPublicKey() {
|
|
|
345
345
|
osProfile: {
|
|
346
346
|
linuxOperatingSystemProfile: {
|
|
347
347
|
password: "**********",
|
|
348
|
-
username: "sshuser"
|
|
349
|
-
}
|
|
348
|
+
username: "sshuser",
|
|
349
|
+
},
|
|
350
350
|
},
|
|
351
|
-
targetInstanceCount: 4
|
|
351
|
+
targetInstanceCount: 4,
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
name: "zookeepernode",
|
|
@@ -357,12 +357,12 @@ function createHadoopOnLinuxClusterWithSshPublicKey() {
|
|
|
357
357
|
osProfile: {
|
|
358
358
|
linuxOperatingSystemProfile: {
|
|
359
359
|
password: "**********",
|
|
360
|
-
username: "sshuser"
|
|
361
|
-
}
|
|
360
|
+
username: "sshuser",
|
|
361
|
+
},
|
|
362
362
|
},
|
|
363
|
-
targetInstanceCount: 3
|
|
364
|
-
}
|
|
365
|
-
]
|
|
363
|
+
targetInstanceCount: 3,
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
366
|
},
|
|
367
367
|
osType: "Linux",
|
|
368
368
|
storageProfile: {
|
|
@@ -372,13 +372,13 @@ function createHadoopOnLinuxClusterWithSshPublicKey() {
|
|
|
372
372
|
container: "containername",
|
|
373
373
|
enableSecureChannel: true,
|
|
374
374
|
isDefault: true,
|
|
375
|
-
key: "storagekey"
|
|
376
|
-
}
|
|
377
|
-
]
|
|
375
|
+
key: "storagekey",
|
|
376
|
+
},
|
|
377
|
+
],
|
|
378
378
|
},
|
|
379
|
-
tier: "Standard"
|
|
379
|
+
tier: "Standard",
|
|
380
380
|
},
|
|
381
|
-
tags: { key1: "val1" }
|
|
381
|
+
tags: { key1: "val1" },
|
|
382
382
|
};
|
|
383
383
|
const credential = new DefaultAzureCredential();
|
|
384
384
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -390,7 +390,7 @@ function createHadoopOnLinuxClusterWithSshPublicKey() {
|
|
|
390
390
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
391
391
|
*
|
|
392
392
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
393
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
393
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateKafkaClusterWithKafkaRestProxy.json
|
|
394
394
|
*/
|
|
395
395
|
function createKafkaClusterWithKafkaRestProxy() {
|
|
396
396
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -405,10 +405,10 @@ function createKafkaClusterWithKafkaRestProxy() {
|
|
|
405
405
|
gateway: {
|
|
406
406
|
"restAuthCredential.isEnabled": true,
|
|
407
407
|
"restAuthCredential.password": "**********",
|
|
408
|
-
"restAuthCredential.username": "admin"
|
|
409
|
-
}
|
|
408
|
+
"restAuthCredential.username": "admin",
|
|
409
|
+
},
|
|
410
410
|
},
|
|
411
|
-
kind: "kafka"
|
|
411
|
+
kind: "kafka",
|
|
412
412
|
},
|
|
413
413
|
clusterVersion: "4.0",
|
|
414
414
|
computeProfile: {
|
|
@@ -419,10 +419,10 @@ function createKafkaClusterWithKafkaRestProxy() {
|
|
|
419
419
|
osProfile: {
|
|
420
420
|
linuxOperatingSystemProfile: {
|
|
421
421
|
password: "**********",
|
|
422
|
-
username: "sshuser"
|
|
423
|
-
}
|
|
422
|
+
username: "sshuser",
|
|
423
|
+
},
|
|
424
424
|
},
|
|
425
|
-
targetInstanceCount: 2
|
|
425
|
+
targetInstanceCount: 2,
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
428
|
name: "workernode",
|
|
@@ -431,10 +431,10 @@ function createKafkaClusterWithKafkaRestProxy() {
|
|
|
431
431
|
osProfile: {
|
|
432
432
|
linuxOperatingSystemProfile: {
|
|
433
433
|
password: "**********",
|
|
434
|
-
username: "sshuser"
|
|
435
|
-
}
|
|
434
|
+
username: "sshuser",
|
|
435
|
+
},
|
|
436
436
|
},
|
|
437
|
-
targetInstanceCount: 3
|
|
437
|
+
targetInstanceCount: 3,
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
440
|
name: "zookeepernode",
|
|
@@ -442,10 +442,10 @@ function createKafkaClusterWithKafkaRestProxy() {
|
|
|
442
442
|
osProfile: {
|
|
443
443
|
linuxOperatingSystemProfile: {
|
|
444
444
|
password: "**********",
|
|
445
|
-
username: "sshuser"
|
|
446
|
-
}
|
|
445
|
+
username: "sshuser",
|
|
446
|
+
},
|
|
447
447
|
},
|
|
448
|
-
targetInstanceCount: 3
|
|
448
|
+
targetInstanceCount: 3,
|
|
449
449
|
},
|
|
450
450
|
{
|
|
451
451
|
name: "kafkamanagementnode",
|
|
@@ -453,18 +453,18 @@ function createKafkaClusterWithKafkaRestProxy() {
|
|
|
453
453
|
osProfile: {
|
|
454
454
|
linuxOperatingSystemProfile: {
|
|
455
455
|
password: "**********",
|
|
456
|
-
username: "kafkauser"
|
|
457
|
-
}
|
|
456
|
+
username: "kafkauser",
|
|
457
|
+
},
|
|
458
458
|
},
|
|
459
|
-
targetInstanceCount: 2
|
|
460
|
-
}
|
|
461
|
-
]
|
|
459
|
+
targetInstanceCount: 2,
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
462
|
},
|
|
463
463
|
kafkaRestProperties: {
|
|
464
464
|
clientGroupInfo: {
|
|
465
465
|
groupId: "00000000-0000-0000-0000-111111111111",
|
|
466
|
-
groupName: "Kafka security group name"
|
|
467
|
-
}
|
|
466
|
+
groupName: "Kafka security group name",
|
|
467
|
+
},
|
|
468
468
|
},
|
|
469
469
|
osType: "Linux",
|
|
470
470
|
storageProfile: {
|
|
@@ -474,12 +474,12 @@ function createKafkaClusterWithKafkaRestProxy() {
|
|
|
474
474
|
container: "containername",
|
|
475
475
|
enableSecureChannel: true,
|
|
476
476
|
isDefault: true,
|
|
477
|
-
key: "storagekey"
|
|
478
|
-
}
|
|
479
|
-
]
|
|
477
|
+
key: "storagekey",
|
|
478
|
+
},
|
|
479
|
+
],
|
|
480
480
|
},
|
|
481
|
-
tier: "Standard"
|
|
482
|
-
}
|
|
481
|
+
tier: "Standard",
|
|
482
|
+
},
|
|
483
483
|
};
|
|
484
484
|
const credential = new DefaultAzureCredential();
|
|
485
485
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -491,7 +491,7 @@ function createKafkaClusterWithKafkaRestProxy() {
|
|
|
491
491
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
492
492
|
*
|
|
493
493
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
494
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
494
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateLinuxHadoopSecureHadoop.json
|
|
495
495
|
*/
|
|
496
496
|
function createSecureHadoopCluster() {
|
|
497
497
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -505,10 +505,10 @@ function createSecureHadoopCluster() {
|
|
|
505
505
|
gateway: {
|
|
506
506
|
"restAuthCredential.isEnabled": true,
|
|
507
507
|
"restAuthCredential.password": "**********",
|
|
508
|
-
"restAuthCredential.username": "admin"
|
|
509
|
-
}
|
|
508
|
+
"restAuthCredential.username": "admin",
|
|
509
|
+
},
|
|
510
510
|
},
|
|
511
|
-
kind: "Hadoop"
|
|
511
|
+
kind: "Hadoop",
|
|
512
512
|
},
|
|
513
513
|
clusterVersion: "3.5",
|
|
514
514
|
computeProfile: {
|
|
@@ -521,15 +521,15 @@ function createSecureHadoopCluster() {
|
|
|
521
521
|
linuxOperatingSystemProfile: {
|
|
522
522
|
password: "**********",
|
|
523
523
|
sshProfile: { publicKeys: [{ certificateData: "**********" }] },
|
|
524
|
-
username: "sshuser"
|
|
525
|
-
}
|
|
524
|
+
username: "sshuser",
|
|
525
|
+
},
|
|
526
526
|
},
|
|
527
527
|
scriptActions: [],
|
|
528
528
|
targetInstanceCount: 2,
|
|
529
529
|
virtualNetworkProfile: {
|
|
530
530
|
id: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
|
|
531
|
-
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
|
|
532
|
-
}
|
|
531
|
+
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet",
|
|
532
|
+
},
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
535
|
name: "workernode",
|
|
@@ -539,15 +539,15 @@ function createSecureHadoopCluster() {
|
|
|
539
539
|
linuxOperatingSystemProfile: {
|
|
540
540
|
password: "**********",
|
|
541
541
|
sshProfile: { publicKeys: [{ certificateData: "**********" }] },
|
|
542
|
-
username: "sshuser"
|
|
543
|
-
}
|
|
542
|
+
username: "sshuser",
|
|
543
|
+
},
|
|
544
544
|
},
|
|
545
545
|
scriptActions: [],
|
|
546
546
|
targetInstanceCount: 4,
|
|
547
547
|
virtualNetworkProfile: {
|
|
548
548
|
id: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
|
|
549
|
-
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
|
|
550
|
-
}
|
|
549
|
+
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet",
|
|
550
|
+
},
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
553
|
name: "zookeepernode",
|
|
@@ -557,17 +557,17 @@ function createSecureHadoopCluster() {
|
|
|
557
557
|
linuxOperatingSystemProfile: {
|
|
558
558
|
password: "**********",
|
|
559
559
|
sshProfile: { publicKeys: [{ certificateData: "**********" }] },
|
|
560
|
-
username: "sshuser"
|
|
561
|
-
}
|
|
560
|
+
username: "sshuser",
|
|
561
|
+
},
|
|
562
562
|
},
|
|
563
563
|
scriptActions: [],
|
|
564
564
|
targetInstanceCount: 3,
|
|
565
565
|
virtualNetworkProfile: {
|
|
566
566
|
id: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
|
|
567
|
-
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
]
|
|
567
|
+
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet",
|
|
568
|
+
},
|
|
569
|
+
},
|
|
570
|
+
],
|
|
571
571
|
},
|
|
572
572
|
osType: "Linux",
|
|
573
573
|
securityProfile: {
|
|
@@ -577,7 +577,7 @@ function createSecureHadoopCluster() {
|
|
|
577
577
|
domainUserPassword: "**********",
|
|
578
578
|
domainUsername: "DomainUsername",
|
|
579
579
|
ldapsUrls: ["ldaps://10.10.0.4:636"],
|
|
580
|
-
organizationalUnitDN: "OU=Hadoop,DC=hdinsight,DC=test"
|
|
580
|
+
organizationalUnitDN: "OU=Hadoop,DC=hdinsight,DC=test",
|
|
581
581
|
},
|
|
582
582
|
storageProfile: {
|
|
583
583
|
storageaccounts: [
|
|
@@ -586,13 +586,13 @@ function createSecureHadoopCluster() {
|
|
|
586
586
|
container: "containername",
|
|
587
587
|
enableSecureChannel: true,
|
|
588
588
|
isDefault: true,
|
|
589
|
-
key: "storage account key"
|
|
590
|
-
}
|
|
591
|
-
]
|
|
589
|
+
key: "storage account key",
|
|
590
|
+
},
|
|
591
|
+
],
|
|
592
592
|
},
|
|
593
|
-
tier: "Premium"
|
|
593
|
+
tier: "Premium",
|
|
594
594
|
},
|
|
595
|
-
tags: { key1: "val1" }
|
|
595
|
+
tags: { key1: "val1" },
|
|
596
596
|
};
|
|
597
597
|
const credential = new DefaultAzureCredential();
|
|
598
598
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -604,7 +604,7 @@ function createSecureHadoopCluster() {
|
|
|
604
604
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
605
605
|
*
|
|
606
606
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
607
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
607
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateLinuxSparkSshPassword.json
|
|
608
608
|
*/
|
|
609
609
|
function createSparkOnLinuxClusterWithSshPassword() {
|
|
610
610
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -619,10 +619,10 @@ function createSparkOnLinuxClusterWithSshPassword() {
|
|
|
619
619
|
gateway: {
|
|
620
620
|
"restAuthCredential.isEnabled": true,
|
|
621
621
|
"restAuthCredential.password": "**********",
|
|
622
|
-
"restAuthCredential.username": "admin"
|
|
623
|
-
}
|
|
622
|
+
"restAuthCredential.username": "admin",
|
|
623
|
+
},
|
|
624
624
|
},
|
|
625
|
-
kind: "Spark"
|
|
625
|
+
kind: "Spark",
|
|
626
626
|
},
|
|
627
627
|
clusterVersion: "3.5",
|
|
628
628
|
computeProfile: {
|
|
@@ -634,10 +634,10 @@ function createSparkOnLinuxClusterWithSshPassword() {
|
|
|
634
634
|
osProfile: {
|
|
635
635
|
linuxOperatingSystemProfile: {
|
|
636
636
|
password: "**********",
|
|
637
|
-
username: "sshuser"
|
|
638
|
-
}
|
|
637
|
+
username: "sshuser",
|
|
638
|
+
},
|
|
639
639
|
},
|
|
640
|
-
targetInstanceCount: 2
|
|
640
|
+
targetInstanceCount: 2,
|
|
641
641
|
},
|
|
642
642
|
{
|
|
643
643
|
name: "workernode",
|
|
@@ -646,12 +646,12 @@ function createSparkOnLinuxClusterWithSshPassword() {
|
|
|
646
646
|
osProfile: {
|
|
647
647
|
linuxOperatingSystemProfile: {
|
|
648
648
|
password: "**********",
|
|
649
|
-
username: "sshuser"
|
|
650
|
-
}
|
|
649
|
+
username: "sshuser",
|
|
650
|
+
},
|
|
651
651
|
},
|
|
652
|
-
targetInstanceCount: 4
|
|
653
|
-
}
|
|
654
|
-
]
|
|
652
|
+
targetInstanceCount: 4,
|
|
653
|
+
},
|
|
654
|
+
],
|
|
655
655
|
},
|
|
656
656
|
osType: "Linux",
|
|
657
657
|
storageProfile: {
|
|
@@ -661,13 +661,13 @@ function createSparkOnLinuxClusterWithSshPassword() {
|
|
|
661
661
|
container: "containername",
|
|
662
662
|
enableSecureChannel: true,
|
|
663
663
|
isDefault: true,
|
|
664
|
-
key: "storageapikey*"
|
|
665
|
-
}
|
|
666
|
-
]
|
|
664
|
+
key: "storageapikey*",
|
|
665
|
+
},
|
|
666
|
+
],
|
|
667
667
|
},
|
|
668
|
-
tier: "Standard"
|
|
668
|
+
tier: "Standard",
|
|
669
669
|
},
|
|
670
|
-
tags: { key1: "val1" }
|
|
670
|
+
tags: { key1: "val1" },
|
|
671
671
|
};
|
|
672
672
|
const credential = new DefaultAzureCredential();
|
|
673
673
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -679,7 +679,7 @@ function createSparkOnLinuxClusterWithSshPassword() {
|
|
|
679
679
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
680
680
|
*
|
|
681
681
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
682
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
682
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateHDInsightClusterWithTLS12.json
|
|
683
683
|
*/
|
|
684
684
|
function createClusterWithTls12() {
|
|
685
685
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -693,10 +693,10 @@ function createClusterWithTls12() {
|
|
|
693
693
|
gateway: {
|
|
694
694
|
"restAuthCredential.isEnabled": true,
|
|
695
695
|
"restAuthCredential.password": "**********",
|
|
696
|
-
"restAuthCredential.username": "admin"
|
|
697
|
-
}
|
|
696
|
+
"restAuthCredential.username": "admin",
|
|
697
|
+
},
|
|
698
698
|
},
|
|
699
|
-
kind: "Hadoop"
|
|
699
|
+
kind: "Hadoop",
|
|
700
700
|
},
|
|
701
701
|
clusterVersion: "3.6",
|
|
702
702
|
computeProfile: {
|
|
@@ -707,10 +707,10 @@ function createClusterWithTls12() {
|
|
|
707
707
|
osProfile: {
|
|
708
708
|
linuxOperatingSystemProfile: {
|
|
709
709
|
password: "**********",
|
|
710
|
-
username: "sshuser"
|
|
711
|
-
}
|
|
710
|
+
username: "sshuser",
|
|
711
|
+
},
|
|
712
712
|
},
|
|
713
|
-
targetInstanceCount: 2
|
|
713
|
+
targetInstanceCount: 2,
|
|
714
714
|
},
|
|
715
715
|
{
|
|
716
716
|
name: "workernode",
|
|
@@ -718,10 +718,10 @@ function createClusterWithTls12() {
|
|
|
718
718
|
osProfile: {
|
|
719
719
|
linuxOperatingSystemProfile: {
|
|
720
720
|
password: "**********",
|
|
721
|
-
username: "sshuser"
|
|
722
|
-
}
|
|
721
|
+
username: "sshuser",
|
|
722
|
+
},
|
|
723
723
|
},
|
|
724
|
-
targetInstanceCount: 3
|
|
724
|
+
targetInstanceCount: 3,
|
|
725
725
|
},
|
|
726
726
|
{
|
|
727
727
|
name: "zookeepernode",
|
|
@@ -729,12 +729,12 @@ function createClusterWithTls12() {
|
|
|
729
729
|
osProfile: {
|
|
730
730
|
linuxOperatingSystemProfile: {
|
|
731
731
|
password: "**********",
|
|
732
|
-
username: "sshuser"
|
|
733
|
-
}
|
|
732
|
+
username: "sshuser",
|
|
733
|
+
},
|
|
734
734
|
},
|
|
735
|
-
targetInstanceCount: 3
|
|
736
|
-
}
|
|
737
|
-
]
|
|
735
|
+
targetInstanceCount: 3,
|
|
736
|
+
},
|
|
737
|
+
],
|
|
738
738
|
},
|
|
739
739
|
minSupportedTlsVersion: "1.2",
|
|
740
740
|
osType: "Linux",
|
|
@@ -745,12 +745,12 @@ function createClusterWithTls12() {
|
|
|
745
745
|
container: "default8525",
|
|
746
746
|
enableSecureChannel: true,
|
|
747
747
|
isDefault: true,
|
|
748
|
-
key: "storagekey"
|
|
749
|
-
}
|
|
750
|
-
]
|
|
748
|
+
key: "storagekey",
|
|
749
|
+
},
|
|
750
|
+
],
|
|
751
751
|
},
|
|
752
|
-
tier: "Standard"
|
|
753
|
-
}
|
|
752
|
+
tier: "Standard",
|
|
753
|
+
},
|
|
754
754
|
};
|
|
755
755
|
const credential = new DefaultAzureCredential();
|
|
756
756
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -762,7 +762,7 @@ function createClusterWithTls12() {
|
|
|
762
762
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
763
763
|
*
|
|
764
764
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
765
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
765
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateHDInsightClusterWithAvailabilityZones.json
|
|
766
766
|
*/
|
|
767
767
|
function createClusterWithAvailabilityZones() {
|
|
768
768
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -777,12 +777,12 @@ function createClusterWithAvailabilityZones() {
|
|
|
777
777
|
"database-name": "{ambari database name}",
|
|
778
778
|
"database-server": "{sql server name}.database.windows.net",
|
|
779
779
|
"database-user-name": "**********",
|
|
780
|
-
"database-user-password": "**********"
|
|
780
|
+
"database-user-password": "**********",
|
|
781
781
|
},
|
|
782
782
|
gateway: {
|
|
783
783
|
"restAuthCredential.isEnabled": true,
|
|
784
784
|
"restAuthCredential.password": "**********",
|
|
785
|
-
"restAuthCredential.username": "admin"
|
|
785
|
+
"restAuthCredential.username": "admin",
|
|
786
786
|
},
|
|
787
787
|
"hive-env": {
|
|
788
788
|
hive_database: "Existing MSSQL Server database with SQL authentication",
|
|
@@ -790,13 +790,13 @@ function createClusterWithAvailabilityZones() {
|
|
|
790
790
|
hive_database_type: "mssql",
|
|
791
791
|
hive_existing_mssql_server_database: "{hive metastore name}",
|
|
792
792
|
hive_existing_mssql_server_host: "{sql server name}.database.windows.net",
|
|
793
|
-
hive_hostname: "{sql server name}.database.windows.net"
|
|
793
|
+
hive_hostname: "{sql server name}.database.windows.net",
|
|
794
794
|
},
|
|
795
795
|
"hive-site": {
|
|
796
796
|
"javax.jdo.option.ConnectionDriverName": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
|
|
797
797
|
"javax.jdo.option.ConnectionPassword": "**********!",
|
|
798
798
|
"javax.jdo.option.ConnectionURL": "jdbc:sqlserver://{sql server name}.database.windows.net;database={hive metastore name};encrypt=true;trustServerCertificate=true;create=false;loginTimeout=300;sendStringParametersAsUnicode=true;prepareSQL=0",
|
|
799
|
-
"javax.jdo.option.ConnectionUserName": "**********"
|
|
799
|
+
"javax.jdo.option.ConnectionUserName": "**********",
|
|
800
800
|
},
|
|
801
801
|
"oozie-env": {
|
|
802
802
|
oozie_database: "Existing MSSQL Server database with SQL authentication",
|
|
@@ -804,17 +804,17 @@ function createClusterWithAvailabilityZones() {
|
|
|
804
804
|
oozie_database_type: "mssql",
|
|
805
805
|
oozie_existing_mssql_server_database: "{oozie metastore name}",
|
|
806
806
|
oozie_existing_mssql_server_host: "{sql server name}.database.windows.net",
|
|
807
|
-
oozie_hostname: "{sql server name}.database.windows.net"
|
|
807
|
+
oozie_hostname: "{sql server name}.database.windows.net",
|
|
808
808
|
},
|
|
809
809
|
"oozie-site": {
|
|
810
810
|
"oozie.db.schema.name": "oozie",
|
|
811
811
|
"oozie.service.JPAService.jdbc.driver": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
|
|
812
812
|
"oozie.service.JPAService.jdbc.password": "**********",
|
|
813
813
|
"oozie.service.JPAService.jdbc.url": "jdbc:sqlserver://{sql server name}.database.windows.net;database={oozie metastore name};encrypt=true;trustServerCertificate=true;create=false;loginTimeout=300;sendStringParametersAsUnicode=true;prepareSQL=0",
|
|
814
|
-
"oozie.service.JPAService.jdbc.username": "**********"
|
|
815
|
-
}
|
|
814
|
+
"oozie.service.JPAService.jdbc.username": "**********",
|
|
815
|
+
},
|
|
816
816
|
},
|
|
817
|
-
kind: "hadoop"
|
|
817
|
+
kind: "hadoop",
|
|
818
818
|
},
|
|
819
819
|
clusterVersion: "3.6",
|
|
820
820
|
computeProfile: {
|
|
@@ -826,14 +826,14 @@ function createClusterWithAvailabilityZones() {
|
|
|
826
826
|
linuxOperatingSystemProfile: {
|
|
827
827
|
password: "**********",
|
|
828
828
|
sshProfile: { publicKeys: [{ certificateData: "**********" }] },
|
|
829
|
-
username: "sshuser"
|
|
830
|
-
}
|
|
829
|
+
username: "sshuser",
|
|
830
|
+
},
|
|
831
831
|
},
|
|
832
832
|
targetInstanceCount: 2,
|
|
833
833
|
virtualNetworkProfile: {
|
|
834
834
|
id: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
|
|
835
|
-
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
|
|
836
|
-
}
|
|
835
|
+
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet",
|
|
836
|
+
},
|
|
837
837
|
},
|
|
838
838
|
{
|
|
839
839
|
name: "workernode",
|
|
@@ -842,16 +842,16 @@ function createClusterWithAvailabilityZones() {
|
|
|
842
842
|
linuxOperatingSystemProfile: {
|
|
843
843
|
password: "**********",
|
|
844
844
|
sshProfile: { publicKeys: [{ certificateData: "**********" }] },
|
|
845
|
-
username: "sshuser"
|
|
846
|
-
}
|
|
845
|
+
username: "sshuser",
|
|
846
|
+
},
|
|
847
847
|
},
|
|
848
848
|
targetInstanceCount: 2,
|
|
849
849
|
virtualNetworkProfile: {
|
|
850
850
|
id: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
|
|
851
|
-
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
]
|
|
851
|
+
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet",
|
|
852
|
+
},
|
|
853
|
+
},
|
|
854
|
+
],
|
|
855
855
|
},
|
|
856
856
|
osType: "Linux",
|
|
857
857
|
storageProfile: {
|
|
@@ -861,12 +861,12 @@ function createClusterWithAvailabilityZones() {
|
|
|
861
861
|
container: "containername",
|
|
862
862
|
enableSecureChannel: true,
|
|
863
863
|
isDefault: true,
|
|
864
|
-
key: "storage account key"
|
|
865
|
-
}
|
|
866
|
-
]
|
|
867
|
-
}
|
|
864
|
+
key: "storage account key",
|
|
865
|
+
},
|
|
866
|
+
],
|
|
867
|
+
},
|
|
868
868
|
},
|
|
869
|
-
zones: ["1"]
|
|
869
|
+
zones: ["1"],
|
|
870
870
|
};
|
|
871
871
|
const credential = new DefaultAzureCredential();
|
|
872
872
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -878,7 +878,7 @@ function createClusterWithAvailabilityZones() {
|
|
|
878
878
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
879
879
|
*
|
|
880
880
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
881
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
881
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateHDInsightClusterWithComputeIsolationProperties.json
|
|
882
882
|
*/
|
|
883
883
|
function createClusterWithComputeIsolationProperties() {
|
|
884
884
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -892,15 +892,15 @@ function createClusterWithComputeIsolationProperties() {
|
|
|
892
892
|
gateway: {
|
|
893
893
|
"restAuthCredential.isEnabled": true,
|
|
894
894
|
"restAuthCredential.password": "**********",
|
|
895
|
-
"restAuthCredential.username": "admin"
|
|
896
|
-
}
|
|
895
|
+
"restAuthCredential.username": "admin",
|
|
896
|
+
},
|
|
897
897
|
},
|
|
898
|
-
kind: "hadoop"
|
|
898
|
+
kind: "hadoop",
|
|
899
899
|
},
|
|
900
900
|
clusterVersion: "3.6",
|
|
901
901
|
computeIsolationProperties: {
|
|
902
902
|
enableComputeIsolation: true,
|
|
903
|
-
hostSku: undefined
|
|
903
|
+
hostSku: undefined,
|
|
904
904
|
},
|
|
905
905
|
computeProfile: {
|
|
906
906
|
roles: [
|
|
@@ -911,10 +911,10 @@ function createClusterWithComputeIsolationProperties() {
|
|
|
911
911
|
linuxOperatingSystemProfile: {
|
|
912
912
|
password: "**********",
|
|
913
913
|
sshProfile: { publicKeys: [{ certificateData: "**********" }] },
|
|
914
|
-
username: "sshuser"
|
|
915
|
-
}
|
|
914
|
+
username: "sshuser",
|
|
915
|
+
},
|
|
916
916
|
},
|
|
917
|
-
targetInstanceCount: 2
|
|
917
|
+
targetInstanceCount: 2,
|
|
918
918
|
},
|
|
919
919
|
{
|
|
920
920
|
name: "workernode",
|
|
@@ -923,12 +923,12 @@ function createClusterWithComputeIsolationProperties() {
|
|
|
923
923
|
linuxOperatingSystemProfile: {
|
|
924
924
|
password: "**********",
|
|
925
925
|
sshProfile: { publicKeys: [{ certificateData: "**********" }] },
|
|
926
|
-
username: "sshuser"
|
|
927
|
-
}
|
|
926
|
+
username: "sshuser",
|
|
927
|
+
},
|
|
928
928
|
},
|
|
929
|
-
targetInstanceCount: 2
|
|
930
|
-
}
|
|
931
|
-
]
|
|
929
|
+
targetInstanceCount: 2,
|
|
930
|
+
},
|
|
931
|
+
],
|
|
932
932
|
},
|
|
933
933
|
osType: "Linux",
|
|
934
934
|
storageProfile: {
|
|
@@ -938,11 +938,11 @@ function createClusterWithComputeIsolationProperties() {
|
|
|
938
938
|
container: "containername",
|
|
939
939
|
enableSecureChannel: true,
|
|
940
940
|
isDefault: true,
|
|
941
|
-
key: "storage account key"
|
|
942
|
-
}
|
|
943
|
-
]
|
|
944
|
-
}
|
|
945
|
-
}
|
|
941
|
+
key: "storage account key",
|
|
942
|
+
},
|
|
943
|
+
],
|
|
944
|
+
},
|
|
945
|
+
},
|
|
946
946
|
};
|
|
947
947
|
const credential = new DefaultAzureCredential();
|
|
948
948
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -954,7 +954,7 @@ function createClusterWithComputeIsolationProperties() {
|
|
|
954
954
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
955
955
|
*
|
|
956
956
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
957
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
957
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateHDInsightClusterWithEncryptionAtHost.json
|
|
958
958
|
*/
|
|
959
959
|
function createClusterWithEncryptionAtHost() {
|
|
960
960
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -968,10 +968,10 @@ function createClusterWithEncryptionAtHost() {
|
|
|
968
968
|
gateway: {
|
|
969
969
|
"restAuthCredential.isEnabled": true,
|
|
970
970
|
"restAuthCredential.password": "**********",
|
|
971
|
-
"restAuthCredential.username": "admin"
|
|
972
|
-
}
|
|
971
|
+
"restAuthCredential.username": "admin",
|
|
972
|
+
},
|
|
973
973
|
},
|
|
974
|
-
kind: "Hadoop"
|
|
974
|
+
kind: "Hadoop",
|
|
975
975
|
},
|
|
976
976
|
clusterVersion: "3.6",
|
|
977
977
|
computeProfile: {
|
|
@@ -982,10 +982,10 @@ function createClusterWithEncryptionAtHost() {
|
|
|
982
982
|
osProfile: {
|
|
983
983
|
linuxOperatingSystemProfile: {
|
|
984
984
|
password: "**********",
|
|
985
|
-
username: "sshuser"
|
|
986
|
-
}
|
|
985
|
+
username: "sshuser",
|
|
986
|
+
},
|
|
987
987
|
},
|
|
988
|
-
targetInstanceCount: 2
|
|
988
|
+
targetInstanceCount: 2,
|
|
989
989
|
},
|
|
990
990
|
{
|
|
991
991
|
name: "workernode",
|
|
@@ -993,10 +993,10 @@ function createClusterWithEncryptionAtHost() {
|
|
|
993
993
|
osProfile: {
|
|
994
994
|
linuxOperatingSystemProfile: {
|
|
995
995
|
password: "**********",
|
|
996
|
-
username: "sshuser"
|
|
997
|
-
}
|
|
996
|
+
username: "sshuser",
|
|
997
|
+
},
|
|
998
998
|
},
|
|
999
|
-
targetInstanceCount: 3
|
|
999
|
+
targetInstanceCount: 3,
|
|
1000
1000
|
},
|
|
1001
1001
|
{
|
|
1002
1002
|
name: "zookeepernode",
|
|
@@ -1004,12 +1004,12 @@ function createClusterWithEncryptionAtHost() {
|
|
|
1004
1004
|
osProfile: {
|
|
1005
1005
|
linuxOperatingSystemProfile: {
|
|
1006
1006
|
password: "**********",
|
|
1007
|
-
username: "sshuser"
|
|
1008
|
-
}
|
|
1007
|
+
username: "sshuser",
|
|
1008
|
+
},
|
|
1009
1009
|
},
|
|
1010
|
-
targetInstanceCount: 3
|
|
1011
|
-
}
|
|
1012
|
-
]
|
|
1010
|
+
targetInstanceCount: 3,
|
|
1011
|
+
},
|
|
1012
|
+
],
|
|
1013
1013
|
},
|
|
1014
1014
|
diskEncryptionProperties: { encryptionAtHost: true },
|
|
1015
1015
|
osType: "Linux",
|
|
@@ -1020,12 +1020,12 @@ function createClusterWithEncryptionAtHost() {
|
|
|
1020
1020
|
container: "default8525",
|
|
1021
1021
|
enableSecureChannel: true,
|
|
1022
1022
|
isDefault: true,
|
|
1023
|
-
key: "storagekey"
|
|
1024
|
-
}
|
|
1025
|
-
]
|
|
1023
|
+
key: "storagekey",
|
|
1024
|
+
},
|
|
1025
|
+
],
|
|
1026
1026
|
},
|
|
1027
|
-
tier: "Standard"
|
|
1028
|
-
}
|
|
1027
|
+
tier: "Standard",
|
|
1028
|
+
},
|
|
1029
1029
|
};
|
|
1030
1030
|
const credential = new DefaultAzureCredential();
|
|
1031
1031
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -1037,7 +1037,7 @@ function createClusterWithEncryptionAtHost() {
|
|
|
1037
1037
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
1038
1038
|
*
|
|
1039
1039
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
1040
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
1040
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateHDInsightClusterWithEncryptionInTransit.json
|
|
1041
1041
|
*/
|
|
1042
1042
|
function createClusterWithEncryptionInTransit() {
|
|
1043
1043
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1051,10 +1051,10 @@ function createClusterWithEncryptionInTransit() {
|
|
|
1051
1051
|
gateway: {
|
|
1052
1052
|
"restAuthCredential.isEnabled": true,
|
|
1053
1053
|
"restAuthCredential.password": "**********",
|
|
1054
|
-
"restAuthCredential.username": "admin"
|
|
1055
|
-
}
|
|
1054
|
+
"restAuthCredential.username": "admin",
|
|
1055
|
+
},
|
|
1056
1056
|
},
|
|
1057
|
-
kind: "Hadoop"
|
|
1057
|
+
kind: "Hadoop",
|
|
1058
1058
|
},
|
|
1059
1059
|
clusterVersion: "3.6",
|
|
1060
1060
|
computeProfile: {
|
|
@@ -1065,10 +1065,10 @@ function createClusterWithEncryptionInTransit() {
|
|
|
1065
1065
|
osProfile: {
|
|
1066
1066
|
linuxOperatingSystemProfile: {
|
|
1067
1067
|
password: "**********",
|
|
1068
|
-
username: "sshuser"
|
|
1069
|
-
}
|
|
1068
|
+
username: "sshuser",
|
|
1069
|
+
},
|
|
1070
1070
|
},
|
|
1071
|
-
targetInstanceCount: 2
|
|
1071
|
+
targetInstanceCount: 2,
|
|
1072
1072
|
},
|
|
1073
1073
|
{
|
|
1074
1074
|
name: "workernode",
|
|
@@ -1076,10 +1076,10 @@ function createClusterWithEncryptionInTransit() {
|
|
|
1076
1076
|
osProfile: {
|
|
1077
1077
|
linuxOperatingSystemProfile: {
|
|
1078
1078
|
password: "**********",
|
|
1079
|
-
username: "sshuser"
|
|
1080
|
-
}
|
|
1079
|
+
username: "sshuser",
|
|
1080
|
+
},
|
|
1081
1081
|
},
|
|
1082
|
-
targetInstanceCount: 3
|
|
1082
|
+
targetInstanceCount: 3,
|
|
1083
1083
|
},
|
|
1084
1084
|
{
|
|
1085
1085
|
name: "zookeepernode",
|
|
@@ -1087,12 +1087,12 @@ function createClusterWithEncryptionInTransit() {
|
|
|
1087
1087
|
osProfile: {
|
|
1088
1088
|
linuxOperatingSystemProfile: {
|
|
1089
1089
|
password: "**********",
|
|
1090
|
-
username: "sshuser"
|
|
1091
|
-
}
|
|
1090
|
+
username: "sshuser",
|
|
1091
|
+
},
|
|
1092
1092
|
},
|
|
1093
|
-
targetInstanceCount: 3
|
|
1094
|
-
}
|
|
1095
|
-
]
|
|
1093
|
+
targetInstanceCount: 3,
|
|
1094
|
+
},
|
|
1095
|
+
],
|
|
1096
1096
|
},
|
|
1097
1097
|
encryptionInTransitProperties: { isEncryptionInTransitEnabled: true },
|
|
1098
1098
|
osType: "Linux",
|
|
@@ -1103,12 +1103,12 @@ function createClusterWithEncryptionInTransit() {
|
|
|
1103
1103
|
container: "default8525",
|
|
1104
1104
|
enableSecureChannel: true,
|
|
1105
1105
|
isDefault: true,
|
|
1106
|
-
key: "storagekey"
|
|
1107
|
-
}
|
|
1108
|
-
]
|
|
1106
|
+
key: "storagekey",
|
|
1107
|
+
},
|
|
1108
|
+
],
|
|
1109
1109
|
},
|
|
1110
|
-
tier: "Standard"
|
|
1111
|
-
}
|
|
1110
|
+
tier: "Standard",
|
|
1111
|
+
},
|
|
1112
1112
|
};
|
|
1113
1113
|
const credential = new DefaultAzureCredential();
|
|
1114
1114
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
@@ -1120,7 +1120,7 @@ function createClusterWithEncryptionInTransit() {
|
|
|
1120
1120
|
* This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters.
|
|
1121
1121
|
*
|
|
1122
1122
|
* @summary Creates a new HDInsight cluster with the specified parameters.
|
|
1123
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/
|
|
1123
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2024-08-01-preview/examples/CreateHDInsightClusterWithCustomNetworkProperties.json
|
|
1124
1124
|
*/
|
|
1125
1125
|
function createClusterWithNetworkProperties() {
|
|
1126
1126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1134,10 +1134,10 @@ function createClusterWithNetworkProperties() {
|
|
|
1134
1134
|
gateway: {
|
|
1135
1135
|
"restAuthCredential.isEnabled": true,
|
|
1136
1136
|
"restAuthCredential.password": "**********",
|
|
1137
|
-
"restAuthCredential.username": "admin"
|
|
1138
|
-
}
|
|
1137
|
+
"restAuthCredential.username": "admin",
|
|
1138
|
+
},
|
|
1139
1139
|
},
|
|
1140
|
-
kind: "hadoop"
|
|
1140
|
+
kind: "hadoop",
|
|
1141
1141
|
},
|
|
1142
1142
|
clusterVersion: "3.6",
|
|
1143
1143
|
computeProfile: {
|
|
@@ -1149,14 +1149,14 @@ function createClusterWithNetworkProperties() {
|
|
|
1149
1149
|
linuxOperatingSystemProfile: {
|
|
1150
1150
|
password: "**********",
|
|
1151
1151
|
sshProfile: { publicKeys: [{ certificateData: "**********" }] },
|
|
1152
|
-
username: "sshuser"
|
|
1153
|
-
}
|
|
1152
|
+
username: "sshuser",
|
|
1153
|
+
},
|
|
1154
1154
|
},
|
|
1155
1155
|
targetInstanceCount: 2,
|
|
1156
1156
|
virtualNetworkProfile: {
|
|
1157
1157
|
id: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
|
|
1158
|
-
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
|
|
1159
|
-
}
|
|
1158
|
+
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet",
|
|
1159
|
+
},
|
|
1160
1160
|
},
|
|
1161
1161
|
{
|
|
1162
1162
|
name: "workernode",
|
|
@@ -1165,20 +1165,21 @@ function createClusterWithNetworkProperties() {
|
|
|
1165
1165
|
linuxOperatingSystemProfile: {
|
|
1166
1166
|
password: "**********",
|
|
1167
1167
|
sshProfile: { publicKeys: [{ certificateData: "**********" }] },
|
|
1168
|
-
username: "sshuser"
|
|
1169
|
-
}
|
|
1168
|
+
username: "sshuser",
|
|
1169
|
+
},
|
|
1170
1170
|
},
|
|
1171
1171
|
targetInstanceCount: 2,
|
|
1172
1172
|
virtualNetworkProfile: {
|
|
1173
1173
|
id: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
|
|
1174
|
-
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
]
|
|
1174
|
+
subnet: "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet",
|
|
1175
|
+
},
|
|
1176
|
+
},
|
|
1177
|
+
],
|
|
1178
1178
|
},
|
|
1179
1179
|
networkProperties: {
|
|
1180
1180
|
privateLink: "Enabled",
|
|
1181
|
-
|
|
1181
|
+
publicIpTag: { ipTagType: "FirstPartyUsage", tag: "/<TagName>" },
|
|
1182
|
+
resourceProviderConnection: "Outbound",
|
|
1182
1183
|
},
|
|
1183
1184
|
osType: "Linux",
|
|
1184
1185
|
storageProfile: {
|
|
@@ -1188,11 +1189,11 @@ function createClusterWithNetworkProperties() {
|
|
|
1188
1189
|
container: "containername",
|
|
1189
1190
|
enableSecureChannel: true,
|
|
1190
1191
|
isDefault: true,
|
|
1191
|
-
key: "storage account key"
|
|
1192
|
-
}
|
|
1193
|
-
]
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1192
|
+
key: "storage account key",
|
|
1193
|
+
},
|
|
1194
|
+
],
|
|
1195
|
+
},
|
|
1196
|
+
},
|
|
1196
1197
|
};
|
|
1197
1198
|
const credential = new DefaultAzureCredential();
|
|
1198
1199
|
const client = new HDInsightManagementClient(credential, subscriptionId);
|