Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting impyla
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/80/93/f0d226061ee4679d5
b593c88c7b2e9e077a271c799d29facf31bf03666c1/impyla-0.14.1.tar.gz (151kB)
40% |█████████████ | 61kB 1.3MB/s eta 0:00:01
47% |███████████████ | 71kB 1.1MB/s eta 0:00:
53% |█████████████████ | 81kB 1.1MB/s eta 0:0
60% |███████████████████▌ | 92kB 1.2MB/s eta
67% |█████████████████████▌ | 102kB 1.1MB/s e
74% |████████████████████████ | 112kB 1.1MB/s
80% |██████████████████████████ | 122kB 759kB
87% |████████████████████████████ | 133kB 786
94% |██████████████████████████████ | 143kB 8
100% |████████████████████████████████| 153k
B 1.0MB/s
Requirement already satisfied: six in c:\program files\python36\lib\site-package
s (from impyla) (1.11.0)
Collecting bitarray (from impyla)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e2/1e/b93636ae36d08d0ee
3aec40b08731cc97217c69db9422c0afef6ee32ebd2/bitarray-0.8.3.tar.gz
Collecting thriftpy>=0.3.5 (from impyla)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f4/19/cca118cf7d2087310
dbc8bd70dc7df0c1320f2652873a93d06d7ba356d4a/thriftpy-0.3.9.tar.gz (208kB)
39% |████████████▌ | 81kB 875kB/s eta 0:00:01
44% |██████████████ | 92kB 984kB/s eta 0:00:0
49% |████████████████ | 102kB 820kB/s eta 0:0
54% |█████████████████ | 112kB 820kB/s eta 0:
59% |███████████████████ | 122kB 820kB/s eta
63% |████████████████████▌ | 133kB 729kB/s et
68% |██████████████████████ | 143kB 937kB/s e
73% |███████████████████████▌ | 153kB 937kB/s
78% |█████████████████████████ | 163kB 820kB/
83% |███████████████████████████ | 174kB 937k
88% |████████████████████████████▌ | 184kB 93
93% |██████████████████████████████ | 194kB 9
98% |███████████████████████████████▌| 204kB
100% |████████████████████████████████| 215k
B 1.1MB/s
Requirement already satisfied: ply<4.0,>=3.4 in c:\program files\python36\lib\si
te-packages (from thriftpy>=0.3.5->impyla) (3.11)
thrift-sasl 0.2.1 requires sasl>=0.2.1, which is not installed.
Installing collected packages: bitarray, thriftpy, impyla
Running setup.py install for bitarray … done
Running setup.py install for thriftpy … done
Running setup.py install for impyla … done
Successfully installed bitarray-0.8.3 impyla-0.14.1 thriftpy-0.3.9
执行数据库连接后,出现问题
ThriftParserError: ThriftPy does not support generating module with path in protocol ‘c’
定位到 \Lib\site-packages\thriftpy\parser\parser.py的
if url_scheme == '': with open(path) as fh: data = fh.read()elif url_scheme in ('http', 'https'): data = urlopen(path).read()else: raise ThriftParserError('ThriftPy does not support generating module ' 'with path in protocol \'{}\''.format( url_scheme))
1
2
3
4
5
6
7
8
9
更改为
if url_scheme == '': with open(path) as fh: data = fh.read()elif url_scheme in ('c', 'd','e','f''): with open(path) as fh: data = fh.read()elif url_scheme in ('http', 'https'): data = urlopen(path).read()else: raise ThriftParserError('ThriftPy does not support generating module ' 'with path in protocol \'{}\''.format( url_scheme))
Can’t connect to unsecured hive. SASL error: TTransportException: Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a callback: 2
TTransportException: Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a callback: 2
‘No protocol version header’)thriftpy.protocol.exc.TProtocolException: TProtocolException(type=4)