Repository: ambari Updated Branches: refs/heads/trunk 640d15232 -> f30f9b581
AMBARI-13611. Storm components fail to install on trunk (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f30f9b58 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f30f9b58 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f30f9b58 Branch: refs/heads/trunk Commit: f30f9b58148604f5dac7bdae4ad094bda6a0465d Parents: 640d152 Author: Andrew Onishuk <aonis...@hortonworks.com> Authored: Wed Oct 28 19:21:59 2015 +0200 Committer: Andrew Onishuk <aonis...@hortonworks.com> Committed: Wed Oct 28 19:21:59 2015 +0200 ---------------------------------------------------------------------- .../STORM/configuration/storm-cluster-log4j.xml | 112 ++++++++++++++++++ .../STORM/configuration/storm-worker-log4j.xml | 113 +++++++++++++++++++ 2 files changed, 225 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/f30f9b58/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-cluster-log4j.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-cluster-log4j.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-cluster-log4j.xml new file mode 100644 index 0000000..61a120d --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-cluster-log4j.xml @@ -0,0 +1,112 @@ +<?xml version="1.0"?> +<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> +<!-- +/** + * 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 + * "License"); 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 "AS IS" 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. + */ +--> + +<configuration supports_final="false"> + + <property> + <name>content</name> + <description>Custom cluster.xml</description> + <value> + <![CDATA[ +<!-- + 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 "License"); 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 "AS IS" 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. +--> + +<configuration monitorInterval="60"> +<properties> + <property name="pattern">%d{yyyy-MM-dd HH:mm:ss.SSS} %c{1.} [%p] %msg%n</property> + <property name="patternMetris">%d %-8r %m%n</property> +</properties> +<appenders> + <RollingFile name="A1" + fileName="${sys:storm.log.dir}/${sys:logfile.name}" + filePattern="${sys:storm.log.dir}/${sys:logfile.name}.%i"> + <PatternLayout> + <pattern>${pattern}</pattern> + </PatternLayout> + <Policies> + <SizeBasedTriggeringPolicy size="100 MB"/> <!-- Or every 100 MB --> + </Policies> + <DefaultRolloverStrategy max="9"/> + </RollingFile> + <RollingFile name="ACCESS" + fileName="${sys:storm.log.dir}/access.log" + filePattern="${sys:storm.log.dir}/access.log.%i"> + <PatternLayout> + <pattern>${pattern}</pattern> + </PatternLayout> + <Policies> + <SizeBasedTriggeringPolicy size="100 MB"/> <!-- Or every 100 MB --> + </Policies> + <DefaultRolloverStrategy max="9"/> + </RollingFile> + <RollingFile name="METRICS" + fileName="${sys:storm.log.dir}/metrics.log" + filePattern="${sys:storm.log.dir}/metrics.log.%i"> + <PatternLayout> + <pattern>${patternMetris}</pattern> + </PatternLayout> + <Policies> + <SizeBasedTriggeringPolicy size="2 MB"/> <!-- Or every 100 MB --> + </Policies> + <DefaultRolloverStrategy max="9"/> + </RollingFile> + <Syslog name="syslog" format="RFC5424" host="localhost" port="514" + protocol="UDP" appName="[${sys:daemon.name}]" mdcId="mdc" includeMDC="true" + facility="LOCAL5" enterpriseNumber="18060" newLine="true" exceptionPattern="%rEx{full}" + messageId="[${sys:user.name}:S0]" id="storm"/> +</appenders> +<loggers> + + <Logger name="backtype.storm.security.auth.authorizer" level="info"> + <AppenderRef ref="ACCESS"/> + </Logger> + <Logger name="backtype.storm.metric.LoggingMetricsConsumer" level="info"> + <AppenderRef ref="METRICS"/> + </Logger> + <root level="info"> <!-- We log everything --> + <appender-ref ref="A1"/> + <appender-ref ref="syslog"/> + </root> +</loggers> +</configuration> + ]]> + </value> + <value-attributes> + <show-property-name>false</show-property-name> + </value-attributes> + </property> + +</configuration> http://git-wip-us.apache.org/repos/asf/ambari/blob/f30f9b58/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-worker-log4j.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-worker-log4j.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-worker-log4j.xml new file mode 100644 index 0000000..0b5bfd1 --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-worker-log4j.xml @@ -0,0 +1,113 @@ +<?xml version="1.0"?> +<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> +<!-- +/** + * 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 + * "License"); 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 "AS IS" 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. + */ +--> + +<configuration supports_final="false"> + + <property> + <name>content</name> + <description>Custom worker.xml</description> + <value> + <![CDATA[ +<!-- + 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 "License"); 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 "AS IS" 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. +--> + +<configuration monitorInterval="60"> +<properties> + <property name="pattern">%d{yyyy-MM-dd HH:mm:ss.SSS} %c{1.} [%p] %msg%n</property> + <property name="patternNoTime">%msg%n</property> +</properties> +<appenders> + <RollingFile name="A1" + fileName="${sys:storm.log.dir}/${sys:logfile.name}" + filePattern="${sys:storm.log.dir}/${sys:logfile.name}.%i.gz"> + <PatternLayout> + <pattern>${pattern}</pattern> + </PatternLayout> + <Policies> + <SizeBasedTriggeringPolicy size="100 MB"/> <!-- Or every 100 MB --> + </Policies> + <DefaultRolloverStrategy max="9"/> + </RollingFile> + <RollingFile name="STDOUT" + fileName="${sys:storm.log.dir}/${sys:logfile.name}.out" + filePattern="${sys:storm.log.dir}/${sys:logfile.name}.out.%i.gz"> + <PatternLayout> + <pattern>${patternNoTime}</pattern> + </PatternLayout> + <Policies> + <SizeBasedTriggeringPolicy size="100 MB"/> <!-- Or every 100 MB --> + </Policies> + <DefaultRolloverStrategy max="4"/> + </RollingFile> + <RollingFile name="STDERR" + fileName="${sys:storm.log.dir}/${sys:logfile.name}.err" + filePattern="${sys:storm.log.dir}/${sys:logfile.name}.err.%i.gz"> + <PatternLayout> + <pattern>${patternNoTime}</pattern> + </PatternLayout> + <Policies> + <SizeBasedTriggeringPolicy size="100 MB"/> <!-- Or every 100 MB --> + </Policies> + <DefaultRolloverStrategy max="4"/> + </RollingFile> + <Syslog name="syslog" format="RFC5424" host="localhost" port="514" + protocol="UDP" appName="[${sys:storm.id}:${sys:worker.port}]" mdcId="mdc" includeMDC="true" + facility="LOCAL5" enterpriseNumber="18060" newLine="true" exceptionPattern="%rEx{full}" + messageId="[${sys:user.name}:${sys:logging.sensitivity}]" id="storm"/> +</appenders> +<loggers> + <root level="info"> <!-- We log everything --> + <appender-ref ref="A1"/> + <appender-ref ref="syslog"/> + </root> + <Logger name="STDERR" level="INFO"> + <appender-ref ref="STDERR"/> + <appender-ref ref="syslog"/> + </Logger> + <Logger name="STDOUT" level="INFO"> + <appender-ref ref="STDOUT"/> + <appender-ref ref="syslog"/> + </Logger> +</loggers> +</configuration> + ]]> + </value> + <value-attributes> + <show-property-name>false</show-property-name> + </value-attributes> + </property> + +</configuration>