Hadoop 常见问题 常见错误

  1. 启用Heap Dump

In each script, there is an export for *_OPTS, which contains the options passed to the JVM. For example, in the hadoop-env.sh script, the line that begins with export HADOOP_NAMENODE_OPTS= contains the options for the NameNode service.

Map and reduce processes are slightly different, as these are a child process of the MapReduce service. Each map or reduce process runs in a child container, and there are two entries that contain the JVM options for these. Both contained in mapred-site.xml:

  • mapreduce.admin.map.child.java.opts
  • mapreduce.admin.reduce.child.java.opts

-XX:+HeapDumpOnOutOfMemoryError enables heap dumps when an OutOfMemoryError occurs; The default location for the dump file is the current working directory. You can control where the file is stored using the following option -XX:HeapDumpPath=/path.

E.g. Hadoop-env.sh :  export Hadoop_NAMENODE_OPTS="-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp...". When enabling heap dumps for the map or reduce child process, you will instead look for the fields labled mapreduce.admin.map.child.java.opts and mapreduce.admin.reduce.child.java.opts.

转载于:https://www.cnblogs.com/chinesedream/p/4983798.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值