SQOOP-931: Integrate HCatalog with Sqoop
[sqoop.git] / src / java / org / apache / sqoop / config / ConfigurationConstants.java
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
20 package org.apache.sqoop.config;
21
22 /**
23 * Static constants that identify configuration keys, counter group names, and
24 * counter names.
25 */
26 public final class ConfigurationConstants {
27
28 /**
29 * The Configuration property identifying the current task id.
30 */
31 public static final String PROP_MAPRED_TASK_ID = "mapred.task.id";
32
33 /**
34 * The Configuration property identifying the job's local directory.
35 */
36 public static final String PROP_JOB_LOCAL_DIRECTORY = "job.local.dir";
37
38 /**
39 * The Configuration property identifying the number of map tasks to be used.
40 */
41 public static final String PROP_MAPRED_MAP_TASKS = "mapred.map.tasks";
42
43 /**
44 * The Configuration property identifying the speculative execution flag for
45 * map tasks.
46 */
47 public static final String PROP_MAPRED_MAP_TASKS_SPECULATIVE_EXEC =
48 "mapred.map.tasks.speculative.execution";
49
50 /**
51 * The Configuration property identifying the speculative execution flag for
52 * reduce tasks.
53 */
54 public static final String PROP_MAPRED_REDUCE_TASKS_SPECULATIVE_EXEC =
55 "mapred.reduce.tasks.speculative.execution";
56
57 /**
58 * The Configuration property identifying the job tracker address.
59 */
60 public static final String PROP_MAPRED_JOB_TRACKER_ADDRESS =
61 "mapred.job.tracker";
62
63 /**
64 * The Configuration property identifying the job tracker address (new).
65 */
66 public static final String PROP_MAPREDUCE_JOB_TRACKER_ADDRESS =
67 "mapreduce.jobtracker.address";
68
69 /**
70 * The Configuration property identifying the framework name. If set to YARN
71 * then we will not be in local mode.
72 */
73 public static final String PROP_MAPREDUCE_FRAMEWORK_NAME =
74 "mapreduce.framework.name";
75 /**
76 * The group name of task counters.
77 */
78 public static final String COUNTER_GROUP_MAPRED_TASK_COUNTERS =
79 "org.apache.hadoop.mapred.Task$Counter";
80
81 /**
82 * The name of the counter that tracks output records from Map phase.
83 */
84 public static final String COUNTER_MAP_OUTPUT_RECORDS =
85 "MAP_OUTPUT_RECORDS";
86
87 /**
88 * The name of the counter that tracks input records to the Map phase.
89 */
90 public static final String COUNTER_MAP_INPUT_RECORDS =
91 "MAP_INPUT_RECORDS";
92
93 /**
94 * The name of the parameter for ToolRunner to set jars to add to distcache.
95 */
96 public static final String MAPRED_DISTCACHE_CONF_PARAM = "tmpjars";
97
98 private ConfigurationConstants() {
99 // Disable Explicit Object Creation
100 }
101 }