- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Add Local User in HUE
Created on 12-10-2022 03:49 AM - edited 12-10-2022 03:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can we add Local Users in Hue when HUE is integrated with AD? Attempting to add a user using add/sync LDAP user returns an error stating no user found in LDAP.
We have some users who are not on AD we would them to be added to HUE as Local Users. Have searched but could not get any information on this
CM 7.6.1
Cloudera Runtime - 7.1.7
Appreciate any input on this.
Thanks
Created 12-10-2022 05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Amn_468 Try with below commands to create local superuser accounts. Once created you can change user access level in Hue.
# cd /opt/cloudera/parcels/CDH/lib/hue # ./build/env/bin/hue --cm-managed createsuperuser
Created 03-12-2024 08:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This doesn't work in CDP 7.1.7. When using the previous command it will throw the following error:
Traceback (most recent call last):
File "./build/env/bin/hue", line 14, in <module>
load_entry_point('desktop', 'console_scripts', 'hue')()
File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/desktop/core/src/desktop/manage_entry.py", line 160, in
entry
empty, environment = envline.split("environment=")
ValueError: too many values to unpack
Created on 06-26-2024 08:55 AM - edited 06-26-2024 08:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, just for completeness in case anyone has the same problem and gets here.
I was using the command in the response from @Scharan but the error was because I was using the wrong version of Python 3.6, but this requires Python 3.8 or above.
After upgrading to Py3.8, the comand worked as expected, only with a couple of warnings as shown bellow:
# ./build/env/bin/hue --cm-managed createsuperuser
/opt/cloudera/parcels/CDH-7.1.9-1.cdh7.1.9.p6.51045883/lib/hue/build/env/lib/python3.8/site-packages/oauth2/grant.py:320: SyntaxWarning: "is" with a literal. Did you mean "=="?
if isinstance(value, tuple) and len(value) is 2:
Username (leave blank to use 'root'): prueba_permisos
Email address: prueba_permisos@test.org
Password:
Password (again):
Superuser created successfully.
Created 12-10-2022 05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Amn_468 Try with below commands to create local superuser accounts. Once created you can change user access level in Hue.
# cd /opt/cloudera/parcels/CDH/lib/hue # ./build/env/bin/hue --cm-managed createsuperuser
Created 03-12-2024 08:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This doesn't work in CDP 7.1.7. When using the previous command it will throw the following error:
Traceback (most recent call last):
File "./build/env/bin/hue", line 14, in <module>
load_entry_point('desktop', 'console_scripts', 'hue')()
File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/desktop/core/src/desktop/manage_entry.py", line 160, in
entry
empty, environment = envline.split("environment=")
ValueError: too many values to unpack
Created on 06-26-2024 08:55 AM - edited 06-26-2024 08:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, just for completeness in case anyone has the same problem and gets here.
I was using the command in the response from @Scharan but the error was because I was using the wrong version of Python 3.6, but this requires Python 3.8 or above.
After upgrading to Py3.8, the comand worked as expected, only with a couple of warnings as shown bellow:
# ./build/env/bin/hue --cm-managed createsuperuser
/opt/cloudera/parcels/CDH-7.1.9-1.cdh7.1.9.p6.51045883/lib/hue/build/env/lib/python3.8/site-packages/oauth2/grant.py:320: SyntaxWarning: "is" with a literal. Did you mean "=="?
if isinstance(value, tuple) and len(value) is 2:
Username (leave blank to use 'root'): prueba_permisos
Email address: prueba_permisos@test.org
Password:
Password (again):
Superuser created successfully.
Created 12-15-2022 05:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Amn_468, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.
Regards,
Vidya Sargur,Community Manager
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
Created 03-22-2024 03:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@lv_antel what is the complete command you are using? can you please share the complete stack trace?
Created 06-26-2024 08:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Y was using copy-paste of the comand in @Scharan 's response. But the problem was this needs Python 3.8 or above and I was using Py3.6. After upgrading Py3 the comand worked perfectly.
