Re: How to update DB password in Ranger Admin...

2018-04-13 Thread Don Bosco Durai
Perfect, this worked. Vel, thanks a lot. 

Bosco

On 4/13/18, 2:38 PM, "Velmurugan Periasamy"  wrote:

Bosco:

Can you please try the below?

‹ Take a backup of rangeradmin.jceks (just in case)
‹ Go to ranger admin install folder
‹ Execute the below command. Adjust according to your path. You should see
one entry called rangeradmin (from
ranger-admin-site.xml->ranger.jpa.jdbc.credential.alias).
java -cp "cred/lib/*" org.apache.ranger.credentialapi.buildks list -provider
"jceks://file/etc/ranger/admin/rangeradmin.jceks²
‹ You can update that with your new value using the below command. Again,
update according to your path.
java -cp "cred/lib/*" org.apache.ranger.credentialapi.buildks create
rangeradmin -value ³"  -provider
"jceks://file/tmp/rangeradmin.jceks"

Hope this helps.
Thanks,
Vel

From:  Don Bosco Durai 
Reply-To:  "u...@ranger.apache.org" 
Date:  Friday, April 13, 2018 at 5:03 PM
    To:  "u...@ranger.apache.org" , ranger

Subject:  How to update DB password in Ranger Admin...

I had to the change the Ranger DB password. Does anyone know how I can
update the Ranger Admin keystore with the new DB password, without running
the install.sh again?
 
FYI, my Ranger is manually installed (not via Ambari)
 
Thanks
 
Bosco
 







Re: How to update DB password in Ranger Admin...

2018-04-13 Thread Velmurugan Periasamy
Bosco:

Can you please try the below?

‹ Take a backup of rangeradmin.jceks (just in case)
‹ Go to ranger admin install folder
‹ Execute the below command. Adjust according to your path. You should see
one entry called rangeradmin (from
ranger-admin-site.xml->ranger.jpa.jdbc.credential.alias).
java -cp "cred/lib/*" org.apache.ranger.credentialapi.buildks list -provider
"jceks://file/etc/ranger/admin/rangeradmin.jceks²
‹ You can update that with your new value using the below command. Again,
update according to your path.
java -cp "cred/lib/*" org.apache.ranger.credentialapi.buildks create
rangeradmin -value ³"  -provider
"jceks://file/tmp/rangeradmin.jceks"

Hope this helps.
Thanks,
Vel

From:  Don Bosco Durai 
Reply-To:  "u...@ranger.apache.org" 
Date:  Friday, April 13, 2018 at 5:03 PM
To:  "u...@ranger.apache.org" , ranger

Subject:  How to update DB password in Ranger Admin...

I had to the change the Ranger DB password. Does anyone know how I can
update the Ranger Admin keystore with the new DB password, without running
the install.sh again?
 
FYI, my Ranger is manually installed (not via Ambari)
 
Thanks
 
Bosco
 




How to update DB password in Ranger Admin...

2018-04-13 Thread Don Bosco Durai
I had to the change the Ranger DB password. Does anyone know how I can update 
the Ranger Admin keystore with the new DB password, without running the 
install.sh again?

 

FYI, my Ranger is manually installed (not via Ambari)

 

Thanks

 

Bosco