aboutsummaryrefslogtreecommitdiff
path: root/bigtop-packages/src/common/tajo/tajo-env.default
blob: e2760e486d8a198c52a8051cb182a8cc59e8c526 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Set Tajo-specific environment variables here.

# The only required environment variable is JAVA_HOME.  All others are
# optional.  When running a distributed configuration it is best to
# set JAVA_HOME in this file, so that it is correctly defined on
# remote nodes.

# Hadoop home. Required
export HADOOP_HOME=${HADOOP_HOME:-/usr/lib/hadoop}
export HADOOP_HDFS_HOME=${HADOOP_HDFS_HOME:-${HADOOP_HOME}/../hadoop-hdfs}
export HADOOP_MAPRED_HOME=${HADOOP_MAPRED_HOME:-${HADOOP_HOME}/../hadoop-mapreduce}
export HADOOP_YARN_HOME=${HADOOP_YARN_HOME:-${HADOOP_HOME}/../hadoop-yarn}

# The java implementation to use.  Required.
#jdk8
if [ -f /usr/lib/bigtop-utils/bigtop-detect-javahome ];
then
    . /usr/lib/bigtop-utils/bigtop-detect-javahome
fi

# Extra Java CLASSPATH elements.  Optional.
export TAJO_CLASSPATH=$HADOOP_HOME/*
export TAJO_CLASSPATH=$TAJO_CLASSPATH:$HADOOP_HOME/lib/*
export TAJO_CLASSPATH=$TAJO_CLASSPATH:$HADOOP_HOME/client/*
export TAJO_CLASSPATH=$TAJO_CLASSPATH:$HADOOP_MAPREDUCE_HOME/*
export TAJO_CLASSPATH=$TAJO_CLASSPATH:$HADOOP_HDFS_HOME/*
export TAJO_CLASSPATH=$TAJO_CLASSPATH:$HADOOP_HDFS_HOME/lib/*
export TAJO_CLASSPATH=$TAJO_CLASSPATH:$HADOOP_YARN_HOME/*


# The maximum amount of heap to use, in MB. Default is 1000.
# export TAJO_MASTER_HEAPSIZE=1000

# The maximum amount of heap to use, in MB. Default is 1000.
#export TAJO_WORKER_HEAPSIZE=80000

# The maximum amount of heap to use, in MB. Default is 1000.
# export TAJO_PULLSERVER_HEAPSIZE=1000

# The maximum amount of heap to use, in MB. Default is 1000.
# export TAJO_QUERYMASTER_HEAPSIZE=1000

# Extra Java runtime options.  Empty by default.
# export TAJO_OPTS=-server

# Extra TajoMaster's java runtime options for TajoMaster. Empty by default
# export TAJO_MASTER_OPTS=

# Extra TajoWorker's java runtime options. Empty by default
export TAJO_WORKER_OPTS='-XX:+UseParallelOldGC'
#export TAJO_WORKER_OPTS='-XX:+UseG1GC'

# Extra TajoPullServer's java runtime options. Empty by default
# export TAJO_PULLSERVER_OPTS=

# Extra  QueryMaster mode TajoWorker's java runtime options for TajoMaster. Empty by default
# export TAJO_QUERYMASTER_OPTS=

# Where log files are stored.  $TAJO_HOME/logs by default.
export TAJO_LOG_DIR=/var/log/tajo

# The directory where pid files are stored. /tmp by default.
export TAJO_PID_DIR=/var/run/tajo

# A string representing this instance of tajo. $USER by default.
# export TAJO_IDENT_STRING=$USER

# The scheduling priority for daemon processes.  See 'man nice'.
# export TAJO_NICENESS=10

# Tajo cluster mode. the default mode is standby mode.

# It must be required to use HCatalogStore
# export HIVE_HOME=
# export HIVE_JDBC_DRIVER_DIR=

# Tajo PullServer mode. the default mode is standalone mode
# export TAJO_PULLSERVER_STANDALONE=false

# HBase home directory. It is opitional, but is required mandatorily to use HBase.
#export HBASE_HOME=