Requested resource=<memory:-1, vCores:1>问题解决
场景:
故障出现在hive on tez的地方
故障复现:
启动hadoop并且离开安全模式
startmeta
hiveserver2
$HADOOP_HOME/bin/yarn timelineserver
beeline>insert into test(name,pwd,createdate)values('name1','pwd1','2017-06-20 14:14:09');
如下:
根据前面的info信息,得到application的id是:
1608265226746
打开yarn界面
报错是:
Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.yarn.exceptions.InvalidResourceRequestException): Invalid resource request, requested resource type=[memory-mb] < 0 or greater than maximum allowed allocation.
Requested resource=<memory:-1, vCores:1>, maximum allowed allocation=<memory:4096, vCores:2>,
please note that maximum allowed allocation is calculated by scheduler based on maximum resource of registered NodeManagers, which might be less than configured maximum allocation=<memory:9216, vCores:4>
讲人话是:
可分配的资源是<memory:4096, vCores:2>,
你要求的是<memory:-1, vCores:1>
你一定会问:
memory:-1啥意思?
这是因为
hive.tez.container.size默认值为-1
解决方案:
$HADOOP/etc/hadoop/tez-site.xml中修改为
<name>hive.tez.container.size</name>
<value>2048</value>
</property>
<name>tez.am.resource.memory.mb</name>
<value>2048</value>
</property>
注意这里的2048都需要大于等于yarn.scheduler.minimum-allocation-mb
我知道你会有疑问,我的tez-site.xml里面原本没有上述两个变量啊.
没事,你新添上去就好了.
最终效果:
Reference:
[1]Tez优化参数设置
[2]hive tez调优(3)
Requested resource=<memory:-1, vCores:1>问题解决相关推荐
- The requested resource is not available 问题解决
错误信息:The requested resource is not available 今天使用idea启动Tomcat服务器,访问web工程时出现了The requested resource i ...
- 报错:跨域问题解决 No ‘Access-Control-Allow-Origin‘ header is present on the requested resource.
报错: Access to XMLHttpRequest at 'http://127.0.0.1:8088/user/list' from origin 'http://localhost:8080 ...
- 解决springboot跨域问题No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
文章目录 1.问题描述 2.问题产生 3.解决方案 1. 在WebMvcConfig添加(推荐使用) 2.直接采用SpringBoot的注解@CrossOrigin 1.Controller层在需要跨 ...
- 【Ambari】设置yarn队列资源为绝对值[memory=10240,vcores=12,yarn.io/gpu=4]
目录 1.介绍 2 修改资源队列 API步骤 2.1 获取capacity-scheduler配置的tag和version 2.2 获取capacity-scheduler指定版本的配置 2.3 通过 ...
- No 'Access-Control-Allow-Origin' header is present on the requested resource.
/********************************************************************************** No 'Access-Contr ...
- js跨域访问,No 'Access-Control-Allow-Origin' header is present on the requested resource
js跨域访问提示错误:XMLHttpRequest cannot load http://...... No 'Access-Control-Allow-Origin' header is prese ...
- 新版本Chrome同源策略、跨域问题处理No ‘Access-Control-Allow-Origin‘ header is present on the requested resource.
本文的方法实用于本地调试浏览器的设置,如果想要彻底解决需要使用 CORS(跨域资源共享) [ 相关文章 ] Python 使用 CORS 跨域资源共享解决 flask 服务器跨域问题.浏览器同源策略 ...
- 解决跨域问题:No ‘Access-Control-Allow-Origin‘ header is present on the requested resource.
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. PS:如果遇到 这个问题 Request header field Content-Type is ...
- Oops! the requested resource is not found!
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 情况一:调用 dubbo 服务失败,报错如题:Oops! the requested resourc ...
最新文章
- 【ACM】 multiset 的 一些应用
- CMakeLists.txt从入门到精通
- GIF动图之父Stephen Wilhite去世,享年74岁
- 北京工业大学计算机科学与技术研究生,北京工业大学研究生专业介绍:计算机科学与技术...
- 超文本css样式换行
- vue组件transition的使用(demo演示) - 教程篇
- 实验大作业c语言实现简单ftp,C 语言实现 FTP 服务器
- 五人合伙最佳股份分配_【干货要点】再谈“类直营”——百果园的店长合伙人...
- 百行代码解读阿里 AloT 芯片平台无剑 100!
- UG标准件库的使用方法
- weak和alias
- 微信订阅号简易开发——小白攻略图文版
- 编程初学者的4大网站(免费)
- 字符串中空格相关操作
- 详细设计说明书-模板(referrence)
- 用Qt设计一个图片浏览器
- js实现文字滚动效果
- Hive查询报错:selectItem : ( ( exprexxxx ( ( ( KW_AS )......
- 关于环境专业学生/老师使用笔记本的调研
- gstreamer 调试相关命令
热门文章
- centos7下kubernetes(18。kubernetes-健康检查)
- shell 变量相关的命令
- 【Spring框架】 ☞ 项目启动时执行特定处理及ApplicationListener源码分析
- AJAX异步原理与实现
- 《Linux及安全》课程实践二
- Centos 7安装gvim
- urlrewrite伪静态 及多参数传递-附正则表达式语法 [轉]
- mysql查看数据库和表的占用空间大小
- poj 3417 树形dp+LCA
- Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight respo