今天使用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:
然后重新運行即可。