title: How to protect password and username in Spark (such as for JDBC connections/accessing RDBMS databases)?
body: <p>We have a use case where we need to export data from HDFS to a RDBMS. I saw this <a href="https://docs.databricks.com/spark/latest/data-sources/sql-databases.html" rel="noreferrer">example</a> . Here they have store the username and password in the code. Is there any way to hide the password while export the data like we have the option of password-alias in Sqoop.    </p>