TSaslClientTransport and THttpClient example for hbase thrift python client.
The thrift python bindings are compiled using Apache Thrift compiler.
https://thrift.apache.org/docs/install/
Python version: 3.6.8 pip version: 21.3.1
pip3 install --upgrade pip
pip3 install virtualenv
virtualenv py3env
source py3env/bin/activate
pip3 install -r requirements.txt
kerberos 1.3.1
pip 21.3.1
six 1.16.0
pure-sasl 0.6.2
setuptools 58.3.0
wheel 0.37.0
Note:
- TSaslClientTransport works only after CDP 7.1.7, the earlier CDP version has known bug https://issues.apache.org/jira/browse/HBASE-21652
- THttpClient can work in all CDP version with kerberos and SSL enabled at same time.