blob: a67c408bb80010acc1e146ac6b22ee99f61995d0 [file] [log] [blame]
Till Westmannea8ab392013-06-05 15:17:08 -07001#/*
Ian Maxon928bbd12015-09-14 17:12:48 -07002# 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,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
ramangrover29116eb972013-02-20 20:47:35 +000018# Set Hadoop-specific environment variables here.
19
20# The only required environment variable is JAVA_HOME. All others are
21# optional. When running a distributed configuration it is best to
22# set JAVA_HOME in this file, so that it is correctly defined on
23# remote nodes.
24
25# The java implementation to use. Required.
ramangrover29ab6d3492013-02-21 22:23:03 +000026# export JAVA_HOME=$JAVA_HOME
ramangrover29116eb972013-02-20 20:47:35 +000027
28# Extra Java CLASSPATH elements. Optional.
29# export HADOOP_CLASSPATH=
30
31# The maximum amount of heap to use, in MB. Default is 1000.
32# export HADOOP_HEAPSIZE=2000
33
34# Extra Java runtime options. Empty by default.
35# export HADOOP_OPTS=-server
36
37# Command specific options appended to HADOOP_OPTS when specified
38export HADOOP_NAMENODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_NAMENODE_OPTS"
39export HADOOP_SECONDARYNAMENODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_SECONDARYNAMENODE_OPTS"
40export HADOOP_DATANODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_DATANODE_OPTS"
41export HADOOP_BALANCER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_BALANCER_OPTS"
42export HADOOP_JOBTRACKER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_JOBTRACKER_OPTS"
43# export HADOOP_TASKTRACKER_OPTS=
44# The following applies to multiple commands (fs, dfs, fsck, distcp etc)
45# export HADOOP_CLIENT_OPTS
46
47# Extra ssh options. Empty by default.
48# export HADOOP_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HADOOP_CONF_DIR"
49
50# Where log files are stored. $HADOOP_HOME/logs by default.
51# export HADOOP_LOG_DIR=${HADOOP_HOME}/logs
52
53# File naming remote slave hosts. $HADOOP_HOME/conf/slaves by default.
54# export HADOOP_SLAVES=${HADOOP_HOME}/conf/slaves
55
56# host:path where hadoop code should be rsync'd from. Unset by default.
57# export HADOOP_MASTER=master:/home/$USER/src/hadoop
58
59# Seconds to sleep between slave commands. Unset by default. This
60# can be useful in large clusters, where, e.g., slave rsyncs can
61# otherwise arrive faster than the master can service them.
62# export HADOOP_SLAVE_SLEEP=0.1
63
64# The directory where pid files are stored. /tmp by default.
65# export HADOOP_PID_DIR=/var/hadoop/pids
66
67# A string representing this instance of hadoop. $USER by default.
68# export HADOOP_IDENT_STRING=$USER
69
70# The scheduling priority for daemon processes. See 'man nice'.
71# export HADOOP_NICENESS=10