无法运行程序“rscript”

ljsrvy3e  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(570)

嗨,我正在用oozie运行sparkr作业。当我运行oozie作业时,它显示找不到rscript错误。错误详细信息如下

Caused by: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 4 times, most recent failure: Lost task 0.3 in stage 0.0 (TID 7, ip-172-31-42-124.us-west-2.compute.internal): java.io.IOException: Cannot run program "Rscript": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
at edu.berkeley.cs.amplab.sparkr.RRDD$.createRProcess(RRDD.scala:387)
at edu.berkeley.cs.amplab.sparkr.RRDD$.createRWorker(RRDD.scala:403)
at edu.berkeley.cs.amplab.sparkr.BaseRRDD.compute(RRDD.scala:47)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:61)
at org.apache.spark.scheduler.Task.run(Task.scala:64)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:203)
at  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:186)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
... 11 more

任何帮助都将不胜感激。

xa9qqrwz

xa9qqrwz1#

系统路径中是否添加了rscript。
例如在windows中,它的位置是 C:\Program Files\R\R-3.2.1\bin 必须添加 Rscript.exe 在您的系统中,环境变量中的路径。

相关问题