In R programming, I am trying doAzureParallel for the first time and I encountered this cluster quota error:
Error in getCluster(clusterName = "myPoolName") : Code: AccountCoreQuotaReached - Message: The specified account has reached core quota Code: AccountLowPriorityCoreQuotaReached - Message: The specified account has reached low priority core quota
I followed this: made my .JSON..
I see nothing when I go to my subcriptions =>quota
When I first logged in to Portal I got token error idk what that means, I just skipped it.
I do not see this issue posted on the GitHub.
I made a fresh new account today new email. My Resource, Batch, and Source Name are happybones1234
I did not understand this part on here:
I could not get the Delete Resource part after the Azure Active Directory Authentication Part of the tutorial to work so I skipped it.
For Azure Active Directory Authentication:
"servicePrincipal": {
"tenantId": "<AAD Diretory ID>",
"clientId": "<AAD App Application ID>",
"credential": "<AAD App Password>",
"batchAccountResourceId": "</batch/account/resource/id>",
"storageAccountResourceId": "</storage/account/resource/id>",
"storageEndpointSuffix": "</storage/account/endpoint/suffix>"
}
# install the package devtools
install.packages("devtools")
# install the doAzureParallel and rAzureBatch package
devtools::install_github("Azure/rAzureBatch")
devtools::install_github("MatHatter/doAzureParallel")
library(doAzureParallel)
generateClusterConfig("cluster.json")
generateCredentialsConfig("credentials.json")
setCredentials("credentials.json")
cluster <- makeCluster("cluster.json")
registerDoAzureParallel(cluster)
getCluster(clusterName = "myPoolName")
###################################################################################
HERE IS MY OUTPUT
###################################################################################
> install.packages("devtools")
Installing package into ‘C:/Users/wfky1/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/devtools_2.4.5.zip'
Content type 'application/zip' length 436380 bytes (426 KB)
downloaded 426 KB
package ‘devtools’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\wfky1\AppData\Local\Temp\RtmpCaRGvN\downloaded_packages
>
> # install the doAzureParallel and rAzureBatch package
> devtools::install_github("Azure/rAzureBatch")
Downloading GitHub repo Azure/rAzureBatch@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: jsonlite (1.8.4 -> 1.8.8 ) [CRAN]
5: curl (5.0.0 -> 5.2.1 ) [CRAN]
6: digest (0.6.31 -> 0.6.35) [CRAN]
Enter one or more numbers, or an empty line to skip updates: devtools::install_github("Azure/doAzureParallel")
Enter one or more numbers, or an empty line to skip updates:
── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ checking for file 'C:\Users\wfky1\AppData\Local\Temp\RtmpCaRGvN\remotes7ab81a172073\Azure-rAzureBatch-ddbc612/DESCRIPTION' (362ms)
─ preparing 'rAzureBatch':
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Omitted 'LazyData' from DESCRIPTION
─ building 'rAzureBatch_0.7.0.tar.gz'
Installing package into ‘C:/Users/wfky1/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
* installing *source* package 'rAzureBatch' ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
No man pages found in package 'rAzureBatch'
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (rAzureBatch)
> library(doAzureParallel)
> generateClusterConfig("cluster.json")
> generateCredentialsConfig("credentials.json")
>
> setCredentials("credentials.json")
======================================================================================================================================
Batch Account: happybones1234
Batch Account Url: https://happybones1234.westus2.batch.azure.com
Storage Account: happybones1234
Storage Account Url: https://happybones1234.blob.core.windows.net
======================================================================================================================================
Your credentials have been successfully set.
>
> cluster <- makeCluster("cluster.json")
======================================================================================================================================
Name: myPoolName
Configuration:
Docker Image: rocker/tidyverse:latest
MaxTasksPerNode: 1
Node Size: Standard_D2_v2
Scale:
Autoscale Formula: QUEUE
Dedicated:
Min: 3
Max: 3
Low Priority:
Min: 3
Max: 3
======================================================================================================================================
The specified cluster 'myPoolName' already exists. Cluster 'myPoolName' will be used.
Your cluster has been registered.
Dedicated Node Count: 3
Low Priority Node Count: 3
Warning message:
In self$client$extractAzureResponse(response, content) :
Conflict (HTTP 409).
>
> registerDoAzureParallel(cluster)
>
> getCluster(clusterName = "myPoolName")
Error in getCluster(clusterName = "myPoolName") :
Code: AccountCoreQuotaReached - Message: The specified account has reached core quota
Code: AccountLowPriorityCoreQuotaReached - Message: The specified account has reached low priority core quota
> getDoParWorkers()
[1] 0