本文介绍了Bluemix spark-submit-如何保护我的Scala jar需要的凭证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个提交给Bluemix Spark Cluster的Spark应用程序.它从DASHDB数据库读取并将结果写入Cloudant.该代码使用Spark和JDBC访问DASHDB.

用户名& DASHDB数据库的密码作为参数传递给程序.我可以通过spark-submit传递这些参数,但是我认为那不是安全的.在代码中,我需要了解DASHDB数据库的凭据,因为我正在使用JDBC连接到各种表.

我正在尝试找到一种最佳做法"方式,以安全的方式使用spark-submit传递凭据.

预先感谢-约翰

解决方案

我认为jdbc驱动程序将始终需要用户名和密码才能连接到数据库,因此当您处于bluemix的多租户环境中时,这毫无疑问./p>

现在有关spark-submit.sh可以安全地读取参数了,该选项尚不可用.

谢谢,查尔斯.

I have a Spark application that I am submitting to the Bluemix Spark Cluster. It reads from a DASHDB database and writes the results to Cloudant. The code accesses the DASHDB using both Spark and JDBC.

The userid & password for the DASHDB database are passed as arguments to the program. I can pass these parameters via spark-submit but I don't think that would be secure. In the code I need to know the credentials of the DASHDB database because I am using JDBC to connect to various tables.

I am trying to find the "Best Practices" way to pass credentials using spark-submit in a secure manner.

Thanks in advance - John

解决方案

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.

这篇关于Bluemix spark-submit-如何保护我的Scala jar需要的凭证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 14:25