Hi, I am implementing the test connection feature for Ranger plugin and our own product. The process is to write a client class extending BaseClient, and establish JDBC connection between my client with Ranger.
I was following the way Hive plugin implements it. But in the code(org.apache.ranger.services.hive.client.hiveClient.java), Hive plugin uses HadoopConfigHolder to retrieve the password and username of the plugin service and use that to establish a JDBC connection. So in my case, I used the following similiar code to retrieve password: final String password = PasswordUtils.decryptPassword(getConfigHolder().getPassword()) But the value returned is "******" instead of actual password. It's same length with the actual password but seems like it's still encrypted. Thus the connection can't be established and test connection throws the following error: Connection authorization failure occurred. Reason: User ID or Password invalid. ERRORCODE=-4214, SQLSTATE=28000 Can anyone point out to me why it's not returning the actual password content? I used the same code and it was able to retrieve actual password content before. Best, Yujie
