Created 05-19-2022 02:08 PM
queries in hue using impala are returning the following error:
"results have expired, rerun the query if needed"
as shown in the screenshot below:
what could be causing this error and how to fix this issue?
Created 05-20-2022 09:46 AM
Looks like there are different types of AWS Load Balancers, and the one that can handle TCP sessions are either Network Load Balancer (NLB) or Classic Load Balancer. Which one are you using? I believe stickiness also works for NLB, but do validate with your AWS team.
The session timeout is two-fold:
Regards,
Alex
Created 05-19-2022 09:34 PM
Hi @yagoaparecidoti ,
If you have Impala daemons that are load-balanced (LB), then there is a configuration that needs to be applied on the LB, related to source IP persistance. There is a Knowledge Base article about this: https://community.cloudera.com/t5/Customer/Load-balancing-between-Hue-and-Impala/ta-p/73364
If there is no LB at play here, then has this issue been ongoing or just started to pop up recently? What changed on the cluster recently?
Regards,
Alex
Created 05-20-2022 05:22 AM
hi @aakulov
the cluster is on AWS and the AWS LB is being used on ports 21050 of the impala daemon, in which case this LB may be having this problem?
sould it be that in this LB we can also change it to "source"?
Created 05-20-2022 08:33 AM
That's right, you'll need to look into how to setup AWS LB to have sticky sessions, which is not enabled by default. Also, please look into tuning the session timeout to a high value (long enough for Impala to finish the query and send the results back to Hue)
Reference: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html
Kind regards,
Alex Akulov
Created on 05-20-2022 08:38 AM - edited 05-20-2022 08:41 AM
LB AWS sticky sessions settings is for LB HTTP/HTTPS only
in this case the LB we are using is TCP on ports 21000 and 21050
the session timeout you say in the impala service, right?
would be the "idle_query_timeout" and "idle_session_timeout" options, right?
Created 05-20-2022 09:46 AM
Looks like there are different types of AWS Load Balancers, and the one that can handle TCP sessions are either Network Load Balancer (NLB) or Classic Load Balancer. Which one are you using? I believe stickiness also works for NLB, but do validate with your AWS team.
The session timeout is two-fold:
Regards,
Alex
Created 05-23-2022 03:26 PM
@yagoaparecidoti 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. Thanks!
Regards,
Diana Torres,