2015-02-26 17:29:16 +00:00
|
|
|
#!/usr/bin/env bash
|
2014-05-05 21:43:14 +00:00
|
|
|
#
|
|
|
|
# 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. See accompanying LICENSE file.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set kms specific environment variables here.
|
|
|
|
#
|
2015-01-02 18:52:23 +00:00
|
|
|
# hadoop-env.sh is read prior to this file.
|
|
|
|
#
|
2014-05-05 21:43:14 +00:00
|
|
|
|
|
|
|
# KMS temporary directory
|
|
|
|
#
|
2015-01-02 18:52:23 +00:00
|
|
|
# export KMS_TEMP=${HADOOP_PREFIX}/temp
|
2014-05-05 21:43:14 +00:00
|
|
|
|
|
|
|
# The HTTP port used by KMS
|
|
|
|
#
|
|
|
|
# export KMS_HTTP_PORT=16000
|
|
|
|
|
|
|
|
# The Admin port used by KMS
|
|
|
|
#
|
2015-01-02 18:52:23 +00:00
|
|
|
# export KMS_ADMIN_PORT=$((KMS_HTTP_PORT + 1))
|
2014-05-05 21:43:14 +00:00
|
|
|
|
2014-09-29 22:02:29 +00:00
|
|
|
# The maximum number of Tomcat handler threads
|
|
|
|
#
|
|
|
|
# export KMS_MAX_THREADS=1000
|
|
|
|
|
2016-02-10 17:56:40 +00:00
|
|
|
# The maximum size of Tomcat HTTP header
|
|
|
|
#
|
|
|
|
# export KMS_MAX_HTTP_HEADER_SIZE=65536
|
|
|
|
|
2014-05-05 21:43:14 +00:00
|
|
|
# The location of the SSL keystore if using SSL
|
|
|
|
#
|
|
|
|
# export KMS_SSL_KEYSTORE_FILE=${HOME}/.keystore
|
|
|
|
|
2015-01-02 18:52:23 +00:00
|
|
|
#
|
2014-05-05 21:43:14 +00:00
|
|
|
# The password of the SSL keystore if using SSL
|
|
|
|
#
|
|
|
|
# export KMS_SSL_KEYSTORE_PASS=password
|
2014-12-08 21:44:44 +00:00
|
|
|
|
|
|
|
#
|
2015-01-02 18:52:23 +00:00
|
|
|
# The password of the truststore
|
|
|
|
#
|
|
|
|
# export KMS_SSL_TRUSTSTORE_PASS=
|
|
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
## Tomcat specific settings
|
|
|
|
##
|
|
|
|
#
|
|
|
|
# Location of tomcat
|
|
|
|
#
|
|
|
|
# export KMS_CATALINA_HOME=${HADOOP_PREFIX}/share/hadoop/kms/tomcat
|
|
|
|
|
|
|
|
# Java System properties for KMS should be specified in this variable.
|
|
|
|
# The java.library.path and hadoop.home.dir properties are automatically
|
|
|
|
# configured. In order to supplement java.library.path,
|
|
|
|
# one should add to the JAVA_LIBRARY_PATH env var.
|
|
|
|
#
|
|
|
|
# export CATALINA_OPTS=
|
|
|
|
|
|
|
|
# PID file
|
|
|
|
#
|
|
|
|
# export CATALINA_PID=${HADOOP_PID_DIR}/hadoop-${HADOOP_IDENT_STRING}-kms.pid
|
|
|
|
|
|
|
|
# Output file
|
|
|
|
#
|
|
|
|
# export CATALINA_OUT=${KMS_LOG}/hadoop-${HADOOP_IDENT_STRING}-kms-${HOSTNAME}.out
|
|
|
|
|