Support Questions
Find answers, ask questions, and share your expertise

Hue SSL cert error to HDFS

Highlighted

Hue SSL cert error to HDFS

Explorer

Hello.

I configurate TLS certs for HUE(from CA), on hdfs i used AUTO_TLS certs.

My config Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini

[desktop]
app_blacklist=
ssl_validate=false
use_new_editor=true
[notebook]
[[interpreters]]
[[ldap]]
sync_groups_on_login=true
show_notebooks=true
[spark]
livy_server_url=http://myhost:8998
interface=livy
[pyspark]
name=PySpark
interface=livy
[r]
name=R
interface=livy

[hadoop]
[[hdfs_clusters]]
[[[default]]]
ssl_cert_ca_verify = false
[[ssl]]
validate=false
[impala]
[[ssl]]
validate=false

 

 

In hue i see this:

cert_hue.jpg

 

2 REPLIES 2
Highlighted

Re: Hue SSL cert error to HDFS

Master Collaborator

@Yuriy_but Please follow the doc on how to configure Hue with SSL once and see if you are missing something from there. 

https://docs.cloudera.com/documentation/enterprise/latest/topics/cm_sg_ssl_hue.html

 

Then enable debug logging in Hue and see what error is indicated in logs to investigate the issue. This will help you to get the direction. 

https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/hue_adm_ini_files.html#concept_jtf_j...


Cheers!
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.

Re: Hue SSL cert error to HDFS

Mentor

@Yuriy_but 

 

The answer is very simple you have logging in as admin user in hue and admin has no HDFS home directory. there are 2-ways  delegate the HDFS home directory creation to HUE by checking Create a home directory in HUE Users--->AddSync LDAP User

username=admin  [search]
Distinguished Name = unchecked
Create home directory= checked

or as the HDFS user

$ hdfs dfs -mkdir /user/admin

Change permissions

$ hdfs dfs -chown admin /user/admin


Now when you log in HUE you should get any issues please let me know

Don't have an account?