|
@@ -129,6 +129,10 @@ groups. It does not import any new users or groups.
|
|
|
|
|
|
|
|
When a Hue administrator loses their password, a more programmatic approach is required to secure the administrator again. Hue comes with a wrapper around the python interpreter called the “shell” command. It loads all the libraries required to work with Hue at a programmatic level. To start the Hue shell, type the following command from the Hue installation root.
|
|
When a Hue administrator loses their password, a more programmatic approach is required to secure the administrator again. Hue comes with a wrapper around the python interpreter called the “shell” command. It loads all the libraries required to work with Hue at a programmatic level. To start the Hue shell, type the following command from the Hue installation root.
|
|
|
|
|
|
|
|
|
|
+If using CM:
|
|
|
|
|
+
|
|
|
|
|
+ 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}'`"
|
|
|
|
|
+
|
|
|
Then:
|
|
Then:
|
|
|
|
|
|
|
|
cd /usr/lib/hue (or /opt/cloudera/parcels/CDH-XXXXX/share/hue if using parcels and CM)
|
|
cd /usr/lib/hue (or /opt/cloudera/parcels/CDH-XXXXX/share/hue if using parcels and CM)
|
|
@@ -145,6 +149,18 @@ The script can also be invoked in the shell by using input redirection (assuming
|
|
|
|
|
|
|
|
build/env/bin/hue shell < script.py
|
|
build/env/bin/hue shell < script.py
|
|
|
|
|
|
|
|
|
|
+**Via a command**
|
|
|
|
|
+
|
|
|
|
|
+Go on the Hue machine, then in the Hue home directory and either type:
|
|
|
|
|
+
|
|
|
|
|
+To change the password of the currently logged in Unix user:
|
|
|
|
|
+
|
|
|
|
|
+ build/env/bin/hue changepassword
|
|
|
|
|
+
|
|
|
|
|
+### Reset an Admin
|
|
|
|
|
+
|
|
|
|
|
+**Programmatically**
|
|
|
|
|
+
|
|
|
How to make a certain user a Hue admin
|
|
How to make a certain user a Hue admin
|
|
|
|
|
|
|
|
build/env/bin/hue shell
|
|
build/env/bin/hue shell
|
|
@@ -159,21 +175,12 @@ Then set these properties to true:
|
|
|
a.set_password('my_secret')
|
|
a.set_password('my_secret')
|
|
|
a.save()
|
|
a.save()
|
|
|
|
|
|
|
|
-** Via a command**
|
|
|
|
|
-
|
|
|
|
|
-Go on the Hue machine, then in the Hue home directory and either type:
|
|
|
|
|
-
|
|
|
|
|
-To change the password of the currently logged in Unix user:
|
|
|
|
|
-
|
|
|
|
|
- build/env/bin/hue changepassword
|
|
|
|
|
|
|
+**Via a command**
|
|
|
|
|
|
|
|
If you don't remember the admin username, create a new Hue admin (you will then also be able to login and could change the password of another user in Hue):
|
|
If you don't remember the admin username, create a new Hue admin (you will then also be able to login and could change the password of another user in Hue):
|
|
|
|
|
|
|
|
build/env/bin/hue createsuperuser
|
|
build/env/bin/hue createsuperuser
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-[Read more about it here](http://gethue.com/password-management-in-hue/).
|
|
|
|
|
-
|
|
|
|
|
<div class="note">
|
|
<div class="note">
|
|
|
Above works with the `AllowFirstUserBackend`, it might be different if another backend is used.
|
|
Above works with the `AllowFirstUserBackend`, it might be different if another backend is used.
|
|
|
</div>
|
|
</div>
|
|
@@ -181,8 +188,7 @@ Above works with the `AllowFirstUserBackend`, it might be different if another b
|
|
|
|
|
|
|
|
## Groups
|
|
## Groups
|
|
|
|
|
|
|
|
-Superusers can add and delete groups, configure group permissions, and
|
|
|
|
|
-assign users to group memberships.
|
|
|
|
|
|
|
+Superusers can add and delete groups, configure group permissions, and assign users to group memberships.
|
|
|
|
|
|
|
|
### Adding a Group
|
|
### Adding a Group
|
|
|
|
|
|