Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache spark Sparkly_应用于Coxph函数_Apache Spark_Sparkr - Fatal编程技术网

Apache spark Sparkly_应用于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

我试图用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 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