0%

安装impala-shell遇到的问题

下载rpm包

impala-shell-2.2.0+cdh5.4.9+0-1.cdh5.4.9.p0.30.el6.x86_64.rpm

安装

1
2
# yum install python-setuptools
# rpm -ivh impala-shell-2.2.0+cdh5.4.9+0-1.cdh5.4.9.p0.30.el6.x86_64.rpm

报错

1
error: Failed dependencies: libpython2.6.so.1.0()(64bit) is needed by impala-shell-2.2.0+cdh5.4.9+0-1.cdh5.4.9.p0.30.el6.x86_64.rpm

下载并安装

1
rpm -Uvh lib64python2.6-2.6.6-1mdv2011.0.x86_64.rpm

连接

1
# impala-shell

报错

1
2
3
···
···
ImportError: libsasl2.so.2: cannot open shared object file: No such file or directory

检查sasl

1
2
rpm -qa | grep sasl
rpm -ql cyrus-sasl-lib

发现 libsasl2.so.3被 cyrus-sasl-lib 安装在了 /usr/lib64/.这个目录下

重装sasl

1
2
pip uninstall sasl
pip install sasl

pip不存在

安装pip

1
2
yun install -y pip
Nothing to do

安装epel扩展源

1
2
sudo yum -y install epel-release
yum -y install python-pip

卸载sasl

1
pip uninstall sasl

无法删除

1
Cannot uninstall requirement sasl, not installed

安装sasl

1
2
3
4
5
6
7
pip install sasl

sasl/saslwrapper.cpp:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1

继续找问题,回到这一步

1
ImportError: libsasl2.so.2: cannot open shared object file: No such file or directory

解决方案

1
2
3
Sometimes these version problems can be resolved by creating a symbolic link with another version of the same library. If you have libsasl2.so installed, create a linked file libsasl2.so.2 for the same:

sudo ln -s /usr/lib64/libsasl2.so /usr/lib64/libsasl2.so.2
不为赚钱,只为交个朋友!干杯~

Welcome to my other publishing channels