1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ # -----------------------------------------------------------------------------
16
+
17
+ # This file provides a variety of site-specific settings to control Drill
18
+ # launch settings. These are settings required when launching the Drillbit
19
+ # or sqlline processes using Java. Some settings are for both, some for one
20
+ # or the other.
21
+ #
22
+ # Variables may be set in one of four places:
23
+ #
24
+ # Environment (per run)
25
+ # drill-env.sh (this file, per site)
26
+ # distrib-env.sh (per distribution)
27
+ # drill-config.sh (Drill defaults)
28
+ #
29
+ # Properties "inherit" from items lower on the list, and may be "overridden" by items
30
+ # higher on the list. In the environment, just set the variable:
31
+ #
32
+ # export FOO=value
33
+ #
34
+ # To support inheritance from the environment, you must set values as shown below:
35
+ #
36
+ # export FOO=${FOO:-"value"}
37
+ #
38
+ # or a more specialized form.
39
+
40
+ # Amount of heap memory for the Drillbit process. Values are those supported by
41
+ # the Java -Xms option. The default is 4G.
42
+
43
+ export DRILL_HEAP=${DRILL_HEAP:- " 4G" }
44
+
45
+ # Maximum amount of direct memory to allocate to the Drillbit in the format
46
+ # supported by -XX:MaxDirectMemorySize. Default is 8G.
47
+
48
+ export DRILL_MAX_DIRECT_MEMORY=${DRILL_MAX_DIRECT_MEMORY:- " 8G" }
49
+
50
+ # Value for the JVM -XX:MaxPermSize option for the Drillbit. Default is 512M.
51
+
52
+ # export DRILLBIT_MAX_PERM=${DRILLBIT_MAX_PERM:-"512M"}
53
+
54
+ # Native library path passed to Java. Note: use this form instead
55
+ # of the old form of DRILLBIT_JAVA_OPTS="-Djava.library.path=<dir>"
56
+ # The old form is not compatible with Drill-on-YARN.
57
+
58
+ # export DRILL_JAVA_LIB_PATH=
59
+
60
+ # Value for the code cache size for the Drillbit. Because the Drillbit generates
61
+ # code, it benefits from a large cache. Default is 1G.
62
+
63
+ # export DRILLBIT_CODE_CACHE_SIZE=${DRILLBIT_CODE_CACHE_SIZE:-"1G"}
64
+
65
+ # Provide a customized host name for when the default mechanism is not accurate
66
+
67
+ # export DRILL_HOST_NAME=`hostname`
68
+
69
+ # Base name for Drill log files. Files are named ${DRILL_LOG_NAME}.out, etc.
70
+
71
+ # DRILL_LOG_NAME="drillbit"
72
+
73
+ # Location to place Drill logs. Set to $DRILL_HOME/log by default.
74
+
75
+ # export DRILL_LOG_DIR=${DRILL_LOG_DIR:-$DRILL_HOME/conf}
76
+
77
+ # Location to place the Drillbit pid file when running as a daemon using
78
+ # drillbit.sh start.
79
+ # Set to $DRILL_HOME by default.
80
+
81
+ # export DRILL_PID_DIR=${DRILL_PID_DIR:-$DRILL_HOME}
82
+
83
+ # Custom JVM arguments to pass to the both the Drillbit and sqlline. Typically
84
+ # used to override system properties as shown below. Empty by default.
85
+
86
+ # export DRILL_JAVA_OPTS="$DRILL_JAVA_OPTS -Dproperty=value"
87
+
88
+ # As above, but only for the Drillbit. Empty by default.
89
+
90
+ # export DRILLBIT_JAVA_OPTS="$DRILLBIT_JAVA_OPTS -Dproperty=value"
91
+
92
+ # Process priority (niceness) for the Drillbit when running as a daemon.
93
+ # Defaults to 0.
94
+
95
+ # export DRILL_NICENESS=${DRILL_NICENESS:-0}
96
+
97
+ # Custom class path for Drill. In general, you should put your custom libraries into
98
+ # your site directory's jars subfolder ($DRILL_HOME/conf/jars by default, but can be
99
+ # customized with DRILL_CONF_DIR or the --config argument. But, if you must reference
100
+ # jar files in other locations, you can add them here. These jars are added to the
101
+ # Drill classpath after all Drill-provided jars. Empty by default.
102
+
103
+ # custom="/your/path/here:/your/second/path"
104
+ # if [ -z "$DRILL_CLASSPATH" ]; then
105
+ # export DRILL_CLASSPATH=${DRILL_CLASSPATH:$custom}
106
+ # else
107
+ # export DRILL_CLASSPATH="$custom"
108
+ # fi
109
+
110
+ # Extension classpath for things like HADOOP, HBase and so on. Set as above.
111
+
112
+ # EXTN_CLASSPATH=...
113
+
114
+ # Note that one environment variable can't be set here: DRILL_CONF_DIR.
115
+ # That variable tells Drill the location of this file, so this file can't
116
+ # set it. Instead, you can set it in the environment, or using the
117
+ # --config option of drillbit.sh or sqlline.
118
+
119
+ # -----------------------------------------------------------------------------
120
+ # The following are "advanced" options seldom used except when diagnosing
121
+ # complex issues.
122
+ #
123
+ # The prefix class path appears before any Drill-provided classpath entries.
124
+ # Use it to override Drill jars with specialized versions.
125
+
126
+ # export DRILL_CLASSPATH_PREFIX=...
127
+
128
+ # Enable garbage collection logging in the Drillbit. Logging goes to
129
+ # $DRILL_LOG_DIR/drillbit.gc. A value of 1 enables logging, all other values
130
+ # (including the default unset value) disables logging.
131
+
132
+ # export SERVER_LOG_GC=${SERVER_LOG_GC:-1}
133
+
134
+ # JVM options when running the sqlline Drill client. For example, adjust the
135
+ # JVM heap memory here. These are used ONLY in non-embedded mode; these
136
+ # are client-only settings. (The Drillbit settings are used when Drill
137
+ # is embedded.)
138
+
139
+ # export SQLLINE_JAVA_OPTS="-XX:MaxPermSize=512M"
140
+
141
+ # Arguments passed to sqlline (the Drill shell) at all times: whether
142
+ # Drill is embedded in Sqlline or not.
143
+
144
+ # export DRILL_SHELL_JAVA_OPTS="..."
145
+
146
+ # Location Drill should use for temporary files, such as downloaded dynamic UDFs jars.
147
+ # Set to "/tmp" by default.
148
+ #
149
+ # export DRILL_TMP_DIR="..."
0 commit comments