On this page

    Configuring via dremio-env

    This topic describes how to configure Dremio, in particular, what properties you need to modify in the dremio-env file and how to accomplish it.

    note:

    The dremio-env file uses the HOCON syntax.

    This topic covers following:

    Template for dremio-env

    Template for dremio-env
    #
    # Copyright (C) 2017-2018 Dremio Corporation
    #
    # Licensed 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.
    #
    
    #
    # Dremio environment variables used by Dremio daemon
    #
    
    #
    # Directory where Dremio logs are written
    # Default to $DREMIO_HOME/log
    #
    #DREMIO_LOG_DIR=${DREMIO_HOME}/log
    
    #
    # Send logs to console and not to log files. The DREMIO_LOG_DIR is ignored if set.
    #
    #DREMIO_LOG_TO_CONSOLE=1
    
    #
    # Directory where Dremio pidfiles are written
    # Default to $DREMIO_HOME/run
    #
    #DREMIO_PID_DIR=${DREMIO_HOME}/run
    
    #
    # Max total memory size (in MB) for the Dremio process
    #
    # If not set, default to using max heap and max direct.
    #
    # If both max heap and max direct are set, this is not used
    # If one is set, the other is calculated as difference
    # of max memory and the one that is set.
    #
    #DREMIO_MAX_MEMORY_SIZE_MB=
    
    #
    # Max heap memory size (in MB) for the Dremio process
    #
    # Default to 4096 for server
    #
    #DREMIO_MAX_HEAP_MEMORY_SIZE_MB=4096
    
    #
    # Max direct memory size (in MB) for the Dremio process
    #
    # Default to 8192 for server
    #
    #DREMIO_MAX_DIRECT_MEMORY_SIZE_MB=8192
    
    #
    # Max permanent generation memory size (in MB) for the Dremio process
    # (Only used for Java 7)
    #
    # Default to 512 for server
    #
    #DREMIO_MAX_PERMGEN_MEMORY_SIZE_MB=512
    
    #
    # Garbage collection logging is enabled by default. Set the following
    # parameter to "no" to disable garbage collection logging.
    #
    #DREMIO_GC_LOGS_ENABLED="yes"
    
    #
    # Send GC logs to console and not to log files. The DREMIO_LOG_DIR is ignored if set.
    # Default is set to "no"
    #
    #DREMIO_GC_LOG_TO_CONSOLE="no"
    
    #
    # Specifies the Java garbage collector used by Dremio. By default,
    # Dremio uses G1 GC (-XX:+UseG1GC). Dremio also supports the
    # parallel garbage collector (-XX:+UseParallelGC).
    #
    #DREMIO_GC_OPTS="-XX:+UseG1GC"
    
    #
    # The scheduling priority for the server
    #
    # Default to 0
    #
    # DREMIO_NICENESS=0
    #
    
    #
    # Number of seconds after which the server is killed forcibly if it hasn't stopped
    #
    # Default to 120
    #
    #DREMIO_STOP_TIMEOUT=120
    
    # Extra Java options - shared between dremio and dremio-admin commands
    #
    #DREMIO_JAVA_EXTRA_OPTS=
    
    # Extra Java options - client only (dremio-admin command)
    #
    #DREMIO_JAVA_CLIENT_EXTRA_OPTS=
    
    # Extra Java options - server only (dremio command)
    #
    #DREMIO_JAVA_SERVER_EXTRA_OPTS=