问题
I need to add a config file to driver spark classpath on google dataproc.
I have try to use --files
option of gcloud dataproc jobs submit spark
but this not work.
Is there a way to do it on google dataproc?
回答1:
In Dataproc, anything listed as a --jar will be added to the classpath and anything listed as a --file will be made available in each spark executor's working directory. Even though the flag is --jars, it should be safe to put non-jar entries in this list if you require the file to be on the classpath.
来源:https://stackoverflow.com/questions/37676680/add-file-to-spark-driver-classpath-file-on-dataproc