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


1. Regarding 
  ulimit_cmd = "ulimit -c unlimited && if [ `ulimit -c` != 'unlimited' ]; then 
exit 1; fi && "
Let's add some special exit code like 77 that will be returned if there is a 
problem with ulimit. That will allow us to distinguish between ulimit fail and 
Hadoop fail when reading logs. And/or we may add some statement like 
'echo "ulimit status: `ulimit -c`"'
for this purpose.

2. In current implementation, we don't touch ulimit settings when running under 
Oracle Linux. That is probably ok, as enabling them requires too much 
customizations and affects entire customer system, as described here  
http://www.akadia.com/services/ora_enable_core.html . But this topic might be 
worth mentioning at documentation.

- Dmitro Lisnichenko


On Jan. 17, 2014, 6:16 p.m., Dmytro Shkvyra wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/17052/
> -----------------------------------------------------------
> 
> (Updated Jan. 17, 2014, 6:16 p.m.)
> 
> 
> Review request for Ambari, Dmitro Lisnichenko and Mahadev Konar.
> 
> 
> Bugs: AMBARI-4055
>     https://issues.apache.org/jira/browse/AMBARI-4055
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> I have add set ulimit for HDFS for all Os'es except Oracle Linux because 
> Oracle Linux security http://www.akadia.com/services/ora_enable_core.html
> Also, I have improved checking of Linux platfom.
> 
> 
> Diffs
> -----
> 
>   ambari-agent/src/main/python/resource_management/core/system.py b5857cb 
>   
> ambari-server/src/main/resources/stacks/HDP/1.3.4/services/HDFS/package/scripts/params.py
>  3e0e65b 
>   
> ambari-server/src/main/resources/stacks/HDP/1.3.4/services/HDFS/package/scripts/utils.py
>  e28d0e9 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.8/services/HDFS/package/scripts/params.py
>  685e25f 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.8/services/HDFS/package/scripts/utils.py
>  225cd2e 
> 
> Diff: https://reviews.apache.org/r/17052/diff/
> 
> 
> Testing
> -------
> 
> A have tested my patch with Centos6/HDP-2.0.8 and HDP-1.3.4
> 
> 
> Thanks,
> 
> Dmytro Shkvyra
> 
>

Reply via email to