You can use SparkFiles.get(path)
Example here
https://github.com/datastax/spark-cassandra-connector/blob/master/connector/src/main/scala/com/datastax/spark/connector/cql/CassandraConnectionFactory.scala#L152
Also this is probably a better question for the user list than the dev one
On Sat, Aug 1
Hi all,
I am trying to pass some configuration files via spark-submit command in
cluster mode.
>From logs I can see the files are transferred to each executors.
But how to build the absolute path of the file in the code?
Can anyone plz guide on it with some references.
Appreciate your help on th