You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jl...@apache.org on 2015/12/10 04:24:33 UTC

ambari git commit: AMBARI-14300: Remove storm-cluster-logs and storm-worker-logs config upgrade properties (jluniya)

Repository: ambari
Updated Branches:
  refs/heads/trunk cb407d0ee -> 2d259af94


AMBARI-14300: Remove storm-cluster-logs and storm-worker-logs config upgrade properties (jluniya)


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

Branch: refs/heads/trunk
Commit: 2d259af943071acb56b3b3cb63031648b76a39c2
Parents: cb407d0
Author: Jayush Luniya <jl...@hortonworks.com>
Authored: Wed Dec 9 19:24:27 2015 -0800
Committer: Jayush Luniya <jl...@hortonworks.com>
Committed: Wed Dec 9 19:24:27 2015 -0800

----------------------------------------------------------------------
 .../HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml |   8 -
 .../HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml |   8 -
 .../stacks/HDP/2.2/upgrades/upgrade-2.3.xml     |   4 -
 .../stacks/HDP/2.3/upgrades/config-upgrade.xml  | 159 +------------------
 4 files changed, 1 insertion(+), 178 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2d259af9/ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml b/ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml
index 678b5ab..b901cd5 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml
@@ -332,14 +332,6 @@
       </execute-stage>
 
       <execute-stage service="STORM" component="NIMBUS" title="Apply config changes for Nimbus">
-        <task xsi:type="configure" id="hdp_2_3_0_0_add_storm_cluster_logs_content"/>
-      </execute-stage>
-
-      <execute-stage service="STORM" component="NIMBUS" title="Apply config changes for Nimbus">
-        <task xsi:type="configure" id="hdp_2_3_0_0_add_storm_worker_logs_content"/>
-      </execute-stage>
-
-      <execute-stage service="STORM" component="NIMBUS" title="Apply config changes for Nimbus">
         <task xsi:type="configure" id="hdp_2_3_0_0_nimbus_update_env_vars"/>
       </execute-stage>
     </group>

http://git-wip-us.apache.org/repos/asf/ambari/blob/2d259af9/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml
index fb39f00..d27b217 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml
@@ -486,14 +486,6 @@
       </execute-stage>
 
       <execute-stage service="STORM" component="NIMBUS" title="Apply config changes for Nimbus">
-        <task xsi:type="configure" id="hdp_2_3_0_0_add_storm_cluster_logs_content"/>
-      </execute-stage>
-
-      <execute-stage service="STORM" component="NIMBUS" title="Apply config changes for Nimbus">
-        <task xsi:type="configure" id="hdp_2_3_0_0_add_storm_worker_logs_content"/>
-      </execute-stage>
-
-      <execute-stage service="STORM" component="NIMBUS" title="Apply config changes for Nimbus">
         <task xsi:type="configure" id="hdp_2_3_0_0_nimbus_update_env_vars"/>
       </execute-stage>
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/2d259af9/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml
index 26f4611..289e790 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml
@@ -860,10 +860,6 @@
           <task xsi:type="configure" id="hdp_2_3_0_0_nimbus_convert_nimbus_host_to_seeds"/>
           
           <task xsi:type="configure" id="hdp_2_3_0_0_update_storm_env"/>
-          
-          <task xsi:type="configure" id="hdp_2_3_0_0_add_storm_cluster_logs_content"/>
-          
-          <task xsi:type="configure" id="hdp_2_3_0_0_add_storm_worker_logs_content"/>
 
           <task xsi:type="configure" id="hdp_2_3_0_0_nimbus_update_env_vars"/>
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/2d259af9/ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/config-upgrade.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/config-upgrade.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/config-upgrade.xml
index 6f4f7c3..51c6029 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/config-upgrade.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/config-upgrade.xml
@@ -787,164 +787,7 @@
             <type>storm-env</type>
             <set key="storm_logs_supported" value="true" />
           </definition>
