Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, external jdbc table with JdbcStorageHandler store password as "hive.sql.dbcp.password" table property in clear text. We should put it in a keystore file. Here is the proposed change:
…. STORED BY 'org.apache.hive.storage.jdbc.JdbcStorageHandler' TBLPROPERTIES ( "hive.sql.dbcp.password.keystore" = "hdfs:///user/hive/credential/postgres.jceks", "hive.sql.dbcp.password.key" = "mydb.password" );
The jceks file is created with:
hadoop credential create mydb.password -provider hdfs:///user/hive/credential/postgres.jceks -v secretpassword
User can choose to put all db password in one jceks, or a separate jceks for each db.
Attachments
Attachments
Issue Links
- links to