Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hue is wrongly translating the ATS hostname to localhost

Hue is wrongly translating the ATS hostname to localhost

Expert Contributor

Hello,

After enable security I had a little issue with hue, for some reason it's translating the hostname of the ATS to localhost when in the config file it's node01.int. So when I'm trying to check an application log, it fails to handle the 401 due is finding for HTTP/localhost@REALM service ticket which doesn't exists, I must say that hue and ATS share the same machine. The error is the following:

==> runcpserver.log <==
[03/Jun/2017 17:25:12 +0000] http_client  DEBUG    REST invocation: curl -X GET --negotiate -u : -H Accept: application/json 'http://localhost:8188/ws/v1/applicationhistory/apps/application_1490961840939_1270'


==> error.log <==
[03/Jun/2017 17:25:12 +0000] http_client  DEBUG    REST invocation: curl -X GET --negotiate -u : -H Accept: application/json 'http://localhost:8188/ws/v1/applicationhistory/apps/application_1490961840939_1270'


==> runcpserver.log <==
[03/Jun/2017 17:25:12 +0000] kerberos_    DEBUG    handle_401(): Handling: 401


==> error.log <==
[03/Jun/2017 17:25:12 +0000] kerberos_    DEBUG    handle_401(): Handling: 401


==> runcpserver.log <==
[03/Jun/2017 17:25:12 +0000] kerberos_    ERROR    generate_request_header(): authGSSClientStep() failed:


==> error.log <==
[03/Jun/2017 17:25:12 +0000] kerberos_    ERROR    generate_request_header(): authGSSClientStep() failed:


==> runcpserver.log <==
[03/Jun/2017 17:25:12 +0000] kerberos_    ERROR    (('Unspecified GSS failure.  Minor code may provide more information', 851968), ('Server HTTP/localhost@HADOOP.INT not found in Kerberos database', -1765328377))
Traceback (most recent call last):
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/requests_kerberos-0.4-py2.6.egg/requests_kerberos/kerberos_.py", line 112, in generate_request_header
    _negotiate_value(response))
Can you guys help me with this issue?

Thank you in advance.

Best regards

Don't have an account?
Coming from Hortonworks? Activate your account here