欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

python 3.6 和 kudu +impala 交互

程序员文章站 2022-07-11 09:46:29
...
kudu 官方提供的编程语言接口有:
C++,python ,java

impala 官方提供的编程语言接口有:
C++,python,java

安装kudu的接口需要安装kudu的客户端:

#pip install Cython

# wget https://archive.cloudera.com/cdh6/6.2.0/redhat7/yum/RPMS/x86_64/kudu-client0-1.9.0+cdh6.2.0-967373.el7.x86_64.rpm
# wget https://archive.cloudera.com/cdh6/6.2.0/redhat7/yum/RPMS/x86_64/kudu-client-devel-1.9.0+cdh6.2.0-967373.el7.x86_64.rpm

#ll
kudu-client0-1.9.0+cdh6.2.0-967373.el7.x86_64.rpm
kudu-client-devel-1.9.0+cdh6.2.0-967373.el7.x86_64.rpm

#  rpm -ivh kudu-client*.rpm
# pip install kudu-python

注释:
Using this package requires that you install the Kudu C++ client libraries and headers. 


安装impyla:
# pip install impyla

# pip list | grep -E -i "six|bitarray|thrift|ply|Cython|kudu|impyla"
bitarray        0.9.2   
Cython          0.29.7  
impyla          0.15.0  
kudu-python     1.9.0   
ply             3.11    
six             1.12.0  
thrift          0.11.0  
thrift-sasl     0.3.0   
thriftpy        0.3.9   
thriftpy2       0.4.0   

由于kudu的客户端是C++编译的,暂时不支持windows,支持linux和mac。

参考:
https://kudu.apache.org/docs/developing.html#_kudu_python_client