工作hive中有一些临时表没有删掉,准备写个脚本来删。
在安装pyhive的过程中需要,pip install sasl,但总会报出下面的错误:
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/local/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/sasl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RgHW7V-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/sasl
google了一下
Ubuntu系统的话可能需要先装好libsasl2-dev
CentOS系统需要预先装好python-devel和cyrus-sasl-devel
按照方案执行了语句
yum install gcc-c++ python-devel.x86_64 cyrus-sasl-devel.x86_64
之后再pip install sasl成功