Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.2.0
-
Fix Version/s: 2.3.0
-
Component/s: con.impala
-
Labels:None
-
Target Version:
Description
I was using the Impala app and restarted Impala. When I went to "my queries" I got an unfortuante "Default TException" message, instead of something useful.
Here's the Hue logs:
[19/Feb/2013 19:55:44 +0000] middleware INFO Processing exception: Default TException. (code THRIFTAPPLICATION): None: Traceback (most recent call last): File "/opt/cloudera/parcels/CDH-4.2.0-1.cdh4.2.0.p0.3/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/opt/cloudera/parcels/CDH-4.2.0-1.cdh4.2.0.p0.3/share/hue/apps/beeswax/src/beeswax/views.py", line 227, in my_queries prefix) File "/opt/cloudera/parcels/CDH-4.2.0-1.cdh4.2.0.p0.3/share/hue/apps/beeswax/src/beeswax/views.py", line 1387, in _list_query_history _update_query_state(history.get_full_object()) File "/opt/cloudera/parcels/CDH-4.2.0-1.cdh4.2.0.p0.3/share/hue/apps/beeswax/src/beeswax/views.py", line 1405, in _update_query_state state_enum = dbms.get(query_history.owner, query_history.get_query_server_config()).get_state(query_history.get_handle()) File "/opt/cloudera/parcels/CDH-4.2.0-1.cdh4.2.0.p0.3/share/hue/apps/beeswax/src/beeswax/server/dbms.py", line 156, in get_state return self.client.get_state(handle) File "/opt/cloudera/parcels/CDH-4.2.0-1.cdh4.2.0.p0.3/share/hue/apps/beeswax/src/beeswax/server/beeswax_lib.py", line 164, in get_state return self.db_client.get_state(handle) File "/opt/cloudera/parcels/CDH-4.2.0-1.cdh4.2.0.p0.3/share/hue/apps/beeswax/src/beeswax/server/beeswax_lib.py", line 249, in get_state rpc_state = self._client.get_state(rpc_handle) File "/opt/cloudera/parcels/CDH-4.2.0-1.cdh4.2.0.p0.3/share/hue/desktop/core/src/desktop/lib/thrift_util.py", line 287, in wrapper raise StructuredException('THRIFTAPPLICATION', str(e), data=None, error_code=502) StructuredException: Default TException. (code THRIFTAPPLICATION): None
And here are the relevant Impala logs:
I0219 17:56:19.119565 19051 impalad-main.cc:128] Impala has started. I0219 19:55:38.282210 19132 impala-beeswax-server.cc:335] ImpalaServer::get_state invalid handle
I suspect what's going on is that the handle is invalid, and Hue should deal with that gracefully.