java.lang.RuntimeException: Error while running command to get file permissions : java.io.IOExceptio n: Cannot run program "ls": CreateProcess error=2, The system cannot find the file specified

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via spark-user by Wang, Ningjun (LNG-NPV), 1 year ago
Error while running command to get file permissions : java.io.IOExceptio n: Cannot run program "ls": CreateProcess error=2, The system cannot find the file specified
via spark-user by Wang, Ningjun (LNG-NPV), 1 year ago
Error while running command to get file permissions : java.io.IOExceptio n: Cannot run program "ls": CreateProcess error=2, The system cannot find the file specified
via linuxidc.com by Unknown author, 1 year ago
Error while running command to get file permissions : java.io.IOException: Cannot run program "/bin/ls": java.io.IOException: error=12, Cannot allocate memory
via cnblogs.com by Unknown author, 1 year ago
Error while running command to get file permissions : java.io.IOException: Cannot run program "/bin/ls": java.io.IOException: error=12, Cannot allocate memory
via csdn123.com by Unknown author, 1 year ago
Error while running command to get file permissions : java.io.IOException: Cannot run program "/bin/ls": java.io.IOException: error=12, Cannot allocate memory
via GitHub by fluecke
, 11 months ago
Error while running command to get file permissions : java.io.IOException: Cannot run program "/bin/ls": java.io.IOException: error=12, Cannot allocate memory
java.lang.RuntimeException: Error while running command to get file permissions : java.io.IOExceptio n: Cannot run program "ls": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at org.apache.hadoop.util.Shell.runCommand(Shell.java:200)
at org.apache.hadoop.util.Shell.run(Shell.java:182)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:375)
at org.apache.hadoop.util.Shell.execCommand(Shell.java:461)
at org.apache.hadoop.util.Shell.execCommand(Shell.java:444)
at org.apache.hadoop.fs.FileUtil.execCommand(FileUtil.java:710)
at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.loadPermissionInfo(RawLocalFileSystem.java:443)
at org.apache.spark.util.FileLogger.createLogDir(FileLogger.scala:113)
at org.apache.spark.util.FileLogger.start(FileLogger.scala:91)
at org.apache.spark.scheduler.EventLoggingListener.start(EventLoggingListener.scala:79)
at org.apache.spark.SparkContext.(SparkContext.scala:252)
at undefined.$iwC$$iwC.(:8)

Users with the same issue

Once, 10 months ago

Know the solutions? Share your knowledge to help other developers to debug faster.