From d03c4df3395bd258b541977f08472b38de577ef2 Mon Sep 17 00:00:00 2001 From: Jim Dowling Date: Mon, 29 Aug 2016 21:04:26 +0200 Subject: [PATCH] fix kagent logfile paths --- recipes/dn.rb | 2 +- recipes/nn.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/dn.rb b/recipes/dn.rb index f8f1157..478b502 100755 --- a/recipes/dn.rb +++ b/recipes/dn.rb @@ -83,7 +83,7 @@ #if node.kagent.enabled == "true" kagent_config "#{service_name}" do service "HDFS" - log_file "#{node.apache_hadoop.logs_dir}/hadoop-#{node.apache_hadoop.hdfs.user}-#{service_name}-#{node.hostname}.out" + log_file "#{node.apache_hadoop.logs_dir}/hadoop-#{node.apache_hadoop.hdfs.user}-#{service_name}-#{node.hostname}.log" config_file "#{node.apache_hadoop.conf_dir}/hdfs-site.xml" web_port node.apache_hadoop.dn.http_port # command "hdfs" diff --git a/recipes/nn.rb b/recipes/nn.rb index b8f388c..e5719d3 100755 --- a/recipes/nn.rb +++ b/recipes/nn.rb @@ -148,7 +148,7 @@ kagent_config "#{service_name}" do service "HDFS" config_file "#{node.apache_hadoop.conf_dir}/hdfs-site.xml" - log_file "#{node.apache_hadoop.logs_dir}/hadoop-#{node.apache_hadoop.hdfs.user}-#{service_name}-#{node.hostname}.out" + log_file "#{node.apache_hadoop.logs_dir}/hadoop-#{node.apache_hadoop.hdfs.user}-#{service_name}-#{node.hostname}.log" web_port node.apache_hadoop.nn.http_port end end