aboutsummaryrefslogtreecommitdiff
path: root/env.sh
blob: 10969f43566a2185eeee573300b5a1f9cc129b61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Hadoop env override:

THISDIR="$(cd $(dirname "${BASH_SOURCE[0]}") && pwd -P)"

# Hadoop env override:
#
# http://timothysc.github.io/blog/2013/04/22/personalhadoop/

export HADOOP_VERSN=2.2.0

export HADOOP_BASE_DIR=${THISDIR}
export HADOOP_LOG_DIR=${THISDIR}/logs
export HADOOP_PID_DIR=${HADOOP_BASE_DIR}
export HADOOP_CONF_DIR=${THISDIR}/conf
export HADOOP_COMMON_HOME=${THISDIR}/$(uname -m)
export HADOOP_HDFS_HOME=${HADOOP_COMMON_HOME}
export HADOOP_MAPRED_HOME=${HADOOP_COMMON_HOME}
# Yarn env override:
export HADOOP_YARN_HOME=${HADOOP_COMMON_HOME}
export YARN_LOG_DIR=${HADOOP_LOG_DIR}/yarn
#classpath override to search hadoop loc
export CLASSPATH=/usr/share/java/:${HADOOP_COMMON_HOME}/share
#Finally update your PATH
export PATH=${HADOOP_COMMON_HOME}/bin:${HADOOP_COMMON_HOME}/sbin:${HADOOP_COMMON_HOME}/libexec:${PATH}

# Add wrappers for running teragen demos
export PATH=${THISDIR}/demo:$PATH