Oozie> Java动作>为什么财产oozie.launcher.mapred.child.java.opts不起作用 [英] Oozie > Java action > why property oozie.launcher.mapred.child.java.opts does not work

查看:573
本文介绍了Oozie> Java动作>为什么财产oozie.launcher.mapred.child.java.opts不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Java操作来处理Oozie。 Java操作应该使用Java选项-Xmx15g。因此,我将属性oozie.mapreduce.map.memory.mb设置为25600(25G),以防需要额外的内存。

经过这个简单的设置,我运行了Oozie作业,然后在Java运行时出现OutofMemory(堆空间不足)错误。

因此,我根据以下链接将oozie.launcher.mapred.child.java.opts设置为-Xmx15g在Java操作的属性节点中: http://downright-amazed.blogspot.fi/2012/02/configure -oozies-发射-job.html 。但是我仍然有相同的OutofMemory错误。然后我尝试将-Xmx15g添加到Java操作节点内的节点java-opts。这工作得很好,但如果是这样,地狱还有属性oozie.launcher.mapred.child.java.opts?

任何人都知道为什么它是这样的?请给出一些评论,为什么它是这样的。感谢提前。



我真的觉得Oozie不是一个方便的工具。 div>

我不确定在 mapred.child.java.opts



尝试使用 mapreduce.map.java.opts ,如下例所示:

 <结构> 
<属性>
< name> oozie.launcher.mapreduce.map.memory.mb< / name>
<值> 16384< /值>
< / property>
<属性>
< name> oozie.launcher.mapreduce.map.java.opts< / name>
<值> -Xmx15g< /值>
< / property>
<属性>
<名称> oozie.launcher.yarn.app.mapreduce.am.resource.mb< / name>
<值> 768< /值>
< / property>
<属性>
< name> oozie.launcher.yarn.app.mapreduce.am.command-opts< / name>
<值> -Xmx512m< /值>
< / property>
<属性>
<名称> oozie.launcher.mapred.job.queue.name< /名称>
<值>默认值< /值>
< / property>
< / configuration>


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.

After this simple setting, I ran the Oozie job, then there was of course OutofMemory (heap out of space) error during Java runtime.

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.

I really feel that Oozie is not a handy tool.

解决方案

I am not sure what "task" means in mapred.child.java.opts

Try mapreduce.map.java.opts instead, as in this example:

<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>

这篇关于Oozie&gt; Java动作&gt;为什么财产oozie.launcher.mapred.child.java.opts不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