当前位置:网站首页>cdh的hue上oozie启动报错,Cannot allocate containers as requested resource is greater than maximum allowed
cdh的hue上oozie启动报错,Cannot allocate containers as requested resource is greater than maximum allowed
2022-08-01 23:26:00 【我要用代码向我喜欢的女孩表白】
Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.yarn.exceptions.InvalidResourceRequestException): Invalid resource request! Cannot allocate containers as requested resource is greater than maximum allowed allocation. Requested resource type=[memory-mb], Requested resource=<memory:2048, vCores:1>, maximum allowed allocation=<memory:1213, vCores:4>, 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:1213, vCores:4>

原因是,oozie启动资源默认,需要2GB
有2种方法
1.修改yarn资源调度的内存
2.修改oozie的默认值
这里我们修改oozie的默认值,将原来的2G改成了500MB

成功,没有报那个错误了

No Notification URL is defined. Therefore nothing to notify

我感觉很狗屁,于是我加大oozie的资源为2G,然后把yarn容器资源调成2.5G(在oozie和yarn的配置中)
oozie:
Default Launcher Memory
2G
yarn:
yarn.nodemanager.resource.memory-mb
2G
yarn.scheduler.maximum-allocation-mb
2.5G
网上说是正常的,在hue中是看不到原因。需要获取他的外部地址,去oozie页面看


跳转进hadoop,看日志


No child hadoop job is executed.
这是一个日志,相当于没有日志,只要是出错了,都会导致这种情况。
但是,上面的strErr说

Error: Error while compiling statement: FAILED: ParseException line 1:62 mismatched input '-' expecting ) near '2022' in add partition statement (state=42000,code=40000)
发现了问题,是我的sql问题,我分区的sql是yyyyMMdd,但是我传过去的动态时间是,用的oozie自带的

所以就没有办法格式化,于是我改成了他

成功了

边栏推荐
- YOLO等目标检测模型的非极大值抑制NMS和评价指标(Acc, Precision, Recall, AP, mAP, RoI)、YOLOv5中[email protected]与
- 仿牛客网项目第三章:开发社区核心功能(详细步骤和思路)
- Chapter 12 End-User Task As Shell Scripts
- 浅析多服务在分布式系统下多事务通信处理机制方案
- vscode hide menu bar
- SQL Server(设计数据库--存储过程--触发器)
- excel edit a cell without double clicking
- 基于JAX的激活函数、softmax函数和交叉熵函数
- excel vertical to horizontal
- 最短路模板
猜你喜欢

DRF generating serialization class code

Dynamic Scene Deblurring with Parameter Selective Sharing and Nested Skip Connections

The monthly salary of the test post is 5-9k, how to increase the salary to 25k?

6134. Find the closest node to the given two nodes - force double hundred code

C语言——分支语句和循环语句

UML diagram of soft skills

仿牛客网项目第三章:开发社区核心功能(详细步骤和思路)

Codeforces CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) A-D 题解

从0到1:图文投票小程序设计与研发笔记
![[C language advanced] file operation (2)](/img/4d/49d9603aeed16f1600d69179477eb3.png)
[C language advanced] file operation (2)
随机推荐
请问什么是 CICD
numpy.unique
UML diagram of soft skills
numpy.around
npm包【详解】(内含npm包的开发、发布、安装、更新、搜索、卸载、查看、版本号更新规则、package.json详解等)
IDEA common plugins
D - Linear Probing- 并查集
6133. 分组的最大数量
Building a cloud-native DevOps environment
System availability: 3 9s, 4 9s in SRE's mouth... What is it?
Dynamic Scene Deblurring with Parameter Selective Sharing and Nested Skip Connections
基于JAX的激活函数、softmax函数和交叉熵函数
Always use "noopener" or "noreferrer" for links that open in a new tab
excel edit a cell without double clicking
prim生成树
论文理解【RL - Exp Replay】—— Experience Replay with Likelihood-free Importance Weights
Three, mysql storage engine - building database and table operation
E - Integer Sequence Fair
excel cell contian two words, seperated by a slash
DRF generating serialization class code