question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TApplicationException: Invalid method name: 'GetLog'

See original GitHub issue

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • I have checked the issue tracker for the same issue and I haven’t found one similar

Superset version

0.18.4

Expected results

pyhive will work

Actual results

when query against hive:// backends, superset worker will raise this error:

  File \"\/usr\/lib\/python3.6\/site-packages\/superset\/db_engines\/hive.py\", line 18, in fetch_logs
    logs = self._connection.client.GetLog(req)
  File \"\/usr\/lib\/python3.6\/site-packages\/pythrifthiveapi\/TCLIService\/TCLIService.py\", line 762, in GetLog
    return self.recv_GetLog()
  File \"\/usr\/lib\/python3.6\/site-packages\/pythrifthiveapi\/TCLIService\/TCLIService.py\", line 779, in recv_GetLog
    raise x
thrift.Thrift.TApplicationException: Invalid method name: 'GetLog'

Steps to reproduce

  • install pyhive v0.3.0, pythriftapi on 4e2e9935bdddbe2f30630ef22c5aa045b713478e (at the time of writing, the pythriftapi on pypi is using python3 incompatible import style, must install from github repo)
  • add a database in superset using the hive:// prefix
  • run some hql queries, in my case, the simple ones like select * from table_name limit 2 will work, but complex query that’ll run for a long time in hive CLI, will raise this error.

Study

I see there’s this fetch_logs method that looks like a patch for the original fetch_logs method, but I didn’t see any code that actually does the patching, just a method declaration lying there, so AFAIK the fetch_logs method ran by superset worker, is still the original ones from pyhive?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
timfeirgcommented, Jun 13, 2017

consider removing GetLog usage from superset?

0reactions
timfeirgcommented, Jun 14, 2017

yeah I guess that could be it, but doing so means that pyhive queries will not be able to report progress on newer versions of hive.

I see there’s this GetOperationStatus API within TCLIService.thrift, haven’t tried but looks like it’s able to get the same information as GetLog?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TApplicationException: Invalid method name: 'GetLog' #2954
I should've learn that this is not about the monkey patch, the traceback clearly indicates that the patched version of fetch_logs is being...
Read more >
Invalid method name: 'GetLog' error after submitting Hive ...
The Invalid method name: 'GetLog' (code THRIFTAPPLICATION): None error can occur after you submit Hive queries from the Hue editor and while Hue...
Read more >
How realtime capture logs of query from HiveServer2 with ...
In script I use HiveServer2 from Cloudera VM. Same server, as I quess, used by Hue and it successfully works. In addition I...
Read more >
Hue Unable to retrieve logs when executing Hive query ...
In the Hue UI, it throws 'Invalid method name: 'GetLog'' error. ... TApplicationException: Invalid method name: 'GetLog'.
Read more >
hue3.5 - hive server2 logs not visible
450 TApplicationException: Invalid method name: 'GetLog' ... I know that for old ones the GetLog() method of HiveServer2 was implemented afterwards (~0.12 I ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found