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
上一篇: 学习笔记
下一篇: 读书笔记--MapReduce词频统计
推荐阅读
-
Python2和Python3.6环境解决共存问题
-
mongodb和python交互
-
MacOS配置Anaconda3(Miniconda3)下Python3.6、Python3.7和Python2.7环境和基础机器学习、神经网络相关包详解(版本号对应)
-
详解Python3.6安装psutil模块和功能简介
-
python3.6+opencv3.4实现鼠标交互查看图片像素
-
python3.6连接MySQL和表的创建与删除实例代码
-
python命令行模式和交互模式学习讲解
-
Ubuntu16.04同时安装Anaconda2和3,并切换使用Spyder(Python2.7和3.6)
-
python 3.6 和 kudu +impala 交互
-
解决pycharm导入numpy包的和使用时报错:RuntimeError: The current Numpy installation (‘D:\\python3.6\\lib\\site-packa的问题