default_container_executor_session.sh是如何生成的
时间: 2023-11-29 18:03:49 浏览: 117
default_container_executor_session.sh是由Apache Hadoop YARN框架的源代码生成的。在Hadoop YARN中,这个脚本是用于启动和管理容器的,容器是在YARN集群中运行的任务实例。这个脚本包含了所有必要的命令和参数来启动一个容器,包括环境变量、Java命令、JVM参数等等。它是通过编译源代码和执行相应的构建命令生成的,具体的生成过程可以参考Hadoop YARN的开发文档。
相关问题
default_container_executor_session.sh: line 5: exec: setsid: not found
这个问题可能是因为您的系统缺少了setsid这个命令,导致脚本无法正常执行。您可以尝试在终端中输入命令“which setsid”来查看是否已经安装了该命令。如果没有安装,您可以通过安装util-linux包来解决这个问题。具体方法取决于您使用的Linux发行版,您可以在终端中输入“sudo apt-get install util-linux”或“yum install util-linux”等命令进行安装。如果您已经安装了util-linux包,但仍遇到这个问题,可能是因为PATH环境变量不正确,您可以尝试在脚本中使用绝对路径来执行setsid命令。
预期的结果是字段值按逗号分割,以行的形式展示,然后再group by这些分割出来的字段值,求一个对应的数量,我表达的意思你理解了吗?我把正确的oracle的SQL发给你,你帮我改成pgsql语法的:select t.executor_id, t.EXECUTOR, count(t.executor_id) allcount from( with t as ( select t.executor_id, t.executor from EMP_REPAIR_WORKORDER_BASEINFO t where to_char(t.Create_Date, 'YYYY-MM') = to_char(sysdate, 'YYYY-MM')) select regexp_substr(executor_id, '[^,]+', 1, level) AS executor_id, regexp_substr(executor, '[^,]+', 1, level) executor from t connect by level <= regexp_count(executor_id, '[^,]+') and executor_id = prior executor_id and prior dbms_random.value > 0 ) t group by t.executor_id, t.EXECUTOR
以下是转换后的pgsql语法:
SELECT t.executor_id, t.EXECUTOR, COUNT(t.executor_id) allcount
FROM (
WITH t AS (
SELECT t.executor_id, t.executor
FROM EMP_REPAIR_WORKORDER_BASEINFO t
WHERE to_char(t.Create_Date, 'YYYY-MM') = to_char(now(), 'YYYY-MM')
)
SELECT split_part(executor_id, ',', level) AS executor_id, split_part(executor, ',', level) AS executor
FROM t
CONNECT BY level <= regexp_count(executor_id, '[^,] ')
AND executor_id = PRIOR executor_id
AND PRIOR random() > 0
) t
GROUP BY t.executor_id, t.EXECUTOR;
阅读全文