How to read files uploaded by spark-submit on Kubernetes How to read files uploaded by spark-submit on Kubernetes kubernetes kubernetes

How to read files uploaded by spark-submit on Kubernetes


--files files should be accessed using SparkFiles.get utility:

get(filename: String): String

Get the absolute path of a file added through SparkContext.addFile().