今天使用happybase 在Windows端读取hbase 的时候,提示“ 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:

  然后重新运行即可。

 

相关文章:

  • 2021-07-11
  • 2021-05-16
  • 2021-05-08
  • 2021-05-17
  • 2021-08-23
  • 2021-06-12
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2021-11-01
  • 2021-07-29
  • 2021-09-25
相关资源
相似解决方案