初心 - Azkaban
type: channel
link: https://mayanpeng.cn/tag/Azkaban/
items: Azkaban 常见错误
items: Azkaban异常：Cannot request memory (Xms 0 kb, Xmx 0 kb) from system for job XX, sleep for 60 secs and retry, attempt 1 of 72

Azkaban 常见错误
type: item
date: 2020-03-06T12:15:00+08:00
description: Azkaban 常见错误1. 创建project时ERROR: Insert projecttest for existing project failed.创建project时报ERROR: Insert projecttest for existing project failed.错误，需要检查项目名称和描述中是否有中文。2. 首次运行时可能的报错ERROR [ExecutorServlet] [Azkaban] executor became inactive before setting up the flow 1 azkaban.executor.ExecutorManagerException: executor became inactive before setting up the flow 1需要手动去激活一下 executor，方式如下：curl -G "localhost:$(<./executor.port)/executor?action=activate" && echo3. 执行 Flow 一直处于 Preparing 状态修改 web-server conf/azkaban.properties 配置execute 主机过滤器配置, 去掉 MinimumFreeMemoryMinimumFreeMemory 过滤器会检查 executor 主机空余内存是否会大于 6G，如果不足 6G，则 web-server 不会将任务交由该主机执行azkaban.executorselector.filters=StaticRemainingFlowSize,CpuStatus

Azkaban异常：Cannot request memory (Xms 0 kb, Xmx 0 kb) from system for job XX, sleep for 60 secs and retry, attempt 1 of 72
type: item
date: 2020-01-13T15:30:27+08:00
description: 一、原因：azkaban默认情况下在开始运行job时会检测系统的内存，其最低要求的内存是3G，若系统内存不足3G，便会出现运行的job一直卡在那不动。二、解决办法：增加系统内存关闭检测内存的选项。具体办法为，在azkaban/azkaban-exec-server/plugins/jobtypes/目录下的commonprivate.properties的文件中添加一下内容：memCheck.enabled=false添加后重启服务即可。