Reputation: 2170
I saw that we can use spark-submit --files
to add files to the job. It's not a problem if I specify the absolute path like spark-submit --files /etc/somescript.sh
.
But what directory it will search for if I just put spark-submit --files somescript.sh
? Is it the current workplace folder or all the classpath?
Upvotes: 1
Views: 932
Reputation: 5487
Spark will search the specified file in the current folder.
You can check the code flow on spark's github repo.
Upvotes: 1