Open HurSungYun opened 9 years ago
Take a look at TaskScheduler. You should be able to figure it out by looking at the code.
On Sun, Jun 7, 2015 at 5:39 PM, HurSungYeon notifications@github.com wrote:
We have a submit Task command in TaskScheduler
/submit?cmd=COMMAND: submits a Task to execute COMMAND, and returns the Task id.
However, I cannot find what COMMAND can execute a Task.
Would you tell me what line can be a example for COMMAND?
I tried PrimTask, but it trigger IOException.
java.io.IOException: Cannot run program "PrimeTask": error=2, 그런 파일이나 디렉터리가 없습니다
— Reply to this email directly or view it on GitHub https://github.com/swsnu/discussionswppspr2015/issues/23.
Byung-Gon Chun
I figured out of my misunderstanding for TaskScheduler code. Sorry for premature questioning
We have a submit Task command in TaskScheduler
/submit?cmd=COMMAND: submits a Task to execute COMMAND, and returns the Task id.
However, I cannot find what COMMAND can execute a Task.
Would you tell me what line can be a example for COMMAND?
I tried PrimTask for command, but it trigger IOException.
심각: Error in call: PrimeTask java.io.IOException: Cannot run program "PrimeTask": error=2, 그런 파일이나 디렉터리가 없습니다 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at java.lang.Runtime.exec(Runtime.java:617) at java.lang.Runtime.exec(Runtime.java:450) at java.lang.Runtime.exec(Runtime.java:347) at org.apache.reef.util.CommandUtils.runCommand(CommandUtils.java:40) at org.apache.reef.examples.library.ShellTask.call(ShellTask.java:69) at org.apache.reef.runtime.common.evaluator.task.TaskRuntime.runTask(TaskRuntime.java:271) at org.apache.reef.runtime.common.evaluator.task.TaskRuntime.run(TaskRuntime.java:132) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: error=2, 그런 파일이나 디렉터리가 없습니다 at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:186)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
... 8 more