Created
March 27, 2017 17:17
-
-
Save xman1980/3f7f78b2982779b5eddd7a1d174d6a0e to your computer and use it in GitHub Desktop.
hue_useradmin_sync_with_unix
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