Last active
May 12, 2016 03:19
-
-
Save sjjohansen/752de57df32f336bbf97392539ae9d54 to your computer and use it in GitHub Desktop.
Hue Unix account sync with CM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get the current HUE credential password for CM | |
cat /proc/`ps -ef| grep hue |\ | |
grep runcherrypyserver |\ | |
awk '{print $2}'`/environ |\ | |
sed 's/.*\(HADOOP_CREDSTORE_PASSWORD=.*\)/\1/' | |
export HUE_CONF_DIR="/var/run/cloudera-scm-agent/process/`ls -alrt /var/run/cloudera-scm-agent/process | grep HUE | tail -1 | awk '{print $9}'`" | |
export JAVA_HOME=/usr/java/default | |
export HADOOP_CREDSTORE_PASSWORD=xxxxxxxxxxxxxxx | |
build/env/bin/hue useradmin_sync_with_unix | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment