This project has retired. For details please refer to its Attic page.
CHUKWA_CONSTANT xref
View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  package org.apache.hadoop.chukwa.extraction;
20  
21  public interface CHUKWA_CONSTANT {
22    public static final String HDFS_DEFAULT_NAME_FIELD = "fs.default.name";
23    public static final String WRITER_HDFS_FILESYSTEM_FIELD = "writer.hdfs.filesystem";
24    public static final String CHUKWA_ROOT_DIR_FIELD = "chukwaRootDir";
25    public static final String CHUKWA_ROOT_REPOS_DIR_FIELD = "chukwaRootReposDir";
26  
27    
28    //This is the INPUT directory for archiving; defaults to /chukwa/logs
29    public static final String CHUKWA_ARCHIVE_DIR_FIELD = "chukwaArchiveDir";
30    public static final String CHUKWA_POST_PROCESS_DIR_FIELD = "chukwaPostProcessDir";
31    public static final String CHUKWA_POSTPROCESS_IN_ERROR_DIR_FIELD = "chukwaPostProcessInErrorDir";
32    public static final String CHUKWA_DATA_SINK_DIR_FIELD = "chukwaDataSinkDir";
33  
34    public static final String CHUKWA_NAGIOS_HOST_FIELD = "demux.nagiosHost";
35    public static final String CHUKWA_NAGIOS_PORT_FIELD = "demux.nagiosPort";
36    public static final String CHUKWA_REPORTING_HOST_FIELD = "demux.reportingHost4Nagios";
37    
38    
39    public static final String CHUKWA_POSTPROCESS_MAX_ERROR_COUNT_FIELD = "post.process.max.error.count.before.shutdown";
40    public static final String CHUKWA_ARCHIVE_MAX_ERROR_COUNT_FIELD     = "archive.max.error.count.before.shutdown";
41    public static final String CHUKWA_DEMUX_MAX_ERROR_COUNT_FIELD       = "demux.max.error.count.before.shutdown";
42  
43    public static final String CHUKWA_DEMUX_REDUCER_COUNT_FIELD     = "demux.reducerCount";
44  
45    public static final String DEFAULT_CHUKWA_ROOT_DIR_NAME          = "/chukwa/";
46    public static final String DEFAULT_REPOS_DIR_NAME               = "repos/";
47    public static final String DEFAULT_CHUKWA_POSTPROCESS_DIR_NAME  = "postProcess/";
48    public static final String DEFAULT_POSTPROCESS_IN_ERROR_DIR_NAME = "postProcessInError/";
49    public static final String DEFAULT_CHUKWA_LOGS_DIR_NAME         = "logs/";
50    
51    public static final String DEFAULT_DEMUX_PROCESSING_DIR_NAME    = "demuxProcessing/";
52    public static final String DEFAULT_DEMUX_MR_OUTPUT_DIR_NAME     = "mrOutput/";
53    public static final String DEFAULT_DEMUX_MR_INPUT_DIR_NAME      = "mrInput/";
54    public static final String DEFAULT_DEMUX_IN_ERROR_DIR_NAME      = "inError/";
55    
56    public static final String DEFAULT_CHUKWA_DATASINK_DIR_NAME     = "dataSinkArchives/";
57    public static final String DEFAULT_FINAL_ARCHIVES               = "finalArchives/";
58    
59      //These fields control the working dirs for the archive mapred job.
60      //They are not configurable at runtime.
61    public static final String ARCHIVES_PROCESSING_DIR_NAME    = "archivesProcessing/";
62    public static final String ARCHIVES_MR_OUTPUT_DIR_NAME     = "mrOutput/";
63    public static final String ARCHIVES_MR_INPUT_DIR_NAME      = "mrInput/";
64    public static final String ARCHIVES_IN_ERROR_DIR_NAME      = "inError/";
65  
66    public static final String POST_DEMUX_DATA_LOADER = "chukwa.post.demux.data.loader";  
67    public static final String INCLUDE_KEY_IN_PARTITIONER = "_";
68    
69    //CHUKWA-648:  Make Chukwa Reduce Type to support hierarchy format
70    //To support Hierarchy datatype
71    public static final String HIERARCHY_CONNECTOR = "-";
72    public static final String POST_DEMUX_SUCCESS_ACTION = "chukwa.post.demux.success.action";  
73  }