Browse files

some example configuration files

  • Loading branch information...
1 parent 052c76d commit acf0249831320dda0bdec43fb4b91e7a65596359 @claudiugh claudiugh committed Dec 14, 2011
Showing with 137 additions and 0 deletions.
  1. +57 −0 conf/log4j.properties
  2. +13 −0 conf/tsdash.properties
  3. +67 −0 conf/web.xml
View
57 conf/log4j.properties
@@ -0,0 +1,57 @@
+# Define some default values that can be overridden by system properties
+hbase.root.logger=INFO,console
+hbase.log.dir=.
+hbase.log.file=hbase.log
+
+# Define the root logger to the system property "hbase.root.logger".
+log4j.rootLogger=${hbase.root.logger}
+
+# Logging Threshold
+log4j.threshhold=ALL
+
+#
+# Daily Rolling File Appender
+#
+log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.DRFA.File=${hbase.log.dir}/${hbase.log.file}
+
+# Rollver at midnight
+log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
+
+# 30-day backup
+#log4j.appender.DRFA.MaxBackupIndex=30
+log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
+
+# Pattern format: Date LogLevel LoggerName LogMessage
+log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
+
+# Debugging Pattern format
+#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
+
+
+#
+# console
+# Add "console" to rootlogger above if you want to use this
+#
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.target=System.err
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
+log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
+
+# Custom Logging levels
+
+log4j.logger.org.apache.zookeeper=ERROR
+#log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG
+log4j.logger.org.apache.hadoop.hbase=ERROR
+# Make these two classes INFO-level. Make them DEBUG to see more zk debug.
+log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKUtil=ERROR
+log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=ERROR
+#log4j.logger.org.apache.hadoop.dfs=DEBUG
+# Set this class to log INFO only otherwise its OTT
+
+# Uncomment the below if you want to remove logging of client region caching'
+# and scan of .META. messages
+# log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=INFO
+# log4j.logger.org.apache.hadoop.hbase.client.MetaScanner=INFO
+
+log4j.logger.com.facebook.tsdb.services=INFO
View
13 conf/tsdash.properties
@@ -0,0 +1,13 @@
+
+hbase.tsdash.datatable=tsdb
+hbase.tsdash.uidtable=tsdb-uid
+
+# urlpattern is the pattern used to generate URLs of the plots generated by running Gnuplot
+# The parameters are:
+# - %h host
+# - %p port
+# - %f filename
+plot.tsdash.urlpattern=http://%h:%p/plots/%f
+
+hbase.zookeeper.quorum=localhost
+
View
67 conf/web.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ 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.
+-->
+
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+ version="3.0"
+ metadata-complete="true">
+
+ <display-name>TSDash</display-name>
+ <description>
+ TSDash - UI for OpenTSDB
+ </description>
+
+ <servlet>
+ <servlet-name>MetricsEndpoint</servlet-name>
+ <servlet-class>com.facebook.tsdb.tsdash.server.MetricsEndpoint</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>MetricsEndpoint</servlet-name>
+ <url-pattern>/metrics</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>MetricHeaderEndpoint</servlet-name>
+ <servlet-class>com.facebook.tsdb.tsdash.server.MetricHeaderEndpoint</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>MetricHeaderEndpoint</servlet-name>
+ <url-pattern>/header</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>DataEndpoint</servlet-name>
+ <servlet-class>com.facebook.tsdb.tsdash.server.DataEndpoint</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>DataEndpoint</servlet-name>
+ <url-pattern>/data</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>PlotEndpoint</servlet-name>
+ <servlet-class>com.facebook.tsdb.tsdash.server.PlotEndpoint</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>PlotEndpoint</servlet-name>
+ <url-pattern>/plot</url-pattern>
+ </servlet-mapping>
+
+</web-app>

0 comments on commit acf0249

Please sign in to comment.