Skip to content

Instantly share code, notes, and snippets.

@sjjohansen
Last active May 12, 2016 03:19
Show Gist options
  • Save sjjohansen/752de57df32f336bbf97392539ae9d54 to your computer and use it in GitHub Desktop.
Save sjjohansen/752de57df32f336bbf97392539ae9d54 to your computer and use it in GitHub Desktop.
Hue Unix account sync with CM
# 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