Skip to content

Instantly share code, notes, and snippets.

@gabrieledarrigo
Created December 15, 2021 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrieledarrigo/f03869706a968f4d05c0412076a668fb to your computer and use it in GitHub Desktop.
Save gabrieledarrigo/f03869706a968f4d05c0412076a668fb to your computer and use it in GitHub Desktop.
Druid environment
#
# 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.
#
# Java tuning
DRUID_XMX=1g
DRUID_XMS=1g
DRUID_MAXNEWSIZE=250m
DRUID_NEWSIZE=250m
DRUID_MAXDIRECTMEMORYSIZE=6172m
druid_emitter_logging_logLevel=debug
druid_extensions_loadList=["druid-histogram", "druid-datasketches", "druid-lookups-cached-global", "druid-hdfs-storage", "druid-basic-security", "druid-ranger-security", "postgresql-metadata-storage"]
druid_zk_service_host=zookeeper
druid_metadata_storage_host=
druid_metadata_storage_type=postgresql
druid_metadata_storage_connector_connectURI=jdbc:postgresql://postgres:5432/druid
druid_metadata_storage_connector_user=druid
druid_metadata_storage_connector_password=FoolishPassword
druid_coordinator_balancer_strategy=cachingCost
druid_indexer_runner_javaOptsArray=["-server", "-Xmx1g", "-Xms1g", "-XX:MaxDirectMemorySize=3g", "-Duser.timezone=UTC", "-Dfile.encoding=UTF-8", "-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"]
druid_indexer_fork_property_druid_processing_buffer_sizeBytes=256MiB
druid_storage_type=hdfs
druid_storage_storageDirectory=hdfs://namenode:9000/druid/segments
druid_indexer_logs_type=hdfs
druid_indexer_logs_directory=hdfs://namenode:9000/druid/indexing-logs
druid_processing_numThreads=2
druid_processing_numMergeBuffers=2
# Authenticator
druid_auth_authenticatorChain=["basic"]
druid_auth_authenticator_basic_type=basic
druid_auth_authenticator_basic_initialAdminPassword=password1
druid_auth_authenticator_basic_initialInternalClientPassword=password2
druid_auth_authenticator_basic_credentialsValidator_type=metadata
druid_auth_authenticator_basic_skipOnFailure=false
druid_auth_authenticator_basic_enableCacheNotifications=true
druid_auth_authenticator_basic_authorizerName=ranger
# Authorizer
druid_auth_authorizers=["ranger"]
druid_auth_authorizer_ranger_type=ranger
# Escalator
druid_escalator_type=basic
druid_escalator_internalClientUsername=druid_system
druid_escalator_internalClientPassword=password2
druid_escalator_authorizerName=ranger
DRUID_LOG4J=<?xml version="1.0" encoding="UTF-8" ?><Configuration status="WARN"><Appenders><Console name="Console" target="SYSTEM_OUT"><PatternLayout pattern="%d{ISO8601} %p [%t] %c - %m%n"/></Console></Appenders><Loggers><Root level="info"><AppenderRef ref="Console"/></Root><Logger name="org.apache.druid.jetty.RequestLog" additivity="false" level="DEBUG"><AppenderRef ref="Console"/></Logger></Loggers></Configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment