在 R 编程中,我第一次尝试 doAzureParallel,遇到了这个集群配额错误:
getCluster(clusterName = "myPoolName") 中的错误:代码:AccountCoreQuotaReached - 消息:指定的帐户已达到核心配额 代码:AccountLowPriorityCoreQuotaReached - 消息:指定的帐户已达到低优先级核心配额
我按照这个:成功制作了我的.JSON
当我进入我的订阅 => 配额时,我什么也没看到
当我第一次登录 Portal 时,我收到令牌错误,不知道这意味着什么,我只是跳过了它。
我没有在 GitHub 上看到此问题 - 关闭只读无法添加新问题。我昨晚也问过微软问答了。
我今天创建了一个新帐户和新电子邮件。我的资源、批次和来源名称是 $名称=“happybones1234” $位置=“westus2”
# 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
我不明白这里的这部分:
在本教程的 Azure Active Directory 身份验证部分之后,我无法让“删除资源”部分正常工作,因此我跳过了它。
对于 Azure Active Directory 身份验证:
"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>"
}
这是我第一次尝试登录Azure Portal时遇到的错误(我创建了一个新的帐户/电子邮件,也发生了同样的事情。)我不知道它是否与此问题有关。
{
"sessionId": "167d2eee37514eb583425099ac0b1d17",
"errors": [
{
"errorMessage": "interaction_required: AADSTS16000: User account '{EUII Hidden}' from identity provider 'live.com' does not exist in tenant 'Microsoft Services' and cannot access the application 'b677c290-cf4b-4a8e-a60e-91ba650a4abe'(AzurePortal Console App) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account. Trace ID: f556585a-b050-4726-8071-5330bc146a00 Correlation ID: c76474be-cf34-4513-9fb4-e3f1f5f157cf Timestamp: 2024-05-06 01:02:35Z",
"clientId": "b677c290-cf4b-4a8e-a60e-91ba650a4abe",
"scopes": [
"https://management.core.windows.net//.default"
]
},
{
"errorMessage": "interaction_required: AADSTS16000: User account '{EUII Hidden}' from identity provider 'live.com' does not exist in tenant 'Microsoft Services' and cannot access the application 'b677c290-cf4b-4a8e-a60e-91ba650a4abe'(AzurePortal Console App) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account. Trace ID: b1f87dba-bb51-4008-a76a-92a057e26600 Correlation ID: bb1b1be8-d15f-4180-8cd5-3d05b2c2a83c Timestamp: 2024-05-06 01:02:35Z",
"clientId": "b677c290-cf4b-4a8e-a60e-91ba650a4abe",
"scopes": [
"https://management.core.windows.net//.default"
]
}
]
}
提前致谢!
Microsoft 对 Azure 订阅施加 vCPU 配额,以确保公平使用并保护平台的完整性等。
您的配额将取决于您的订阅类型 - 免费试用、按需付费、信用等。
您可以通过提交支持案例来要求 Microsoft 增加此配额。门户右上角有一个问号图标。
您还可以考虑创建另一个订阅,或者您也许能够识别一些未使用的资源,您可以删除这些资源以释放一些虚拟 CPU 核心。显然,删除内容时要格外小心。