[ 
https://issues.apache.org/jira/browse/DRILL-4587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228902#comment-15228902
 ] 

Paul Rogers edited comment on DRILL-4587 at 4/6/16 8:47 PM:
------------------------------------------------------------

User-settable environment variables:

DRILL_HOME                 Drill home (defaults based on the location of the 
drillbit.sh script.)
DRILL_CONF_DIR      Alternate drill configuration directory that contains the 
drill-override.conf and drill-env.sh files. Default is $DRILL_HOME/conf
DRILL_LOG_DIR       Where log files are stored. Default is /var/log/drill if 
that exists, else $DRILL_HOME/log  
DRILL_PID_DIR       The  directory where Drill stores its Process ID (pid) 
file. $DRILL_HOME by default.
DRILL_IDENT_STRING  A string representing this instance of drillbit. $USER by 
default
DRILL_NICENESS      The scheduling priority for daemons. Defaults to 0.
DRILL_STOP_TIMEOUT  Used when stopping the Drill-bit. Grace period time, in 
seconds, after which the script forcibly kills the server if it has not 
stopped. Default 120 seconds.
JAVA_HOME                  The java implementation to use. If not set, looks 
for java on the command pass and uses that location.
DRILL_CLASSPATH            Extra Java CLASSPATH entries for custom code.
DRILL_CLASSPATH_PREFIX     Extra Java CLASSPATH entries that should be prefixed 
to the system classpath.
HADOOP_HOME                Hadoop home
HBASE_HOME                 HBase home
DRILL_JAVA_OPTS         Optional JVM arguments such as system property overides 
used by both the drillbit and client.
DRILLBIT_JAVA_OPTS      Optional JVM arguments specifically for the drillbit. 
SERVER_GC_OPTS          Garbage collection options, including debug options. 
Provide special syntax. An option of the form:
-Xloggc:<FILE-PATH>
Will replace <FILE-PATH> with the actual path to the Drill log directory.



was (Author: paul-rogers):
User-settable environment variables:

DRILL_HOME                 Drill home (defaults based on the location of the 
drillbit.sh script.)
DRILL_CONF_DIR      Alternate drill configuration directory that contains the 
drill-override.conf and drill-env.sh files. Default is $DRILL_HOME/conf
DRILL_LOG_DIR       Where log files are stored. Default is /var/log/drill if 
that exists, else $DRILL_HOME/log  
DRILL_PID_DIR       The  directory where Drill stores its Process ID (pid) 
file. $DRILL_HOME by default.
DRILL_IDENT_STRING  A string representing this instance of drillbit. $USER by 
default
DRILL_NICENESS      The scheduling priority for daemons. Defaults to 0.
DRILL_STOP_TIMEOUT  Used when stopping the Drill-bit. Grace period time, in 
seconds, after which the script forcibly kills the server if it has not 
stopped. Default 120 seconds.
JAVA_HOME                  The java implementation to use. If not set, looks 
for java on the command pass and uses that location.
DRILL_CLASSPATH            Extra Java CLASSPATH entries for custom code.
DRILL_CLASSPATH_PREFIX     Extra Java CLASSPATH entries that should be prefixed 
to the system classpath.
HADOOP_HOME                Hadoop home
HBASE_HOME                 HBase home
DRILL_JAVA_OPTS         Optional JVM arguments such as system property overides 
used by both the drillbit and client.
DRILLBIT_JAVA_OPTS      Optional JVM arguments specifically for the drillbit. 
SERVER_GC_OPTS          todo


> Document Drillbit launch options
> --------------------------------
>
>                 Key: DRILL-4587
>                 URL: https://issues.apache.org/jira/browse/DRILL-4587
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Paul Rogers
>            Assignee: Bridget Bevens
>
> Drill provides the drillbit.sh script to launch Drill. When Drill is run in 
> production environments, or when managed by a tool such as Mesos or YARN, 
> customers have many options to customize the launch options. We should 
> document this information as below.
> The user can configure Drill launch in one of four ways, depending on their 
> needs.
> 1. Using the properties in drill-override.conf. Sets only startup and runtime 
> properties. All drillbits should use a copy of the file so that properties 
> set here apply to all drill bits and to client applications.
> 2. By setting environment variables prior to launching Drill. See the list 
> below. Use this to customize properties per drill-bit, such as for setting 
> port numbers. This option is useful when launching Drill from a tool such as 
> Mesos or YARN.
> 3. By setting environment variables in $DRILL_HOME/conf/drill-env.sh. See the 
> list below. This script is intended to be unique to each node and is another 
> way to customize properties for this one node.
> 4. In Drill 1.7 and later, the administrator can set Drill configuration 
> options directly on the launch command as shown below. This option is also 
> useful when launching Drill from a tool such as YARN or Mesos. Options are of 
> the form:
> $ drillbit.sh start -Dvariable=value
> For example, to control the HTTP port:
> $ drillbit.sh start -Ddrill.exec.http.port=8099 
> Properties are of three types.
> 1. Launch-only properties: those that can be set only through environment 
> variables (such as JAVA_HOME.)
> 2. Drill startup properties which can be set in the locations detailed below.
> 3. Drill runtime properties which are set in drill-override.conf also via SQL.
> Drill startup propeties can be set in a number of locations. Those listed 
> later take precedence over those listed earlier.
> 1. Drill-override.conf as identified by DRILL_CONF_DIR or its default.
> 2. Set in the environment using DRILL_JAVA_OPTS or DRILL_DRILLBIT_JAVA_OPTS.
> 3. Set in drill-env.sh using the above two variables.
> 4. Set on the drill.bit command line as explained above. (Drill 1.7 and 
> later.)
> You can see the actual set of properties used (from items 2-3 above) by using 
> the "debug" command (Drill 1.7 or later):
> $ drillbit.sh debug



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to