You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2013/12/12 19:35:48 UTC

git commit: AMBARI-4055. set core file size on hosts to get core dump when JVM crashes (Dmytro Shkvyra via dlysnichenko)

Updated Branches:
  refs/heads/trunk bbd150371 -> 4e41f12f7


AMBARI-4055. set core file size on hosts to get core dump when JVM crashes (Dmytro Shkvyra via dlysnichenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4e41f12f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4e41f12f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4e41f12f

Branch: refs/heads/trunk
Commit: 4e41f12f7060605896affd1d30f3335694d4c434
Parents: bbd1503
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Thu Dec 12 20:35:00 2013 +0200
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Thu Dec 12 20:35:00 2013 +0200

----------------------------------------------------------------------
 .../src/main/puppet/modules/hdp-hadoop/manifests/service.pp       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4e41f12f/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/service.pp
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/service.pp b/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/service.pp
index 98def76..ae55775 100644
--- a/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/service.pp
+++ b/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/service.pp
@@ -48,9 +48,10 @@ define hdp-hadoop::service(
   } 
 
   $log_dir = "${hdp-hadoop::params::hdfs_log_dir_prefix}/${user}"
+  $set_ulimit_cmd = "ulimit -c unlimited && if [ `ulimit -c` != 'unlimited' ]; then exit 1; fi"
   $hadoop_daemon = "export HADOOP_LIBEXEC_DIR=${hadoop_libexec_dir} && ${hdp::params::hadoop_bin}/hadoop-daemon.sh"
    
-  $cmd = "${hadoop_daemon} --config ${hdp-hadoop::params::conf_dir}"
+  $cmd = "${set_ulimit_cmd} && ${hadoop_daemon} --config ${hdp-hadoop::params::conf_dir}"
   if ($ensure == 'running') {
     if ($run_as_root == true) {
       $daemon_cmd = "su - root -c  '${cmd} start ${name}'"