简单认证和安全层(SASL)是网络协议中使用的认证层。SASL并不是一种协议,只是提供给应用和共享库的开发者一种认证、数据完整性校验和加密的机制的框架。

在hive中可以使用SASL(简单身份验证和安全层)对HiveServer及其客户端之间的客户端-服务器通信进行加密。

所以在使用python开发的客户端pyhive等模块连接hive服务的时候都需要SASL依赖的支持。

ubuntu中这一个依赖就解决了。

# ubuntu
apt-get update
apt-get install -y libsasl2-dev 

在debian-bluster中大概需要以下几个依赖

#bluster
apt-get update
apt-get install -y  libsasl2-dev  libsasl2-modules

顺便说下,debian-bluster是python官方docker镜像默认使用的最底层镜像系统。

debian的软件包列表可以在以下链接查找:

https://www.debian.org/distrib/packages

在debian中如何速度慢的话可以先执行以下命令更换为阿里源

mv /etc/apt/sources.list  /etc/apt/sources.list.bat
echo "
# debian-buster 更换为阿里云的源
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
" > /etc/apt/sources.list

换源之后记得执行  apt-get update  才能生效。

sasl是pyhive依赖的其中一个模块。

在win系统中有对应的离线包可以用。

下面的地址可以下载多数的windows版本的python模块离线包。

☞  传送门

ubuntu/debian-bluster 用python安装 sasl 报错解决相关推荐

  1. python 安装 psycopg2 报错问题处理

    今天在安装服务器环境时,使用Python  安装 psycopg2 报错如下 pip3 install psycopg2 Looking in indexes: http://mirrors.clou ...

  2. python安装报错类型_解决Python安装cryptography报错问题

    解决Python安装cryptography报错问题 错误一: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wst ...

  3. 【已解决】Python安装TensorFlow报错“Consider adding this directory to PATH or, if you prefer to suppress this

    [已解决]Python安装TensorFlow报错"Consider adding this directory to PATH or, if you prefer to suppress ...

  4. python 安装 pyinstaller 报错Preparing wheel metadata ... error

    python 安装 pyinstaller 报错Preparing wheel metadata ... error ERROR: Command errored out with exit stat ...

  5. 深度学习部署:Windows安装pycocotools报错解决方法

    深度学习部署:Windows安装pycocotools报错解决方法 1.pycocotools库的简介 2.pycocotools安装的坑 3.解决办法 更多Ai资讯:公主号AiCharm 本系列是作 ...

  6. Python 中文注释报错解决方法

    Python 中文注释报错解决方法 参考文章: (1)Python 中文注释报错解决方法 (2)https://www.cnblogs.com/cjiong/p/5881983.html 备忘一下.

  7. mac上安装webpack报错解决方法Hit error EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/webpack

    mac上安装webpack报错解决方法Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/webpack 参 ...

  8. Jenkins安装插件报错解决方法

    Jenkins安装插件报错解决方法 1.报错场景 2.场景分析 3.问题解决(不一定能全解决,看运气) 1.报错场景 按正常方式安装完Jenkins后安装插件会报错如下: // An highligh ...

  9. npm 安装依赖报错解决方法总结

    npm 安装依赖报错解决方法总结 参考文章: (1)npm 安装依赖报错解决方法总结 (2)https://www.cnblogs.com/ysxq/p/11658571.html (3)https: ...

  10. pycharm安装pandas报错解决办法

    pycharm安装pandas报错解决办法 当使用pycharm自动安装pandas时,提示安装失败并要求在命令提示符界面进行安装.在使用命令提示符安装成功之后,发现pycharm仍然无法安装pand ...

最新文章

  1. Go 学习笔记(7)— 常量定义、常量使用、枚举用法、iota 常量、不设置初始值常量
  2. 自动驾驶,别再谈「接管」色变了
  3. [置顶] 【C#】 Socket通讯客户端程序
  4. python核心-类-1
  5. 彻底理解Spring IOC和DI
  6. 「后端小伙伴来学前端了」Element修改默认样式 | 记录自己学习前端踩坑日记
  7. protoc: error while loading shared libraries: libprotoc.so.8: cannot open shared object file
  8. jakarta ee_Jakarta EE的拟议命名空间
  9. vue的生命周期和钩子函数的理解
  10. Java开发入门教程!java垃圾回收机制描述正确
  11. 59. DNS 服务器
  12. net导出到excel数字变为科学技术法
  13. 学习笔记(11):ArcGIS10.X入门实战视频教程(GIS思维)-快速制作一幅土地利用现状图(引入制图表达)
  14. JAVA事务配置总结
  15. 由四位央行官员为你制作的“数字货币”说明书
  16. 《GPU编程与CG语言之阳春白雪下里巴人》 读书笔记1
  17. SpringBoot初试错误合集
  18. 修复 rk3288 android9 的一些问题
  19. audio 标签加入背景音乐谷歌浏览器不能自动播放的问题
  20. 第四届红帽杯网络安全大赛 Web 部分writeup

热门文章

  1. Android Jetpack架构组件(十)之Slices
  2. 网站换服务器步骤,【大拿分享】六个步骤搞定更换网站服务器
  3. php中fastcgi和php-fpm是什么
  4. ASIHTTPRequest实现https双向认证请求
  5. windows驱动开发2:驱动开发调试环境配置(WDK)
  6. ashampoo(阿香婆) movie studio视频剪辑笔记
  7. CDA学习之Pandas - 十分钟搞定Pandas / Pandas秘籍
  8. 最新最全的前端面试题集锦之 微信小程序 篇(从基础到高级)
  9. java实现猜你喜欢_猜你喜欢实现原理:电商“猜你喜欢“是怎么实现的?
  10. [DP 上下界最小流] BZOJ4200 [Noi2015]小园丁与老司机