Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get list of password from Cloudera Manager embedded PostgreSQL DB and cloudera-scm
#!/usr/bin/env bash
#get-cmpasswd.sh
# password for amon, smon, hmon, rman, nav, scm
cat /etc/cloudera-scm-server/db*.properties | sed '/^#/ d'
# password for cloudera-scm
head -1 /var/lib/cloudera-scm-server-db/data/generated_password.txt
# password for hive
psql -U scm -W scm -h localhost -p 7432 -c "select attr,value from configs where attr like 'hive_metastore_database%' order by revision_id DESC limit 5;"
@JituS

This comment has been minimized.

Copy link

commented Mar 27, 2017

thanks

@anandp81

This comment has been minimized.

Copy link

commented Apr 21, 2018

thanks
nice script ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.