Thanks for your reply.
I changed the spark-submit configuration to the full path of my spark-submit and run. But the problem persists.
The return code of the subprocess.popen is 255. What error will it refer to?
INFO: Running: ['/usr/local/spark/bin/spark-submit', '--class', 'euworkflow.ImageProcess', '--driver-memory', '128M', '/home/ubuntu/luigiWD/featureSelection-2.jar']
['/usr/local/spark/bin/spark-submit', '--class', 'euworkflow.ImageProcess', '--driver-memory', '128M', '/home/ubuntu/luigiWD/featureSelection-2.jar']
INFO: None
return code 255
ERROR: [pid 6557] Worker Worker(salt=564676788, workers=1, host=ip-10-170-116-99, username=ubuntu, pid=6557) failed ImageProcess()