浏览代码

AMBARI-9849 .log Files are not placed in the changed directory in Ambari 1.6 and 1.7 (dsen)

Dmytro Sen 10 年之前
父节点
当前提交
1eb9315d15

+ 3 - 0
ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/configuration/storm-env.xml

@@ -55,6 +55,9 @@
 # The java implementation to use.
 export JAVA_HOME={{java64_home}}
 
+# Storm log folder
+export STORM_LOG_DIR={{log_dir}}
+
 # export STORM_CONF_DIR=""
     </value>
   </property>

+ 0 - 5
ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/configuration/storm-site.xml

@@ -36,11 +36,6 @@
        filesystem usage it needs. The directory must exist and the Storm daemons must
        have permission to read/write from this location.</description>
   </property>
-  <property>
-    <name>storm.log.dir</name>
-    <value>{{log_dir}}</value>
-    <description>Log directory for Storm.</description>
-  </property>
   <property>
     <name>storm.zookeeper.servers</name>
     <value>['localhost']</value>

+ 6 - 0
ambari-server/src/main/resources/stacks/HDP/2.2/services/STORM/configuration/storm-site.xml

@@ -94,4 +94,10 @@
     <value>null</value>
     <description>min.user.id is set to the first real user id on the system. If value is 'null' than default value will be taken from key UID_MIN of /etc/login.defs otherwise the specified value will be used for all hosts.</description>
   </property>
+
+  <property>
+    <name>storm.log.dir</name>
+    <value>{{log_dir}}</value>
+    <description>Log directory for Storm.</description>
+  </property>
 </configuration>