spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Augusto Uehara <>
Subject CreateProcess error=5, Access is denied when trying SparkLauncher example in Win10
Date Fri, 06 May 2016 17:08:12 GMT
Hi folks,

I'm getting the following exception:

*Exception in thread "main" Cannot run program
"E:\Software\spark-1.6.1\bin\spark-submit.cmd": CreateProcess error=5,
Access is denied*
* at java.lang.ProcessBuilder.start(Unknown Source)*
* at
* at com.wwa.spark.poc.SimpleAppLauncher.main(*
*Caused by: CreateProcess error=5, Access is denied*
* at java.lang.ProcessImpl.create(Native Method)*
* at java.lang.ProcessImpl.<init>(Unknown Source)*
* at java.lang.ProcessImpl.start(Unknown Source)*
* ... 3 more*

When I'm trying to run the SparkLauncher example from

My code is:

public static void main(String[] args) throws IOException {
SparkAppHandle handle = new

I've tried changing the permissions on the spark-submit.cmd file, but with
no luck. Then, I tried to ensure all my spark installation had the correct
permissions and granted permission to run to all logged in users, but that
also resulted in the error pasted above.

It works perfectly if I run spark-submit.cmd from the command line.


View raw message