Skip to content

Instantly share code, notes, and snippets.

@bugcy013
Forked from mrmichalis/get-cmpasswd.sh
Created January 21, 2014 20:50
Show Gist options
  • Select an option

  • Save bugcy013/8548094 to your computer and use it in GitHub Desktop.

Select an option

Save bugcy013/8548094 to your computer and use it in GitHub Desktop.
#!/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;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment