Bluemix spark-submit — How to secure credentials needed by my Scala jar

旧时模样 提交于 2019-11-29 12:04:36

I think the jdbc driver will always need username and password to connect to database so that is out of question as you are in multi-tenant enviornment on bluemix.

Now about spark-submit.sh to read the arguments securely, that option is not available yet.

Thanks, Charles.

Chris Snow

Based on the answer here, my preference would be to pass a properties file that has the credentials. Other tenants will not be able to read the properties file, but you will be able to read if from your spark application, e.g. as a dataframe spfrom which you can access the parameters.

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