Author: swagle
Date: Tue Apr 16 22:34:27 2013
New Revision: 1468648
URL: http://svn.apache.org/r1468648
Log:
AMBARI-1948. System logs are not present on tasktracker. (swagle)
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/tasktracker.pp
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1468648&r1=1468647&r2=1468648&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Tue Apr 16 22:34:27 2013
@@ -745,6 +745,8 @@ Trunk (unreleased changes):
BUG FIXES
+ AMBARI-1948. System logs are not present on tasktracker. (swagle)
+
AMBARI-1947. Oozie Smoke test fails with errors on the start services/install
page. (swagle)
Modified:
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/tasktracker.pp
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/tasktracker.pp?rev=1468648&r1=1468647&r2=1468648&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/tasktracker.pp
(original)
+++
incubator/ambari/trunk/ambari-agent/src/main/puppet/modules/hdp-hadoop/manifests/tasktracker.pp
Tue Apr 16 22:34:27 2013
@@ -52,6 +52,18 @@ class hdp-hadoop::tasktracker(
owner => $hdp-hadoop::params::mapred_user
}
}
+
+ $task_log4j_properties_location = "${conf_dir}/task-log4j.properties"
+
+ file { $task_log4j_properties_location:
+ owner => $hdp-hadoop::params::mapred_user,
+ group => $hdp::params::user_group,
+ mode => 664,
+ ensure => present,
+ source => "puppet:///modules/hdp-hadoop/task-log4j.properties",
+ replace => false
+ }
+
hdp-hadoop::tasktracker::create_local_dirs { $mapred_local_dir:
service_state => $service_state
@@ -74,7 +86,7 @@ class hdp-hadoop::tasktracker(
#top level does not need anchors
Class['hdp-hadoop'] -> Hdp-hadoop::Service['tasktracker']
- Hdp-hadoop::Tasktracker::Create_local_dirs<||> ->
Hdp-hadoop::Service['tasktracker']
+ Hdp-hadoop::Tasktracker::Create_local_dirs<||> ->
File[$task_log4j_properties_location]-> Hdp-hadoop::Service['tasktracker']
} else {
hdp_fail("TODO not implemented yet: service_state = ${service_state}")
}