source: other-projects/hathitrust/wcsa/extracted-features-solr/trunk/vagrant-spark-hdfs-cluster/modules/hadoop/templates/hadoop-env.sh@ 31077

Last change on this file since 31077 was 31077, checked in by davidb, 6 years ago

Move up to JDK1.8. Tidy up of Vagrant machine names. Support for YARN. Some XML whitespace indenting

File size: 4.1 KB
Line 
1# Licensed to the Apache Software Foundation (ASF) under one
2# or more contributor license agreements. See the NOTICE file
3# distributed with this work for additional information
4# regarding copyright ownership. The ASF licenses this file
5# to you under the Apache License, Version 2.0 (the
6# "License"); you may not use this file except in compliance
7# with the License. You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# Set Hadoop-specific environment variables here.
18
19# The only required environment variable is JAVA_HOME. All others are
20# optional. When running a distributed configuration it is best to
21# set JAVA_HOME in this file, so that it is correctly defined on
22# remote nodes.
23
24# The java implementation to use.
25export JAVA_HOME=/usr/lib/jvm/java-8-oracle
26
27# The jsvc implementation to use. Jsvc is required to run secure datanodes
28# that bind to privileged ports to provide authentication of data transfer
29# protocol. Jsvc is not required if SASL is configured for authentication of
30# data transfer protocol using non-privileged ports.
31#export JSVC_HOME=${JSVC_HOME}
32
33export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-"/etc/hadoop"}
34
35# Extra Java CLASSPATH elements. Automatically insert capacity-scheduler.
36for f in $HADOOP_HOME/contrib/capacity-scheduler/*.jar; do
37 if [ "$HADOOP_CLASSPATH" ]; then
38 export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$f
39 else
40 export HADOOP_CLASSPATH=$f
41 fi
42done
43
44# The maximum amount of heap to use, in MB. Default is 1000.
45#export HADOOP_HEAPSIZE=
46#export HADOOP_NAMENODE_INIT_HEAPSIZE=""
47
48# Extra Java runtime options. Empty by default.
49export HADOOP_OPTS="$HADOOP_OPTS -Djava.net.preferIPv4Stack=true"
50
51# Command specific options appended to HADOOP_OPTS when specified
52export HADOOP_NAMENODE_OPTS="-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER:-INFO,RFAS} -Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER:-INFO,NullAppender} $HADOOP_NAMENODE_OPTS"
53export HADOOP_DATANODE_OPTS="-Dhadoop.security.logger=ERROR,RFAS $HADOOP_DATANODE_OPTS"
54
55export HADOOP_SECONDARYNAMENODE_OPTS="-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER:-INFO,RFAS} -Dhdfs.audit.logger=${HDFS_AUDIT_LOGGER:-INFO,NullAppender} $HADOOP_SECONDARYNAMENODE_OPTS"
56
57export HADOOP_NFS3_OPTS="$HADOOP_NFS3_OPTS"
58export HADOOP_PORTMAP_OPTS="-Xmx512m $HADOOP_PORTMAP_OPTS"
59
60# The following applies to multiple commands (fs, dfs, fsck, distcp etc)
61export HADOOP_CLIENT_OPTS="-Xmx512m $HADOOP_CLIENT_OPTS"
62#HADOOP_JAVA_PLATFORM_OPTS="-XX:-UsePerfData $HADOOP_JAVA_PLATFORM_OPTS"
63
64# On secure datanodes, user to run the datanode as after dropping privileges.
65# This **MUST** be uncommented to enable secure HDFS if using privileged ports
66# to provide authentication of data transfer protocol. This **MUST NOT** be
67# defined if SASL is configured for authentication of data transfer protocol
68# using non-privileged ports.
69export HADOOP_SECURE_DN_USER=${HADOOP_SECURE_DN_USER}
70
71# Where log files are stored. $HADOOP_HOME/logs by default.
72#export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER
73
74# Where log files are stored in the secure data environment.
75export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER}
76
77###
78# HDFS Mover specific parameters
79###
80# Specify the JVM options to be used when starting the HDFS Mover.
81# These options will be appended to the options specified as HADOOP_OPTS
82# and therefore may override any similar flags set in HADOOP_OPTS
83#
84# export HADOOP_MOVER_OPTS=""
85
86###
87# Advanced Users Only!
88###
89
90# The directory where pid files are stored. /tmp by default.
91# NOTE: this should be set to a directory that can only be written to by
92# the user that will run the hadoop daemons. Otherwise there is the
93# potential for a symlink attack.
94export HADOOP_PID_DIR=${HADOOP_PID_DIR}
95export HADOOP_SECURE_DN_PID_DIR=${HADOOP_PID_DIR}
96
97# A string representing this instance of hadoop. $USER by default.
98export HADOOP_IDENT_STRING=$USER
Note: See TracBrowser for help on using the repository browser.