-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34264/
-----------------------------------------------------------

Review request for Ambari and Vitalyi Brodetskyi.


Bugs: AMBARI-11162
    https://issues.apache.org/jira/browse/AMBARI-11162


Repository: ambari


Description
-------

It is dangerous for the NameNode to keep running if it encounters
`OutOfMemoryError`. There is some legacy code in the RPC handling layer that
catches `OutOfMemoryError`, and we're not going to be able to revert this
code. Instead, we can kill it externally by setting a JVM option. We would
like Ambari to configure the NameNode to run with this option:

    
    
    
    -XX:OnOutOfMemoryError="kill -9 %p"
    

This can be set in `HADOOP_NAMENODE_OPTS` in hadoop-env.sh.


Diffs
-----

  
ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/configuration/hadoop-env.xml
 108805f 

Diff: https://reviews.apache.org/r/34264/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk

Reply via email to