atlas-env.sh 3.22 KB
Newer Older
1
#!/usr/bin/env bash
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#
# 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.
#
# The java implementation to use. If JAVA_HOME is not found we expect java and jar to be in path
#export JAVA_HOME=

# any additional java opts you want to set. This will apply to both client and server operations
23
#export ATLAS_OPTS=
24 25

# any additional java opts that you want to set for client only
26
#export ATLAS_CLIENT_OPTS=
27 28

# java heap size we want to set for the client. Default is 1024MB
29
#export ATLAS_CLIENT_HEAP=
30

31
# any additional opts you want to set for atlas service.
32
#export ATLAS_SERVER_OPTS=
33

34 35 36
# indicative values for large number of metadata entities (equal or more than 10,000s)
#export ATLAS_SERVER_OPTS="-server -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+PrintTenuringDistribution -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dumps/atlas_server.hprof -Xloggc:logs/gc-worker.log -verbose:gc -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=1m -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCTimeStamps"

37
# java heap size we want to set for the atlas server. Default is 1024MB
38
#export ATLAS_SERVER_HEAP=
39

40 41 42
# indicative values for large number of metadata entities (equal or more than 10,000s) for JDK 8
#export ATLAS_SERVER_HEAP="-Xms15360m -Xmx15360m -XX:MaxNewSize=5120m -XX:MetaspaceSize=100M -XX:MaxMetaspaceSize=512m"

43
# What is is considered as atlas home dir. Default is the base locaion of the installed software
44
#export ATLAS_HOME_DIR=
45 46

# Where log files are stored. Defatult is logs directory under the base install location
47
#export ATLAS_LOG_DIR=
48 49

# Where pid files are stored. Defatult is logs directory under the base install location
50
#export ATLAS_PID_DIR=
51

52
# where the atlas titan db data is stored. Defatult is logs/data directory under the base install location
53
#export ATLAS_DATA_DIR=
54 55

# Where do you want to expand the war file. By Default it is in /server/webapp dir under the base install dir.
56
#export ATLAS_EXPANDED_WEBAPP_DIR=
57

58
# indicates whether or not a local instance of HBase should be started for Atlas
59
export MANAGE_LOCAL_HBASE=${hbase.embedded}
60 61

# indicates whether or not a local instance of Solr should be started for Atlas
62
export MANAGE_LOCAL_SOLR=${solr.embedded}
63 64

# indicates whether or not cassandra is the embedded backend for Atlas
65 66 67 68
export MANAGE_EMBEDDED_CASSANDRA=${cassandra.embedded}

# indicates whether or not a local instance of Elasticsearch should be started for Atlas
export MANAGE_LOCAL_ELASTICSEARCH=${elasticsearch.managed}