+ TARGET_FILE=./bin/nifi.sh ++ dirname ./bin/nifi.sh + cd ./bin ++ basename ./bin/nifi.sh + TARGET_FILE=nifi.sh + '[' -L nifi.sh ']' ++ pwd -P + PHYS_DIR=/apps/nifi/nifi-1.5.0/bin + SCRIPT_DIR=/apps/nifi/nifi-1.5.0/bin ++ basename ./bin/nifi.sh + PROGNAME=nifi.sh + . /apps/nifi/nifi-1.5.0/bin/nifi-env.sh +++ cd /apps/nifi/nifi-1.5.0/bin +++ cd .. +++ pwd ++ export NIFI_HOME=/apps/nifi/nifi-1.5.0 ++ NIFI_HOME=/apps/nifi/nifi-1.5.0 ++ export NIFI_PID_DIR=/apps/nifi/nifi-1.5.0/run ++ NIFI_PID_DIR=/apps/nifi/nifi-1.5.0/run ++ export NIFI_LOG_DIR=/apps/nifi/nifi-1.5.0/logs ++ NIFI_LOG_DIR=/apps/nifi/nifi-1.5.0/logs + case "$1" in + main start + init start + detectOS + cygwin=false + aix=false + os400=false + darwin=false + case "$(uname)" in ++ uname + false + '[' -f /etc/os-release ']' + . /etc/os-release ++ NAME='CentOS Linux' ++ VERSION='7 (Core)' ++ ID=centos ++ ID_LIKE='rhel fedora' ++ VERSION_ID=7 ++ PRETTY_NAME='CentOS Linux 7 (Core)' ++ ANSI_COLOR='0;31' ++ CPE_NAME=cpe:/o:centos:centos:7 ++ HOME_URL=https://www.centos.org/ ++ BUG_REPORT_URL=https://bugs.centos.org/ ++ CENTOS_MANTISBT_PROJECT=CentOS-7 ++ CENTOS_MANTISBT_PROJECT_VERSION=7 ++ REDHAT_SUPPORT_PRODUCT=centos ++ REDHAT_SUPPORT_PRODUCT_VERSION=7 + unlimitFD + '[' x = x ']' + MAX_FD=maximum + '[' false = false ']' + '[' false = false ']' ++ ulimit -H -n + MAX_FD_LIMIT=999999 + '[' 999999 '!=' unlimited ']' + '[' 0 -eq 0 ']' + '[' maximum = maximum -o maximum = max ']' + MAX_FD=999999 + ulimit -n 999999 + '[' 0 -ne 0 ']' + locateJava start + false + '[' x = x ']' + '[' -r /etc/gentoo-release ']' + '[' x = x ']' + '[' x '!=' x ']' + warn 'JAVA_HOME not set; results may vary' + echo 'nifi.sh: JAVA_HOME not set; results may vary' nifi.sh: JAVA_HOME not set; results may vary ++ type java + JAVA='java is /bin/java' ++ expr 'java is /bin/java' : '.* \(/.*\)$' + JAVA=/bin/java + '[' x/bin/java = x ']' + '[' start = env ']' + run start + BOOTSTRAP_CONF_DIR=/apps/nifi/nifi-1.5.0/conf + BOOTSTRAP_CONF=/apps/nifi/nifi-1.5.0/conf/bootstrap.conf + BOOTSTRAP_LIBS='/apps/nifi/nifi-1.5.0/lib/bootstrap/*' ++ grep '^\s*run.as' /apps/nifi/nifi-1.5.0/conf/bootstrap.conf ++ cut -d= -f2 + run_as_user= ++ whoami + '[' '' = root ']' + false + '[' -n '' ']' + BOOTSTRAP_CLASSPATH='/apps/nifi/nifi-1.5.0/conf:/apps/nifi/nifi-1.5.0/lib/bootstrap/*' + '[' -n '' ']' + echo + echo 'Java home: ' Java home: + echo 'NiFi home: /apps/nifi/nifi-1.5.0' NiFi home: /apps/nifi/nifi-1.5.0 + echo + echo 'Bootstrap Config File: /apps/nifi/nifi-1.5.0/conf/bootstrap.conf' Bootstrap Config File: /apps/nifi/nifi-1.5.0/conf/bootstrap.conf + echo + BOOTSTRAP_LOG_PARAMS='-Dorg.apache.nifi.bootstrap.config.log.dir='\''/apps/nifi/nifi-1.5.0/logs'\''' + BOOTSTRAP_PID_PARAMS='-Dorg.apache.nifi.bootstrap.config.pid.dir='\''/apps/nifi/nifi-1.5.0/run'\''' + BOOTSTRAP_CONF_PARAMS='-Dorg.apache.nifi.bootstrap.config.file='\''/apps/nifi/nifi-1.5.0/conf/bootstrap.conf'\''' + BOOTSTRAP_DIR_PARAMS='-Dorg.apache.nifi.bootstrap.config.log.dir='\''/apps/nifi/nifi-1.5.0/logs'\'' -Dorg.apache.nifi.bootstrap.config.pid.dir='\''/apps/nifi/nifi-1.5.0/run'\'' -Dorg.apache.nifi.bootstrap.config.file='\''/apps/nifi/nifi-1.5.0/conf/bootstrap.conf'\''' + run_nifi_cmd=''\''/bin/java'\'' -cp '\''/apps/nifi/nifi-1.5.0/conf:/apps/nifi/nifi-1.5.0/lib/bootstrap/*'\'' -Xms12m -Xmx24m -Dorg.apache.nifi.bootstrap.config.log.dir='\''/apps/nifi/nifi-1.5.0/logs'\'' -Dorg.apache.nifi.bootstrap.config.pid.dir='\''/apps/nifi/nifi-1.5.0/run'\'' -Dorg.apache.nifi.bootstrap.config.file='\''/apps/nifi/nifi-1.5.0/conf/bootstrap.conf'\'' org.apache.nifi.bootstrap.RunNiFi start' + '[' -n '' ']' + '[' start = run ']' + '[' start = start ']' + eval 'cd /apps/nifi/nifi-1.5.0 && '\''/bin/java'\'' -cp '\''/apps/nifi/nifi-1.5.0/conf:/apps/nifi/nifi-1.5.0/lib/bootstrap/*'\'' -Xms12m -Xmx24m -Dorg.apache.nifi.bootstrap.config.log.dir='\''/apps/nifi/nifi-1.5.0/logs'\'' -Dorg.apache.nifi.bootstrap.config.pid.dir='\''/apps/nifi/nifi-1.5.0/run'\'' -Dorg.apache.nifi.bootstrap.config.file='\''/apps/nifi/nifi-1.5.0/conf/bootstrap.conf'\'' org.apache.nifi.bootstrap.RunNiFi start' + EXIT_STATUS=0 + sleep 3 ++ cd /apps/nifi/nifi-1.5.0 ++ /bin/java -cp '/apps/nifi/nifi-1.5.0/conf:/apps/nifi/nifi-1.5.0/lib/bootstrap/*' -Xms12m -Xmx24m -Dorg.apache.nifi.bootstrap.config.log.dir=/apps/nifi/nifi-1.5.0/logs -Dorg.apache.nifi.bootstrap.config.pid.dir=/apps/nifi/nifi-1.5.0/run -Dorg.apache.nifi.bootstrap.config.file=/apps/nifi/nifi-1.5.0/conf/bootstrap.conf org.apache.nifi.bootstrap.RunNiFi start + echo