1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing, software13 * 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 and16 * limitations under the License.17 */1819package org.apache.hadoop.chukwa.extraction;
2021publicinterfaceCHUKWA_CONSTANT {
22publicstaticfinal String HDFS_DEFAULT_NAME_FIELD = "fs.default.name";
23publicstaticfinal String WRITER_HDFS_FILESYSTEM_FIELD = "writer.hdfs.filesystem";
24publicstaticfinal String CHUKWA_ROOT_DIR_FIELD = "chukwaRootDir";
25publicstaticfinal String CHUKWA_ROOT_REPOS_DIR_FIELD = "chukwaRootReposDir";
262728//This is the INPUT directory for archiving; defaults to /chukwa/logs29publicstaticfinal String CHUKWA_ARCHIVE_DIR_FIELD = "chukwaArchiveDir";
30publicstaticfinal String CHUKWA_POST_PROCESS_DIR_FIELD = "chukwaPostProcessDir";
31publicstaticfinal String CHUKWA_POSTPROCESS_IN_ERROR_DIR_FIELD = "chukwaPostProcessInErrorDir";
32publicstaticfinal String CHUKWA_DATA_SINK_DIR_FIELD = "chukwaDataSinkDir";
3334publicstaticfinal String CHUKWA_NAGIOS_HOST_FIELD = "demux.nagiosHost";
35publicstaticfinal String CHUKWA_NAGIOS_PORT_FIELD = "demux.nagiosPort";
36publicstaticfinal String CHUKWA_REPORTING_HOST_FIELD = "demux.reportingHost4Nagios";
373839publicstaticfinal String CHUKWA_POSTPROCESS_MAX_ERROR_COUNT_FIELD = "post.process.max.error.count.before.shutdown";
40publicstaticfinal String CHUKWA_ARCHIVE_MAX_ERROR_COUNT_FIELD = "archive.max.error.count.before.shutdown";
41publicstaticfinal String CHUKWA_DEMUX_MAX_ERROR_COUNT_FIELD = "demux.max.error.count.before.shutdown";
4243publicstaticfinal String CHUKWA_DEMUX_REDUCER_COUNT_FIELD = "demux.reducerCount";
4445publicstaticfinal String DEFAULT_CHUKWA_ROOT_DIR_NAME = "/chukwa/";
46publicstaticfinal String DEFAULT_REPOS_DIR_NAME = "repos/";
47publicstaticfinal String DEFAULT_CHUKWA_POSTPROCESS_DIR_NAME = "postProcess/";
48publicstaticfinal String DEFAULT_POSTPROCESS_IN_ERROR_DIR_NAME = "postProcessInError/";
49publicstaticfinal String DEFAULT_CHUKWA_LOGS_DIR_NAME = "logs/";
5051publicstaticfinal String DEFAULT_DEMUX_PROCESSING_DIR_NAME = "demuxProcessing/";
52publicstaticfinal String DEFAULT_DEMUX_MR_OUTPUT_DIR_NAME = "mrOutput/";
53publicstaticfinal String DEFAULT_DEMUX_MR_INPUT_DIR_NAME = "mrInput/";
54publicstaticfinal String DEFAULT_DEMUX_IN_ERROR_DIR_NAME = "inError/";
5556publicstaticfinal String DEFAULT_CHUKWA_DATASINK_DIR_NAME = "dataSinkArchives/";
57publicstaticfinal String DEFAULT_FINAL_ARCHIVES = "finalArchives/";
5859//These fields control the working dirs for the archive mapred job.60//They are not configurable at runtime.61publicstaticfinal String ARCHIVES_PROCESSING_DIR_NAME = "archivesProcessing/";
62publicstaticfinal String ARCHIVES_MR_OUTPUT_DIR_NAME = "mrOutput/";
63publicstaticfinal String ARCHIVES_MR_INPUT_DIR_NAME = "mrInput/";
64publicstaticfinal String ARCHIVES_IN_ERROR_DIR_NAME = "inError/";
6566publicstaticfinal String POST_DEMUX_DATA_LOADER = "chukwa.post.demux.data.loader";
67publicstaticfinal String INCLUDE_KEY_IN_PARTITIONER = "_";
6869//CHUKWA-648: Make Chukwa Reduce Type to support hierarchy format70//To support Hierarchy datatype71publicstaticfinal String HIERARCHY_CONNECTOR = "-";
72publicstaticfinal String POST_DEMUX_SUCCESS_ACTION = "chukwa.post.demux.success.action";
73 }