-          <definition id="hdp_2_3_0_0_add_storm_cluster_logs_content">
-            <type>storm-cluster-log4j</type>
-            <set key="content" value="&lt;!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements.  See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the &quot;License&quot;); you may not use this file except in compliance with
- the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
---&gt;
-
-&lt;configuration monitorInterval=&quot;60&quot;&gt;
-&lt;properties&gt;
-    &lt;property name=&quot;pattern&quot;&gt;%d{yyyy-MM-dd HH:mm:ss.SSS} %c{1.} [%p] %msg%n&lt;/property&gt;
-    &lt;property name=&quot;patternMetris&quot;&gt;%d %-8r %m%n&lt;/property&gt;
-&lt;/properties&gt;
-&lt;appenders&gt;
-    &lt;RollingFile name=&quot;A1&quot;
-                 fileName=&quot;${sys:storm.log.dir}/${sys:logfile.name}&quot;
-                 filePattern=&quot;${sys:storm.log.dir}/${sys:logfile.name}.%i&quot;&gt;
-        &lt;PatternLayout&gt;
-            &lt;pattern&gt;${pattern}&lt;/pattern&gt;
-        &lt;/PatternLayout&gt;
-        &lt;Policies&gt;
-            &lt;SizeBasedTriggeringPolicy size=&quot;100 MB&quot;/&gt; &lt;!-- Or every 100 MB --&gt;
-        &lt;/Policies&gt;
-        &lt;DefaultRolloverStrategy max=&quot;9&quot;/&gt;
-    &lt;/RollingFile&gt;
-    &lt;RollingFile name=&quot;ACCESS&quot;
-                 fileName=&quot;${sys:storm.log.dir}/access.log&quot;
-                 filePattern=&quot;${sys:storm.log.dir}/access.log.%i&quot;&gt;
-        &lt;PatternLayout&gt;
-            &lt;pattern&gt;${pattern}&lt;/pattern&gt;
-        &lt;/PatternLayout&gt;
-        &lt;Policies&gt;
-            &lt;SizeBasedTriggeringPolicy size=&quot;100 MB&quot;/&gt; &lt;!-- Or every 100 MB --&gt;
-        &lt;/Policies&gt;
-        &lt;DefaultRolloverStrategy max=&quot;9&quot;/&gt;
-    &lt;/RollingFile&gt;
-    &lt;RollingFile name=&quot;METRICS&quot;
-                 fileName=&quot;${sys:storm.log.dir}/metrics.log&quot;
-                 filePattern=&quot;${sys:storm.log.dir}/metrics.log.%i&quot;&gt;
-        &lt;PatternLayout&gt;
-            &lt;pattern&gt;${patternMetris}&lt;/pattern&gt;
-        &lt;/PatternLayout&gt;
-        &lt;Policies&gt;
-            &lt;SizeBasedTriggeringPolicy size=&quot;2 MB&quot;/&gt; &lt;!-- Or every 100 MB --&gt;
-        &lt;/Policies&gt;
-        &lt;DefaultRolloverStrategy max=&quot;9&quot;/&gt;
-    &lt;/RollingFile&gt;
-    &lt;Syslog name=&quot;syslog&quot; format=&quot;RFC5424&quot; host=&quot;localhost&quot; port=&quot;514&quot;
-            protocol=&quot;UDP&quot; appName=&quot;[${sys:daemon.name}]&quot; mdcId=&quot;mdc&quot; includeMDC=&quot;true&quot;
-            facility=&quot;LOCAL5&quot; enterpriseNumber=&quot;18060&quot; newLine=&quot;true&quot; exceptionPattern=&quot;%rEx{full}&quot;
-            messageId=&quot;[${sys:user.name}:S0]&quot; id=&quot;storm&quot;/&gt;
-&lt;/appenders&gt;
-&lt;loggers&gt;
-
-    &lt;Logger name=&quot;backtype.storm.security.auth.authorizer&quot; level=&quot;info&quot;&gt;
-        &lt;AppenderRef ref=&quot;ACCESS&quot;/&gt;
-    &lt;/Logger&gt;
-    &lt;Logger name=&quot;backtype.storm.metric.LoggingMetricsConsumer&quot; level=&quot;info&quot;&gt;
-        &lt;AppenderRef ref=&quot;METRICS&quot;/&gt;
-    &lt;/Logger&gt;
-    &lt;root level=&quot;info&quot;&gt; &lt;!-- We log everything --&gt;
-        &lt;appender-ref ref=&quot;A1&quot;/&gt;
-        &lt;appender-ref ref=&quot;syslog&quot;/&gt;
-    &lt;/root&gt;
-&lt;/loggers&gt;
-&lt;/configuration&gt;"/>
-          </definition>
-          <definition id="hdp_2_3_0_0_add_storm_worker_logs_content">
-            <type>storm-worker-log4j</type>
-            <set key="content" value="&lt;!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the &quot;License&quot;); you may not use this file except in compliance with
-the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
---&gt;
-
-&lt;configuration monitorInterval=&quot;60&quot;&gt;
-&lt;properties&gt;
-    &lt;property name=&quot;pattern&quot;&gt;%d{yyyy-MM-dd HH:mm:ss.SSS} %c{1.} [%p] %msg%n&lt;/property&gt;
-    &lt;property name=&quot;patternNoTime&quot;&gt;%msg%n&lt;/property&gt;
-&lt;/properties&gt;
-&lt;appenders&gt;
-    &lt;RollingFile name=&quot;A1&quot;
-                 fileName=&quot;${sys:storm.log.dir}/${sys:logfile.name}&quot;
-                 filePattern=&quot;${sys:storm.log.dir}/${sys:logfile.name}.%i.gz&quot;&gt;
-        &lt;PatternLayout&gt;
-            &lt;pattern&gt;${pattern}&lt;/pattern&gt;
-        &lt;/PatternLayout&gt;
-        &lt;Policies&gt;
-            &lt;SizeBasedTriggeringPolicy size=&quot;100 MB&quot;/&gt; &lt;!-- Or every 100 MB --&gt;
-        &lt;/Policies&gt;
-        &lt;DefaultRolloverStrategy max=&quot;9&quot;/&gt;
-    &lt;/RollingFile&gt;
-    &lt;RollingFile name=&quot;STDOUT&quot;
-                 fileName=&quot;${sys:storm.log.dir}/${sys:logfile.name}.out&quot;
-                 filePattern=&quot;${sys:storm.log.dir}/${sys:logfile.name}.out.%i.gz&quot;&gt;
-        &lt;PatternLayout&gt;
-            &lt;pattern&gt;${patternNoTime}&lt;/pattern&gt;
-        &lt;/PatternLayout&gt;
-        &lt;Policies&gt;
-            &lt;SizeBasedTriggeringPolicy size=&quot;100 MB&quot;/&gt; &lt;!-- Or every 100 MB --&gt;
-        &lt;/Policies&gt;
-        &lt;DefaultRolloverStrategy max=&quot;4&quot;/&gt;
-    &lt;/RollingFile&gt;
-    &lt;RollingFile name=&quot;STDERR&quot;
-                 fileName=&quot;${sys:storm.log.dir}/${sys:logfile.name}.err&quot;
-                 filePattern=&quot;${sys:storm.log.dir}/${sys:logfile.name}.err.%i.gz&quot;&gt;
-        &lt;PatternLayout&gt;
-            &lt;pattern&gt;${patternNoTime}&lt;/pattern&gt;
-        &lt;/PatternLayout&gt;
-        &lt;Policies&gt;
-            &lt;SizeBasedTriggeringPolicy size=&quot;100 MB&quot;/&gt; &lt;!-- Or every 100 MB --&gt;
-        &lt;/Policies&gt;
-        &lt;DefaultRolloverStrategy max=&quot;4&quot;/&gt;
-    &lt;/RollingFile&gt;
-    &lt;Syslog name=&quot;syslog&quot; format=&quot;RFC5424&quot; host=&quot;localhost&quot; port=&quot;514&quot;
-        protocol=&quot;UDP&quot; appName=&quot;[${sys:storm.id}:${sys:worker.port}]&quot; mdcId=&quot;mdc&quot; includeMDC=&quot;true&quot;
-        facility=&quot;LOCAL5&quot; enterpriseNumber=&quot;18060&quot; newLine=&quot;true&quot; exceptionPattern=&quot;%rEx{full}&quot;
-        messageId=&quot;[${sys:user.name}:${sys:logging.sensitivity}]&quot; id=&quot;storm&quot;/&gt;
-&lt;/appenders&gt;
-&lt;loggers&gt;
-    &lt;root level=&quot;info&quot;&gt; &lt;!-- We log everything --&gt;
-        &lt;appender-ref ref=&quot;A1&quot;/&gt;
-        &lt;appender-ref ref=&quot;syslog&quot;/&gt;
-    &lt;/root&gt;
-    &lt;Logger name=&quot;STDERR&quot; level=&quot;INFO&quot;&gt;
-        &lt;appender-ref ref=&quot;STDERR&quot;/&gt;
-        &lt;appender-ref ref=&quot;syslog&quot;/&gt;
-    &lt;/Logger&gt;
-    &lt;Logger name=&quot;STDOUT&quot; level=&quot;INFO&quot;&gt;
-        &lt;appender-ref ref=&quot;STDOUT&quot;/&gt;
-        &lt;appender-ref ref=&quot;syslog&quot;/&gt;
-    &lt;/Logger&gt;
-&lt;/loggers&gt;
-&lt;/configuration&gt;"/>
-          </definition>
-          
+
           <definition xsi:type="configure" id="hdp_2_3_0_0_nimbus_monitor_freq_adjustment">
             <condition type="storm-site" key="nimbus.monitor.freq.secs" value="10">
               <type>storm-site</type>