Oozie gt; Java action gt; why property oozie.launcher.mapred.child.java.opts does not work(乌兹 gt;Java 动作 gt;为什么属性 oozie.launcher.mapred.child.java.opts 不起作用)
问题描述
我正在使用 Java 操作开发 Oozie.Java 操作应使用 Java 选项 -Xmx15g.因此,我将属性 oozie.mapreduce.map.memory.mb 设置为 25600 (25G),以防需要一些额外的内存.
I am working on Oozie with a Java action. The Java action should use Java option -Xmx15g. Accordingly I set the property oozie.mapreduce.map.memory.mb to 25600 (25G) in case some extra memory is needed.
在这个简单的设置之后,我运行了 Oozie 作业,然后在 Java 运行时当然会出现 OutofMemory(堆空间不足)错误.
After this simple setting, I ran the Oozie job, then there was of course OutofMemory (heap out of space) error during Java runtime.
所以我在基于链接的 Java 操作的属性节点中将 oozie.launcher.mapred.child.java.opts 设置为 -Xmx15g:http://downright-amazed.blogspot.fi/2012/02/configure-oozies-launcher-job.html.但我仍然遇到同样的 OutofMemory 错误.然后我尝试将 -Xmx15g 添加到 Java 操作节点内的节点 java-opts 中.这工作得很好,但如果是这样的话,还有属性 oozie.launcher.mapred.child.java.opts 是什么鬼?
So I set oozie.launcher.mapred.child.java.opts as -Xmx15g accordingly in the property node of the Java action based on the link: http://downright-amazed.blogspot.fi/2012/02/configure-oozies-launcher-job.html. But I still got the same OutofMemory error. Then I tried to add -Xmx15g to the node java-opts inside the Java action node. This worked fine, but if so whats the hell there is still the property oozie.launcher.mapred.child.java.opts?
有人知道为什么会这样吗?请就为什么会这样发表一些评论.提前致谢.
Anyone has any idea why it is like that? Please given some comments on why it is like that. Thanks in advance.
我真的觉得 Oozie 不是一个好用的工具.
I really feel that Oozie is not a handy tool.
推荐答案
我不确定 mapred.child.java.opts 中的任务"是什么意思
尝试 mapreduce.map.java.opts,如下例所示:
<configuration>
<property>
<name>oozie.launcher.mapreduce.map.memory.mb</name>
<value>16384</value>
</property>
<property>
<name>oozie.launcher.mapreduce.map.java.opts</name>
<value>-Xmx15g</value>
</property>
<property>
<name>oozie.launcher.yarn.app.mapreduce.am.resource.mb</name>
<value>768</value>
</property>
<property>
<name>oozie.launcher.yarn.app.mapreduce.am.command-opts</name>
<value>-Xmx512m</value>
</property>
<property>
<name>oozie.launcher.mapred.job.queue.name</name>
<value>default</value>
</property>
</configuration>
这篇关于乌兹 >Java 动作 >为什么属性 oozie.launcher.mapred.child.java.opts 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:乌兹 >Java 动作 >为什么属性 oozie.launcher.mapred.child.java.opts 不起作用
基础教程推荐
- JPA惰性列表上的流 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- 将 Windows 证书导入 Java 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
- Maven:无效的目标版本:10 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
