add file to spark driver classpath file on dataproc

江枫思渺然 提交于 2019-12-24 08:29:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!