Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HUE Lab: Authenticate using Linux users/groups #11

Closed
ag35 opened this issue Sep 22, 2016 · 5 comments
Closed

HUE Lab: Authenticate using Linux users/groups #11

ag35 opened this issue Sep 22, 2016 · 5 comments
Assignees
Labels
Milestone

Comments

@ag35
Copy link
Owner

ag35 commented Sep 22, 2016

  1. Make sure MySQL is prepared for Hue:
    show global VARIABLES like 'sql_mode';

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

  1. Add Oozie service to cluster, install it
  2. Add hue next
  3. Add HttpFs role to HDFS (if not added before), make sure Hue is pointed to HttpFs and restart the services
@ag35 ag35 added the Started label Sep 22, 2016
@ag35 ag35 added this to the Labs milestone Sep 22, 2016
@ag35
Copy link
Owner Author

ag35 commented Sep 22, 2016

Follow this to import OS users to Hue
http://gethue.com/hadoop-tutorial-how-to-integrate-unix-users-and-groups/

@ag35
Copy link
Owner Author

ag35 commented Sep 22, 2016

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

@ag35 ag35 added the confused label Sep 22, 2016
@ag35
Copy link
Owner Author

ag35 commented Sep 22, 2016

This is finally solved it!

Directory for the last Hue service startup

export HUE_CONF_DIR="/var/run/cloudera-scm-agent/process/423-hue-HUE_SERVER"
#Make sure JAVA_HOME is set, and do not get surprized....

Hue ADMIN password

export HUE_SECRET_KEY=Cloudera
#Hue Mysql database password
export HUE_DATABASE_PASSWORD=oozie
#Finally
export HUE_IGNORE_PASSWORD_SCRIPT_ERRORS=1

Finally try it

/opt/cloudera/parcels/CDH/lib/hue/build/env/bin/hue useradmin_sync_with_unix

@mfernest
Copy link
Collaborator

Nice recovery!

@ag35
Copy link
Owner Author

ag35 commented Oct 13, 2016

Thanks, but now we have passwords exposure ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants