authorize.AuthorizationException: User: livy is not allowed to impersonate
部署参考 livy安装:https://cloud.tencent.com/developer/article/1349537
此外需要在hdfs core-site.xml 配置如下代理:
<property>
<name>hadoop.proxyuser.livy.groups</name>
<value>*</value>
<description>Allow the superuser livy to impersonate any members of the group group1 and group2</description>
</property>
<property>
<name>hadoop.proxyuser.livy.hosts</name>
<value>*</value>
<description>The superuser can connect only from host1 and host2 to impersonate a user</description>
</property>
如果不配置的话,会有
ERROR: org.apache.hadoop.security.authorize.AuthorizationException: User: livy is not allowed to impersonate xxx
该警告会影响任务的提交.
配置完成后,别忘了重启hdfs,livy,yarn等
测试代码参考:
https://mp.weixin.qq.com/s?__biz=MzI4OTY3MTUyNg==&mid=2247487686&idx=1&sn=2d64bcdb7cced159508fd98b7e1ad623&chksm=ec2ac0cfdb5d49d944bcb74173c8914c8a9fbda3743cde459aeb053253237875101558a8147e&scene=21#wechat_redirect
String user = "livy";HashMap<String, String> headers = new HashMap<>();headers.put("Content-Type", "application/json");headers.put("Accept", "application/json");headers.put("X-Requested-By", user);//创建一个交互式会话
// String kindJson = “{“kind”: “spark”, “proxyUser”:“livy”}”;
// HttpUtils.postAccess(LIVY_HOST + “/sessions”, headers, kindJson);
//执行codeString code = "{\"code\":\"sc.parallelize(1 to 2).count()\"}";HttpUtils.postAccess(LIVY_HOST + "/sessions/0/statements", headers, code);
authorize.AuthorizationException: User: livy is not allowed to impersonate相关推荐
- beeline连接hiveserver2报错:User: root is not allowed to impersonate root
最近在生产中搭建HA机制的集群,碰到不少坑,会在接下来的时间里好好总结下,先说下遇到的一个大坑.我们的需求是:希望通过hive的thrift服务来实现跨语言访问Hive数据仓库.但是第一步,你得需要在 ...
- Hive:hive is not allowed to impersonate anonymous
1.用kettle通过jdbc连接hiveserver2的时候抛出异常 Exception in thread "main" org.apache.hive.service.cli ...
- Required field ‘serverProtocolVersion‘ is unset! User: root is not allowed to impersonate root
在使用hiveserver2连接hive时,遇到以下报错: Beeline version 2.3.8 by Apache Hive beeline> ! connect jdbc:hive2: ...
- 13、hive在启动beeline客户端时报错:User: xxx is not allowed to impersonate xxx
背景 在启动完成hive服务:hive --service metastore后 启动hive2服务的过程中:hive --service hiveserver2后 启动beeline客户端时,bee ...
- User root is not allowed to impersonate anonymous
使用HiveServer2 and Beeline模式运行时,启动好HiveServer后运行 beeline -u jdbc:hive2://localhost:10000 -n root 连接se ...
- hive中beeline连接报错 User: root is not allowed to impersonate root:已解决
第一种:hive中beeline连接报错 Error: Could not open client transport with JDBC Uri: jdbc:hive2://node-4:10000 ...
- hbase错误:Org.apache.hadoop.ipc.RemoteException:User:client is not allowed to impersonate root
场景:远程登录配有Kerberos的hbase的时候,client端用到的kerberos的principal是client/mj1@BDSM.CMCC 错误: Org.apache.hadoop.i ...
- Hive User: root is not allowed to impersonate xxx问题
问题: Hive User: root is not allowed to impersonate xxx问题 解决方案: 在hadoop的配置文件core-site.xml增加如下配置,重启hado ...
- User: root is not allowed to impersonate anonymous (state=08S01,code=0)
关于这个问题,网上也都给出了解决方法: 1.配置hive-site.xml 上面的端口号一般为10000,下面涂红的为ip地址 2.配置hadoop-site.xml 配置core-site.xml ...
- 安装Hue后的一些功能的问题解决干货总结(博主推荐)
不多说,直接上干货! 我的集群机器情况是 bigdatamaster(192.168.80.10).bigdataslave1(192.168.80.11)和bigdataslave2(192.168 ...
最新文章
- linux 定时任务 crontab 报错 service command not found 解决方法
- sprintf格式化字符串带来的注入隐患
- Android 2.2 r1 API 中文文档系列(11) —— RadioButton
- mysql/mariadb应该使用utf8mb4而不是utf8
- CSS属性(根据继承性分为两类)
- 文件上传 java 完美,vue+java实现文件上传(excel等),会出现跨域问题,直接用form表单提交就不会有问题了(new FormData())...
- 自动搜索数据增强方法分享——fast-autoaugment
- 安卓开发 登录用户信息缓存_在Linux上使用finger命令查询登录用户信息
- 知方可补不足~CSS中margin,padding,border-style有几种书写规范
- 计算机音乐lover88,Lover Boy 88-Higher Brothers/Phum Viphurit
- 调用iframe 中的js[兼容各种浏览器]
- excel计算机二级考试试题,计算机二级考试Excel操作考试题.doc
- 发现美,欣赏美,美之我见
- BlazeDS知识积累
- 如何用Python爬取你的微信好友信息
- django个人博客
- 负数补码(16进制转10进制的负数)
- 这些商业心理你了解吗?
- jquery实现最美照片背景色插件
- Zabbix批量增加节点方法(自动发现及Json API)
热门文章
- 扩张的矩阵三要素——时间、空间和事件
- assets文件使用
- reference to ‘ max‘ is ambiguous
- Adobe 奇葩续费机制被网友狂喷:中途取消计划必须付费 50%
- 开启安卓虚拟机后一直停在控制台页面_金九银十要来了?不要慌,这些安卓 BAT高级面试题刷一刷...
- sersync同步备份生产实例
- Computer - 设置电脑眼睛保护色
- python 笔记之“海龟”画图 演示画小猪佩奇,机器猫
- 静态资源压缩-nginx缓存问题
- 【编译原理】 CS143 斯坦福大学公开课 专栏总揽