Thursday, 9 March 2017


Hue Unable to retrieve logs when executing Hive query from Hue editor


Issue

Hue Unable to retrieve logs when executing Hive query from Hue editor. Hue version is 3.9 and Hive version is 1.2. In the Hue UI, it throws ‘Invalid method name: 'GetLog'’ error.

Error in runscpserver.log


TApplicationException: Invalid method name: 'GetLog'
[09/Mar/2017 14:39:04 -0800] thrift_util  INFO     Thrift saw an application exception: Invalid method name: 'GetLog'
[09/Mar/2017 14:39:04 -0800] hive_server2_lib ERROR    server does not support GetLog
Traceback (most recent call last):
  File "/opt/mapr/hue/hue-3.9.0/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 750, in get_log
    res = self.call(self._client.GetLog, req)
  File "/opt/mapr/hue/hue-3.9.0/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 555, in call
    res = fn(req)
  File "/opt/mapr/hue/hue-3.9.0/desktop/core/src/desktop/lib/thrift_util.py", line 377, in wrapper
    raise StructuredException('THRIFTAPPLICATION', str(e), data=None, error_code=502

Solution


Check whether ‘use_get_log_api’ is set to ‘true’ in hue.ini file. Comment it out or make it ‘false’ and restart Hue.

No comments:

Post a Comment