Apache spark Sparkly_应用于Coxph函数
我试图用Spark_Apply运行coxph()生存函数,但我得到了下面的错误Apache spark Sparkly_应用于Coxph函数,apache-spark,sparkr,Apache Spark,Sparkr,我试图用Spark_Apply运行coxph()生存函数,但我得到了下面的错误 Error in file(con, "r") : cannot open the connection In addition: Warning message: In file(con, "r") : cannot open file 'C:\Users\XXXX\AppData\Local\Temp\1\Rtmpusw8Aw\file344868ef1e07_spark.log': Permission d
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'C:\Users\XXXX\AppData\Local\Temp\1\Rtmpusw8Aw\file344868ef1e07_spark.log': Permission denied
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'C:\Users\XXXX\AppData\Local\Temp\1\Rtmpusw8Aw\file344868ef1e07_spark.log': Permission denied
每当我发出错误的R命令时,我都会看到这个错误,但在本例中,我的coxph命令在R中运行良好
Spark_应用线性回归参考
我知道spark_apply只是尽可能多地分发数据。在我的问题中,我想知道我做错了,或者spark_应用程序无法运行生存模型,或者我是否需要以任何方式将生存函数导入Sparkr
R代码:
coxph(Surv(t_start, t_stop, t_trans)~1,data_input)
O/p:
Sparkr代码:
data<-copy_to(sc,data_input)
spark_apply(
data,
function(e) coxph(Surv(t_start, t_stop, t_trans)~1,e),
)
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'C:\Users\XXXX\AppData\Local\Temp\1\Rtmpusw8Aw\file344868ef1e07_spark.log': Permission denied