58 lines
3.0 KiB
Bash
58 lines
3.0 KiB
Bash
#
|
|
# 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_HOME, will use it to start DolphinScheduler server
|
|
export JAVA_HOME=${JAVA_HOME:-/opt/java/openjdk}
|
|
|
|
# Database related configuration, set database type, username and password
|
|
export DATABASE=${DATABASE:-postgresql}
|
|
export SPRING_PROFILES_ACTIVE=${DATABASE}
|
|
export SPRING_DATASOURCE_URL="jdbc:postgresql://postgres:5432/dolphinscheduler"
|
|
export SPRING_DATASOURCE_USERNAME=postgres
|
|
export SPRING_DATASOURCE_PASSWORD=postgres
|
|
|
|
# DolphinScheduler server related configuration
|
|
export SPRING_CACHE_TYPE=${SPRING_CACHE_TYPE:-none}
|
|
export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-UTC}
|
|
export MASTER_FETCH_COMMAND_NUM=${MASTER_FETCH_COMMAND_NUM:-10}
|
|
|
|
# Registry center configuration, determines the type and link of the registry center
|
|
export REGISTRY_TYPE=${REGISTRY_TYPE:-zookeeper}
|
|
export REGISTRY_ZOOKEEPER_CONNECT_STRING=${REGISTRY_ZOOKEEPER_CONNECT_STRING:-zoo1:2181,zoo2:2182,zoo3:2183}
|
|
export REGISTRY_ZOOKEEPER_BLOCK_UNTIL_CONNECTED=30000ms
|
|
|
|
# Tasks related configurations, need to change the configuration if you use the related tasks.
|
|
export HADOOP_HOME=${HADOOP_HOME:-/opt/soft/hadoop}
|
|
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-/opt/soft/hadoop/etc/hadoop}
|
|
export SPARK_HOME=${SPARK_HOME:-/opt/soft/spark}
|
|
export PYTHON_LAUNCHER=${PYTHON_LAUNCHER:-/opt/soft/python/bin/python3}
|
|
export HIVE_HOME=${HIVE_HOME:-/opt/soft/hive}
|
|
export FLINK_HOME=${FLINK_HOME:-/opt/soft/flink}
|
|
export DATAX_LAUNCHER=${DATAX_LAUNCHER:-/opt/soft/datax/bin/datax.py}
|
|
|
|
export PATH=$HADOOP_HOME/bin:$SPARK_HOME/bin:$PYTHON_LAUNCHER:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$DATAX_LAUNCHER:$PATH
|
|
|
|
export MASTER_RESERVED_MEMORY=0.01
|
|
export WORKER_RESERVED_MEMORY=0.01
|
|
|
|
# applicationId auto collection related configuration, the following configurations are unnecessary if setting appId.collect=log
|
|
#export HADOOP_CLASSPATH=`hadoop classpath`:${DOLPHINSCHEDULER_HOME}/tools/libs/*
|
|
#export SPARK_DIST_CLASSPATH=$HADOOP_CLASSPATH:$SPARK_DIST_CLASS_PATH
|
|
#export HADOOP_CLIENT_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$HADOOP_CLIENT_OPTS
|
|
#export SPARK_SUBMIT_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$SPARK_SUBMIT_OPTS
|
|
#export FLINK_ENV_JAVA_OPTS="-javaagent:${DOLPHINSCHEDULER_HOME}/tools/libs/aspectjweaver-1.9.7.jar":$FLINK_ENV_JAVA_OPTS
|