在Linux上面安装Kudu-python的坑
< 返回列表时间: 2020-02-11来源:OSCHINA
安装kudu-python包参照官方文档:
https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/kudu_development.html
To install the Kudu Python client: Update all the packages on your system using the following command: sudo yum -y update Install the extra packages for the Enterprise Linux distribution: sudo yum -y install epel-release Install the Python package manager: sudo yum -y install python-pip Verify the version of the PIP manager that you just installed: pip --version Install Cython: sudo pip install cython Download the following files: wget http://username:password@archive.cloudera.com/p/cdh6/6.3.3/redhat7/yum/RPMS/x86_64/kudu-1.10.0+cdh6.3.x-1822539.x86_64.rpm wget http://username:password@archive.cloudera.com/p/cdh6/6.3.3/redhat7/yum/RPMS/x86_64/kudu-client-devel-1.10.0+cdh6.3.x-1822539.x86_64.rpm Install the kudu package from the local directory: sudo yum -y localinstall ./kudu-* Install the package used for developing Python extensions: sudo yum -y install python-devel Upgrade the setup tools: sudo pip install --upgrade pip setuptools Install the C++ compiler: sudo yum -y install gcc-c++ Install the Kudu-python client: sudo pip install kudu-python==1.10.0 Install kudu-python: sudo pip install kudu-python
上面,有个需要cloudera账户密码的wget地址。其实只要来这个地址,就可以不用登陆就能下载了:
https://archive.cloudera.com/cdh6/6.3.2/redhat7/yum/RPMS/x86_64/
实际上,要下载的包有三个,分别是:
kudu-1.10.0+cdh6.3.2-1605554.el7.x86_64.rpm 2019-11-12 13:43 161.00MB
kudu-client-devel-1.10.0+cdh6.3.2-1605554.el7.x86_64.rpm kudu-client0-1.10.0+cdh6.3.2-1605554.el7.x86_64.rpm
2019-11-12 13:44 2019-11-12 13:43
57.00KB 4.00MB

就可以了。

我绕了一个弯路,按照官方文档装失败了。
然后就在usr/lib64下面,手动地添加了一个 libkudu_client.0.so 文件(软连接)
从我的CDH自动部署的Kudu项目里面找出来的。
https://community.cloudera.com/t5/Support-Questions/Using-kudu-with-Python/td-p/59185/
然后再使用pip或者setuptools工具,把kudu包装了上去。










热门排行