Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named pythrifthiveapi.TCLIService #2637

Closed
3 tasks done
hungrytortoise opened this issue Apr 18, 2017 · 1 comment
Closed
3 tasks done

ImportError: No module named pythrifthiveapi.TCLIService #2637

hungrytortoise opened this issue Apr 18, 2017 · 1 comment

Comments

@hungrytortoise
Copy link

hungrytortoise commented Apr 18, 2017

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

the lastest

Expected results

content from hive table

Actual results

image

Steps to reproduce

when i started a hive query task,the cli shows error like following

Traceback (most recent call last):
File "/home/wugui/opt/venv/lib/python2.7/site-packages/superset/views/core.py", line 1994, in sql_json
query_id=query_id, return_results=True)
File "/home/wugui/opt/venv/lib/python2.7/site-packages/celery/local.py", line 188, in call
return self._get_current_object()(*a, **kw)
File "/home/wugui/opt/venv/lib/python2.7/site-packages/celery/app/task.py", line 420, in call
return self.run(*args, **kwargs)
File "/home/wugui/opt/venv/lib/python2.7/site-packages/superset/sql_lab.py", line 70, in get_sql_results
db_engine_spec.patch()
File "/home/wugui/opt/venv/lib/python2.7/site-packages/superset/db_engine_specs.py", line 568, in patch
from superset.db_engines import hive as patched_hive
File "/home/wugui/opt/venv/lib/python2.7/site-packages/superset/db_engines/hive.py", line 2, in
from pythrifthiveapi.TCLIService import ttypes
ImportError: No module named pythrifthiveapi.TCLIService

@hungrytortoise
Copy link
Author

solution:pip install pythrifthiveapi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant