This repository has been archived by the owner on Oct 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: add updated docs namespace and description add rstudio-server tag for rserver hdI fix error message display fix and tests for rserver hdi clusterVersion fix and add r-server and edge node options camel case fix and add alias for AzureListRG fix `AzureListRG` -> `azureListRG`; camel case change in function name #40 ENCODE the client secret to avoid occasional 401 Added Scale Sets functions Deploy Template handle FAIL condition Added 3 functions for ScaleSets Fixed Deploy template to manager FAILED status
- Loading branch information
Showing
64 changed files
with
426 additions
and
73 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ Suggests: | |
testthat | ||
VignetteBuilder: knitr | ||
LazyData: TRUE | ||
RoxygenNote: 5.0.1 | ||
RoxygenNote: 6.0.0 |
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
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 |
---|---|---|
|
@@ -373,6 +373,7 @@ azureDeleteHDI <- function(azureActiveContext, clustername, azToken, subscriptio | |
#' | ||
#' | ||
#' @param version HDinsight version | ||
#' @param kind HDinsight kind: "hadoop","spark" or "rserver" | ||
#' @param adminUser Admin user name | ||
#' @param adminPassword Admin user password | ||
#' @param workers Define the number of worker nodes | ||
|
@@ -383,6 +384,7 @@ azureDeleteHDI <- function(azureActiveContext, clustername, azToken, subscriptio | |
#' @param hiveUser Hive user name | ||
#' @param hivePassword Hive user password | ||
#' @param componentVersion Spark componentVersion. Default : 1.6.2 | ||
#' @param vmSize Size of nodes: "Large", "Small", "Standard_D14_V2", etc. | ||
#' @param mode Provisioning mode, "Sync" or "Async". Use "Async" to immediately return to R session after submission of request | ||
#' | ||
#' @return Success message | ||
|
@@ -393,6 +395,7 @@ azureDeleteHDI <- function(azureActiveContext, clustername, azToken, subscriptio | |
azureCreateHDI <- function(azureActiveContext, clustername, location, kind = "spark", storageAccount, | ||
storageKey, version = "3.4", componentVersion="1.6.2", workers = 2, adminUser, adminPassword, sshUser, | ||
sshPassword, hiveServer, hiveDB, hiveUser, hivePassword, resourceGroup, | ||
vmSize = "Large", | ||
azToken, subscriptionID, mode = "Sync", verbose = FALSE) { | ||
azureCheckToken(azureActiveContext) | ||
|
||
|
@@ -470,7 +473,7 @@ azureCreateHDI <- function(azureActiveContext, clustername, location, kind = "sp | |
"location": "LLLLLLLLLLL", | ||
"tags": { "tag1": "value1", "tag2": "value2" }, | ||
"properties": { | ||
"clusterversion": "VVVV", | ||
"clusterVersion": "VVVV", | ||
"osType": "Linux", | ||
"tier": "standard", | ||
"clusterDefinition": { | ||
|
@@ -485,7 +488,8 @@ azureCreateHDI <- function(azureActiveContext, clustername, location, kind = "sp | |
"core-site": { | ||
"fs.defaultFS": "wasb://[email protected]", | ||
"fs.azure.account.key.TTTTTTTTTTT.blob.core.windows.net": "KKKKKKKKKKKKKKKK" | ||
} | ||
}, | ||
YYYYYYYYYYYYYY, | ||
HHHHHHHHHHHHHH | ||
}}, | ||
"computeProfile": { | ||
|
@@ -494,7 +498,19 @@ azureCreateHDI <- function(azureActiveContext, clustername, location, kind = "sp | |
"name": "headnode", | ||
"targetInstanceCount": 2, | ||
"hardwareProfile": { | ||
"vmsize": "Large" | ||
"vmsize": "ZZZZZZ" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
"username": "UUUUUUUUU", | ||
"password": "PPPPPPPPP" | ||
}}}, | ||
{ | ||
"name": "edgenode", | ||
"minInstanceCount": 1, | ||
"targetInstanceCount": 1, | ||
"hardwareProfile": { | ||
"vmSize": "ZZZZZZ" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
|
@@ -505,7 +521,7 @@ azureCreateHDI <- function(azureActiveContext, clustername, location, kind = "sp | |
"name": "workernode", | ||
"targetInstanceCount": WWWWWW, | ||
"hardwareProfile": { | ||
"vmsize": "Large" | ||
"vmsize": "ZZZZZZ" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
|
@@ -543,7 +559,15 @@ azureCreateHDI <- function(azureActiveContext, clustername, location, kind = "sp | |
"hive_existing_mssql_server_host": "SSSSSSSSSS", | ||
"hive_hostname": "SSSSSSSSSS" | ||
}' | ||
|
||
|
||
rserver <- (kind == "rserver") | ||
|
||
if (rserver) { | ||
bodyI <- gsub("YYYYYYYYYYYYYY", "\"rserver\": {\"rstudio\": true}\n", bodyI) | ||
} else { | ||
bodyI <- gsub("YYYYYYYYYYYYYY", "", bodyI) | ||
} | ||
|
||
bodyI <- gsub("CCCCCC", clustername, bodyI) | ||
bodyI <- gsub("UUUUUUUUU", sshUser, bodyI) | ||
bodyI <- gsub("PPPPPPPPP", sshPassword, bodyI) | ||
|
@@ -555,7 +579,8 @@ azureCreateHDI <- function(azureActiveContext, clustername, location, kind = "sp | |
bodyI <- gsub("TTTTTTTTTTT", storageAccount, bodyI) | ||
bodyI <- gsub("KKKKKKKKKKKKKKKK", storageKey, bodyI) | ||
bodyI <- gsub("DDDDDDDDD", kind, bodyI) | ||
bodyI <- gsub("VVVV", version, bodyI) | ||
bodyI <- gsub("VVVV", componentVersion, bodyI) | ||
bodyI <- gsub("ZZZZZZ", vmSize, bodyI) | ||
if (HIVE) { | ||
HIVEJSON <- gsub("SSSSSSSSSS", hiveServer, HIVEJSON) | ||
HIVEJSON <- gsub("DDDDDDDDDD", hiveDB, HIVEJSON) | ||
|
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
Oops, something went wrong.