Reply
New Contributor
Posts: 2
Registered: ‎04-28-2019

hue fails with impala and kerberos

[ Edited ]

when i finish building hue. i meet this problem after i depoly impala in the Configuration file (pseudo-distributed.ini )067A9E2C-1155-4b79-A28F-2CFF1BE888D0.png

 

hello, anyone else meet this prolem ?

 

New Contributor
Posts: 2
Registered: ‎04-28-2019

Re: hue fails with impala and kerberos

this is impala configuration 

[impala]
# Host of the Impala Server (one of the Impalad)
server_host=test-cdh4.lddmp.com

# Port of the Impala Server
server_port=21050

# Kerberos principal
impala_principal=impala/test-cdh4.lddmp.com

# Turn on/off impersonation mechanism when talking to Impala
impersonation_enabled=True

# Number of initial rows of a result set to ask Impala to cache in order
# to support re-fetching them for downloading them.
# Set to 0 for disabling the option and backward compatibility.
## querycache_rows=50000

# Timeout in seconds for thrift calls
server_conn_timeout=120

 

# Path to the impala configuration dir which has impalad_flags file
 impala_conf_dir=${HUE_CONF_DIR}/impala-conf

 

and i don't know  what's under the catalog  impala-conf ?

Highlighted
Posts: 1,004
Kudos: 31
Solutions: 20
Registered: ‎05-27-2014

Re: hue fails with impala and kerberos

Hi @hello_hue ,

 

Can you try to remove the impala_conf_dir line and see if that helps? Also, what error message do you see from Hue logs?

 

Thanks,

Li

Li Wang, Technical Resolution 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:

Terms of Service

Community Guidelines

How to use the forum

Posts: 1,108
Topics: 1
Kudos: 285
Solutions: 134
Registered: ‎04-22-2014

Re: hue fails with impala and kerberos

@hello_hue,

 

When you get an error in the UI of Hue when attempting to connect to another resource (like Impala), it is a good idea to review the following:

 

  • Hue log (usually /var/log/hue/runcpserver.log)
  • The impalad log of the daemon to which Hue is configured to connect (in this case test-cdh4.lddmp.com) (usually /var/log/impalad/impalad.info

Use the error in the Hue log to see if anything at the same time is listed as a message in the impalad log.

 

the impala_conf_dir configuration is used by Hue to pick up some impala configuration items normally put there by Cloudera Manager.  If you are not using Cloudera Manager to manage (start/stop) this Hue instance, then you can configure options as required.

 

The settings that Hue reads from the impalad_flags file that resides in the impala_conf_dir are:

 

-webserver_certificate_file
-ssl_server_certificate
-max_result_cache_size
-authorized_proxy_user_config

 

You can find the logic used when reading the file here:

https://github.com/cloudera/hue/blob/master/apps/impala/src/impala/impala_flags.py

 

I just wanted to fill in some of the background of the configuration you asked for, but we still should look at the logs to get some clues as to the failure.