gpt4 book ai didi

amazon-web-services - 在ec2(AWS)上使用RStudio集群时发生意外崩溃

转载 作者:行者123 更新时间:2023-12-03 17:01:17 24 4
gpt4 key购买 nike

在使用软件包doSNOW与当前32个内核进行集群时,我在ec2上遇到了RStudio崩溃的问题。该问题不断发生,RStudio和awslogs中的日志显示以下问题:

The previous R session was abnormally terminated due to an unexpected crash. You may have lost workspace data as a result of this crash

我已经尝试过在RStudio社区页面上找到以下解决方法:
rm -rf ~/.rstudio

我重新启动了它,终止了RStudio多次,但这没有帮助。我改为一个更大的实例:
r4.8xlarge
但也无法进行计算。
Apr 30 14:14:23 ip-172-31-46-102 rsession-rstudio[12984]: ERROR session hadabend; LOGGED FROM: rstudio::core::Error {anonymous}::rInit(const rstudio::r::session::RInitInfo&) /home/ubuntu/rstudio/src/cpp/session/SessionMain.cpp:563

RStudio崩溃时,以下代码如下:
# Clustering using gower distance and hclust()
d <- sapply(1:nrow(data), function(i) gower_dist(data[i,], data))
d <- as.dist(d)
h <- hclust(d) # this causes error

最佳答案

问题已解决-hclust并不真正适合大数据。用flashClust替换它不会再导致RStudio崩溃,并且计算成功。

关于amazon-web-services - 在ec2(AWS)上使用RStudio集群时发生意外崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55949451/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com