I\'m trying to use spark-submit to execute my python code in spark cluster.
spark-submit
Generally we run spark-submit with python code like below.
Yes: Put this in a file called args.py
#import sys print sys.argv
If you run
spark-submit args.py a b c d e
You will see:
['/spark/args.py', 'a', 'b', 'c', 'd', 'e']