-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars-default.sh
49 lines (37 loc) · 1.69 KB
/
vars-default.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# DEFAULT CONFIGURATION
export BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export DEPS_DIR="${BASE_DIR}/deps"
export LOCAL_DIR="${HOME}/instrumentation"
export BIN_DIR="${LOCAL_DIR}/bin"
export LIB_DIR="${LOCAL_DIR}/lib"
export CONFIG_DIR="${BASE_DIR}/config"
export CONFIG_HADOOP="${CONFIG_DIR}/hadoop-conf"
export PCUSER=smendoza
export LNESS_HOME=${BASE_DIR}
export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:/bin/java::" | sed "s:/jre::")
export JAVA="${JAVA_HOME}/bin/java"
export JAVAC="${JAVA_HOME}/bin/javac"
export JAVAH="${JAVA_HOME}/bin/javah"
export JAR="${JAVA_HOME}/bin/jar"
export JAVA_INCLUDE="${JAVA_HOME}/include/linux"
export JAVA_INCLUDE2="${JAVA_HOME}/include"
export LNESS_LIBS=$LNESS_HOME/lib
export LD_LIBRARY_PATH=$LNESS_HOME/lib
export HADOOP_PREFIX="${BASE_DIR}/hadoop-build"
export HADOOP_JAR_EXAMPLES="${HADOOP_PREFIX}/hadoop-examples-*.jar"
export HADOOP_SRC="${BASE_DIR}/hadoop-src"
export HADOOP_JOBS="${BASE_DIR}/jobs"
export JNI_H_DEST="${BASE_DIR}/extrae/java_wrapper/jni_c/include"
export LOG4J_CONFFILE="${BASE_DIR}/extrae/java_wrapper/jni_java/es/bsc/tools/undef2prv/log4j.undef2prv.properties"
export CATALINA_HOME=/home/smendoza/lightness/hadoop-apps/apache-tomcat-6.0.4
export EXTRAE_LABELS="${BASE_DIR}/labels.txt"
export TRACES_OUTPUT="${BASE_DIR}/traces"
# Config for hadoop execution (imported from hadoop/conf/hadoop-env.sh)
export EXTRAE_ON=1
export EXTRAE_DIR="/tmp/traces"
export EXTRAE_HOME="${LOCAL_DIR}"
export HADOOP_EXTRAE_LIBRARY_PATH="${EXTRAE_HOME}/lib"
export SNIFFER_BIN="${BIN_DIR}/sniffer"
export SIESTA=500000
export HADOOP_CLASSPATH="${HADOOP_EXTRAE_LIBRARY_PATH}/extraewrapper.jar"
export HADOOP_OPTS="-Djava.net.preferIPv4Stack=true"