| <?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" supports_adding_forbidden="false"> |
| <property> |
| <name>webhcat_log_maxfilesize</name> |
| <value>256</value> |
| <description>The maximum size of backup file before the log is rotated</description> |
| <display-name>Webhcat Log: backup file size</display-name> |
| <value-attributes> |
| <unit>MB</unit> |
| </value-attributes> |
| <on-ambari-upgrade add="false"/> |
| </property> |
| <property> |
| <name>webhcat_log_maxbackupindex</name> |
| <value>20</value> |
| <description>The number of backup files</description> |
| <display-name>Webhcat Log: # of backup files</display-name> |
| <value-attributes> |
| <type>int</type> |
| <minimum>0</minimum> |
| </value-attributes> |
| <on-ambari-upgrade add="false"/> |
| </property> |
| <property> |
| <name>content</name> |
| <display-name>webhcat-log4j template</display-name> |
| <description>Custom webhcat-log4j.properties</description> |
| <value> |
| # 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. |
| |
| # Define some default values that can be overridden by system properties |
| webhcat.root.logger = INFO, standard |
| webhcat.log.dir = . |
| webhcat.log.file = webhcat.log |
| |
| log4j.rootLogger = ${webhcat.root.logger} |
| |
| # Logging Threshold |
| log4j.threshhold = DEBUG |
| |
| log4j.appender.standard = org.apache.log4j.DailyRollingFileAppender |
| log4j.appender.standard.File = ${webhcat.log.dir}/${webhcat.log.file} |
| log4j.appender.standard.MaxFileSize = {{webhcat_log_maxfilesize}}MB |
| log4j.appender.standard.MaxBackupIndex = {{webhcat_log_maxbackupindex}} |
| |
| # Rollver at midnight |
| log4j.appender.DRFA.DatePattern = .yyyy-MM-dd |
| |
| log4j.appender.DRFA.layout = org.apache.log4j.PatternLayout |
| |
| log4j.appender.standard.layout = org.apache.log4j.PatternLayout |
| log4j.appender.standard.layout.conversionPattern = %-5p | %d{DATE} | %c | %m%n |
| |
| # Class logging settings |
| log4j.logger.com.sun.jersey = DEBUG |
| log4j.logger.com.sun.jersey.spi.container.servlet.WebComponent = ERROR |
| log4j.logger.org.apache.hadoop = INFO |
| log4j.logger.org.apache.hadoop.conf = WARN |
| log4j.logger.org.apache.zookeeper = WARN |
| log4j.logger.org.eclipse.jetty = INFO |
| |
| </value> |
| <value-attributes> |
| <type>content</type> |
| <show-property-name>false</show-property-name> |
| </value-attributes> |
| <on-ambari-upgrade add="true"/> |
| </property> |
| </configuration> |