Closed ag35 closed 8 years ago
Follow this to import OS users to Hue http://gethue.com/hadoop-tutorial-how-to-integrate-unix-users-and-groups/
Stuck!!! While trying to export linux users into HUE
export JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera/ /opt/cloudera/parcels/CDH/lib/hue/build/env/bin/hue useradmin_sync_with_unix subprocess.CalledProcessError: Command '/var/run/cloudera-scm-agent/process/423-hue-HUE_SERVER/altscript.sh sec-5-password' returned non-zero exit status 1 [root@ip-172-31-56-250 423-hue-HUE_SERVER]# /var/run/cloudera-scm-agent/process/423-hue-HUE_SERVER/altscript.sh sec-5-password Error: Password not present
export HUE_SECRET_KEY=Cloudera /var/run/cloudera-scm-agent/process/423-hue-HUE_SERVER/altscript.sh sec-5-password
This is finally solved it!
export HUE_CONF_DIR="/var/run/cloudera-scm-agent/process/423-hue-HUE_SERVER"
export HUE_SECRET_KEY=Cloudera
export HUE_DATABASE_PASSWORD=oozie
export HUE_IGNORE_PASSWORD_SCRIPT_ERRORS=1
/opt/cloudera/parcels/CDH/lib/hue/build/env/bin/hue useradmin_sync_with_unix
Nice recovery!
Thanks, but now we have passwords exposure ...
Set it if empty: mysql> set global sql_mode=STRICT_ALL_TABLES; Query OK, 0 rows affected (0.00 sec)
Add to /etc/my.cnf file under [mysqld] so that it will stay during next restart