今天使用impyla在Windows端读取impala的时候,提示“ ThriftPy does not support generating module with path in protocol 'c'”
错误,查询相关的资料:https://github.com/eleme/thriftpy/issues/234 发现主要是源码在解析url的时候出现错误,解决方法如下:
修改windows端中的parser 代码,笔者代码位置如下: C:\ProgramData\Anaconda2\Lib\site-packages\thriftpy\parser
修改其中的488行为如下情况:
#if url_scheme == '':
if
len
(url_scheme) <
=
1
:
|
然后重新运行即可。