Support Questions
Find answers, ask questions, and share your expertise

Custom CSD, run 4 times

Explorer

这是日志:

 

[12/Jul/2021 13:57:35 +0000] 70820 MainThread redactor INFO 启动启动器:/opt/cloudera/cm-agent/service/csd/csd.sh start
[12/Jul/2021 13:57:35 + 0000] 70820 MainThread 编辑器错误编辑规则文件不存在,未编辑日志。文件:redaction-rules.json,目录:/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER
[12/Jul/2021 13:57:35 +0000] 70820 MainThread redactor INFO 重新执行观察者:/ opt/cloudera/cm-agent/bin/cm proc_watcher 70835
Mon Jul 12 13:57:37 CST 2021
+ locate_java_home
+ locate_java_home_no_verify
+ JAVA11_HOME_CANDIDATES=('/usr/java/jdk-11/dlibkvm/' -11' '/usr/lib/jvm/java-11-oracle')
+ 本地 JAVA11_HOME_CANDIDATES
+ OPENJAVA11_HOME_CANDIDATES=('/usr/lib/jvm/jdk-11' '/usr/lib64/jvm/jdk-11')
+ 本地 OPENJAVA11_HOME_CANDIDATES
+ JAVA8_HOME_CANDIDATES=('/usr/java/jdk1. java/jre1.8''/usr/lib/jvm/j2sdk1.8-oracle''/usr/lib/jvm/j2sdk1.8-oracle/jre''/usr/lib/jvm/java-8-oracle' )
+ 本地 JAVA8_HOME_CANDIDATES
+ OPENJAVA8_HOME_CANDIDATES=('/usr/lib/jvm/java-1.8.0-openjdk' '/usr/lib/jvm/java-8-openjdk' '/usr/lib64/jvm/java-1.8. 0-openjdk' '/usr/lib64/jvm/java-8-openjdk')
+ 本地 OPENJAVA8_HOME_CANDIDATES
+ MISCJAVA_HOME_CANDIDATES=('/Library/Java/Home' '/usr/java/default' '/usr/lib/jvm/默认-java' '/usr/lib/jvm/java-openjdk' '/usr/lib/jvm/jre-openjdk')
+ 本地 MISCJAVA_HOME_CANDIDATES
+ case ${BIGTOP_JAVA_MAJOR} in
+ JAVA_HOME_CANDIDATES=(${JAVA8_HOME_CANDIDATES[@]} ${MISCJAVA_HOME_CANDIDATES[@]} ${OPENJAVA8_HOME_CANDIDATES[@]} ${JAVA11_HOME_CANDIDATES[@]} ${OPENJAVA11}]
'+' CANDIDATES '+' CANDIDATES[@] ' '
+ '${JAVA_HOME_CANDIDATES[@]}' 中的
Candidate_regex ++ ls -rvd /usr/java/jdk1.8.0_181-cloudera
+ '`ls -rvd ${candidate_regex}* 2>/dev/null 中的候选者`'
+ '[' -e /usr/java/jdk1.8.0_181-cloudera/bin/java ']'
+ 导出 JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
+ JAVA_HOME=/usr/java/jdk1 .8.0_181-cloudera
+ break 2
+ verify_java_home
+ '[' -z /usr/java/jdk1.8.0_181-cloudera ']'
+ echo JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
+ '[' - ''']'
+ source_parcel_environment
+ '[' '!' -z /opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh ']'
+ OLD_IFS='
'
+ IFS=:
+ SCRIPT_ARRAY=($SCM_DEFINES_SCRIPTS)
+ DIRNAME_ARRAY=($PARCEL_DIRNAMES)
+ IFS='
'
+ COUNT=1
++ seq 1 1
+ for i in '`seq 1 $COUNT`'
+ SCRIPT=/opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh
+ PARCEL_DIRNAME=NGINX-V1。 19.6
+。/opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh
++ NGINX_DIRNAME=NGINX-V1.19.6
++ 导出 NGINX_HOME=/opt/cloudera/parcels/NGINX-V1.19.6/lib/nginx
++ NGINX_HOME=/opt/cloudera/parcels/NGINX-V1.19.6/lib/nginx
+ echo '
+ echo '使用脚本/control.sh作为进程脚本'
+ replace_conf_dir
+ echo CONF_DIR=/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER
+ echo CMF_CONF_DIR=
+ EXCLUDE_CMF_FILES=('cloudera-config. sh' 'hue.sh' 'impala.sh' 'sqoop.sh' 'supervisor.conf' 'config.zip' 'proc.json' '*.log' '*.keytab' '*jceks')
++ printf '!-name %s ' cloudera-config.sh Hue.sh impala.sh sqoop.sh supervisor.conf config.zip proc.json '*.log' '*.keytab' '*jceks'
+ find /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER -type f '!' -path '/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/logs/*' '!' -name cloudera-config.sh '!' -name Hue.sh '!' -name impala.sh '!' -name sqoop.sh '!' -name supervisor.conf '!' -name config.zip '!' -name proc.json '!' -name '*.log' '!' -name '*.keytab' '!' -name '*jceks' -exec perl -pi -e 's#\{\{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER#g' '{}' ' ;'
+ make_scripts_executable
+ find /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ' ;'


+ chmod u+x /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/scripts/control.sh
+ export COMMON_SCRIPT=/opt/cloudera/cm-agent/service/common/cloudera-config。 sh
+ COMMON_SCRIPT=/opt/cloudera/cm-agent/service/common/cloudera-config.sh
+ exec /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/scripts/control.sh 开始
[ 12/Jul/2021 13:57:39 +0000] 70864 MainThread redactor INFO 启动启动器:/opt/cloudera/cm-agent/service/csd/csd.sh start
[12/Jul/2021 13:57:39 +0000 ] 70864 MainThread 编辑器错误编辑规则文件不存在,未编辑日志。文件:redaction-rules.json,目录:/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER
[12 /月/ 2021 13时57分39秒0000] 70864 MainThread主编INFO重新EXEC观察者中:/ opt / Cloudera的/厘米剂/ bin中/厘米proc_watcher 70873
星期一7月12日13点57分40秒CST 2021
+ locate_java_home
+ locate_java_home_no_verify
+ JAVA11_HOME_CANDIDATES =( '的/ usr /爪哇/ JDK-11' '/ usr / lib中/ JVM / JDK-11' '/ usr / lib中/ JVM / JAVA-11-预言')
+本地JAVA11_HOME_CANDIDATES
+ OPENJAVA11_HOME_CANDIDATES =(” /usr/lib/jvm/jdk-11' '/usr/lib64/jvm/jdk-11')
+ 本地 OPENJAVA11_HOME_CANDIDATES
+ JAVA8_HOME_CANDIDATES=('/usr/java/jdk1.8' '/usr/java/jre1.8 ' '/usr/lib/jvm/j2sdk1.8-oracle' '/usr/lib/jvm/j2sdk1.8-oracle/jre' '/usr/lib/jvm/java-8-oracle')
+ 本地 JAVA8_HOME_CANDIDATES
+ OPENJAVA8_HOME_CANDIDATES=('/usr/lib/jvm/java-1.8.0-openjdk''/usr/lib/jvm/java-8-openjdk''/usr/lib64/jvm/java-1.8.0-openjdk' '/usr/lib64/jvm/java-8-openjdk')
+ 本地 OPENJAVA8_HOME_CANDIDATES
+ MISCJAVA_HOME_CANDIDATES=('/Library/Java/Home' '/usr/java/default' '/usr/lib/jvm/default-java' '/usr/lib/jvm/java-openjdk' '/usr/lib/jvm/jre-openjdk')
+ 本地 MISCJAVA_HOME_CANDIDATES
+ case ${BIGTOP_JAVA_MAJOR} in
+ JAVA_HOME_CANDIDATES=(${JAVA8_HOME_CANDIDATES${MISCDIDATES[@]} @]} ${OPENJAVA8_HOME_CANDIDATES[@]} ${JAVA11_HOME_CANDIDATES[@]} ${OPENJAVA11_HOME_CANDIDATES[@]})
+ '[' -z '' ']'
+ forCandidate_regex in '${JAVA_HOME_CANDIDATES[@]}
++ ls -rvd /usr/java/jdk1.8.0_181-cloudera
+ 'ls -rvd ${candidate_regex}* 2>/dev/null`'
+ '[' -e /usr/java/jdk1.8.0_181-cloudera/bin/java ']'
+ export JAVA_HOME= /usr/java/jdk1.8.0_181-cloudera
+ JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
+ break 2
+ verify_java_home
+ '[' -z /usr/java/jdk1.8.0_181-cloudera ']'
+ echo JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
+ '[' -n '' ']'
+ source_parcel_environment
+ '[' '!' -z /opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh ']'
+ OLD_IFS='
'
+ IFS=:
+ SCRIPT_ARRAY=($SCM_DEFINES_SCRIPTS)
+ DIRNAME_ARRAY=($PARCEL_DIRNAMES)
+ IFS='
'



+ SCRIPT=/opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh
+ PARCEL_DIRNAME=NGINX-V1.19.6
+ . /opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh
++ NGINX_DIRNAME=NGINX-V1.19.6
++ 导出 NGINX_HOME=/opt/cloudera/parcels/NGINX-V1.19.6/lib/nginx
++ NGINX_HOME=/opt/cloudera/parcels/NGINX-V1.19.6/lib/nginx
+ echo 'Using /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER 作为 conf dir'
+ echo 'Using scripts/ control.sh 作为进程脚本'
+ replace_conf_dir
+ echo CONF_DIR=/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER
+ echo CMF_CONF_DIR=
+ EXCLUDE_CMF_FILES=('cloudera-config.sh' 'hue.sh' 'impala.sh' 'sqoop.sh' 'supervisor.conf' 'config.zip' 'proc.json' '*.log' '*.keytab ' '* jceks')
++ printf '!-name %s ' cloudera-config.sh Hue.sh impala.sh sqoop.sh supervisor.conf config.zip proc.json '*.log' '*.keytab' '*jceks'
+ find /var/run/cloudera -scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER -type f '!' -path '/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/logs/*' '!' -name cloudera-config.sh '!' -name Hue.sh '!' -name impala.sh '!' -name sqoop.sh '!' -name supervisor.conf '!' -name config.zip '!' -name proc.json '!' -name '*.log' '!' -name '*.keytab' '!' -name '*jceks' -exec perl -pi -e 's#\{\{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER#g' '{}' ' ;'
+ make_scripts_executable
+ find /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ';'
+ RUN_DIR=/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER
+ '[' '' == true ']'
+ chmod u+x /var/run/cloudera-scm-agent/process /1068-nginxcsd-NGINX_WEBSERVER/scripts/control.sh
+ export COMMON_SCRIPT=/opt/cloudera/cm-agent/service/common/cloudera-config.sh
+ COMMON_SCRIPT=/opt/cloudera/cm-agent/service/common/ cloudera-config.sh
+ exec /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/scripts/control.sh start
nginx: [emerg] bind() to 0.0.0.0:80 failed (98:地址已经在使用)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] ] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] 仍然无法 bind()
[12/Jul/2021 13:57:45 +0000] 70907 MainThread redactor INFO Started launcher :/opt/cloudera/cm-agent/service/csd/csd.sh start
[12/Jul/2021 13:57:45 +0000] 70907 MainThread redactor ERROR 编辑规则文件不存在,未编辑日志。文件:redaction-rules.json,目录:/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER
[12/Jul/2021 13:57:45 +0000] 70907 MainThread redactor INFO 重新执行观察者:/ opt/cloudera/cm-agent/bin/cm proc_watcher 70915
Mon Jul 12 13:57:46 CST 2021
+ locate_java_home
+ locate_java_home_no_verify
+ JAVA11_HOME_CANDIDATES=('/usr/java/jdk-11' '/usr/lib/jvm/jdk-11' '/usr/lib/jvm/java-11-oracle')
+ 本地
JAVA11_HOME_CANDIDATES_HOME_CANDIDATES =('/usr/lib/jvm/jdk-11' '/usr/lib64/jvm/jdk-11')
+ 本地 OPENJAVA11_HOME_CANDIDATES
+ JAVA8_HOME_CANDIDATES=('/usr/java/jdk1.8' '/usr/java/ jre1.8' '/usr/lib/jvm/j2sdk1.8-oracle' '/usr/lib/jvm/j2sdk1.8-oracle/jre' '/usr/lib/jvm/java-8-oracle')
+本地JAVA8_HOME_CANDIDATES
+ OPENJAVA8_HOME_CANDIDATES=('/usr/lib/jvm/java-1.8.0-openjdk''/usr/lib/jvm/java-8-openjdk''/usr/lib64/jvm/java-1.8.0- openjdk''/usr/lib64/jvm/java-8-openjdk')
+ 本地 OPENJAVA8_HOME_CANDIDATES
+ MISCJAVA_HOME_CANDIDATES=('/Library/Java/Home' '/usr/java/default' '/usr/lib/jvm/default-java' '/usr/lib/jvm/java-openjdk' '/usr/lib/ jvm/jre-openjdk')
+ 本地 MISCJAVA_HOME_CANDIDATES
+ case ${BIGTOP_JAVA_MAJOR} in
+ JAVA_HOME_CANDIDATES=(${JAVA8_HOME_CANDIDATES[@]} ${MISCJAVA_HOME_CANDIDATES[@]} ${OPENJAVA_HOME_CANDIDATES[@]} $HOME@CANDIDATES[@]} ${OPENJAVA@1SIDATES ${BIGTOP_JAVA_MAJOR} {OPENJAVA11_HOME_CANDIDATES[@]})
+ '[' -z '' ']'
+
forCandidate_regex in '${JAVA_HOME_CANDIDATES[@]}' ++ ls -rvd /usr/java/jdk1.8.0_181-cloudera
+ forCandidate在'`ls -rvd ${candidate_regex}* 2>/dev/null`'
+ '[' -e /usr/java/jdk1.8.0_181-cloudera/bin/java ']'
+ export JAVA_HOME=/usr/ java/jdk1.8。0_181-cloudera
+ JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
+ 中断 2
+ verify_java_home
+ '[' -z /usr/java/jdk1.8.0_181-cloudera ']'
+ echo JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
+ '[' -n '' '] '
+ source_parcel_environment
+ '[' '!' -z /opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh ']'
+ OLD_IFS='
'
+ IFS=:
+ SCRIPT_ARRAY=($SCM_DEFINES_SCRIPTS)
+ DIRNAME_ARRAY=($PARCEL_DIRNAMES)
+ IFS='
'
+ COUNT=1
++ seq 1 1
+ for i in '`seq 1 $COUNT`'
+ SCRIPT=/opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh
+ PARCEL_DIRNAME=NGINX-V1。 19.6
+。/opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env。

++ 导出 NGINX_HOME=/opt/cloudera/parcels/NGINX-V1.19.6/lib/nginx
++ NGINX_HOME=/opt/cloudera/parcels/NGINX-V1.19.6/lib/nginx
+ echo '使用 /var/run/ cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER as conf dir'
+ echo 'Using scripts/control.sh as process script'
+ replace_conf_dir
+ echo CONF_DIR=/var/run/cloudera-scm-agent/process/1068 -nginxcsd-NGINX_WEBSERVER
+ echo CMF_CONF_DIR=
+ EXCLUDE_CMF_FILES=('cloudera-config.sh' 'hue.sh' 'impala.sh' 'sqoop.sh' 'supervisor.conf' 'config.zip' 'proc.json' ' *.log' '*.keytab' '*jceks')
++ printf '! -name %s ' cloudera-config.sh Hue.sh impala.sh sqoop.sh supervisor.conf config.zip proc.json '*.log' '*.
+ find /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER -type f '!' -path '/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/logs/*' '!' -name cloudera-config.sh '!' -name Hue.sh '!' -name impala.sh '!' -name sqoop.sh '!' -name supervisor.conf '!' -name config.zip '!' -name proc.json '!' -name '*.log' '!' -name '*.keytab' '!' -name '*jceks' -exec perl -pi -e 's#\{\{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER#g' '{}' ' ;'
+ make_scripts_executable
+ find /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ' ;'


+ chmod u+x /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/scripts/control.sh
+ export COMMON_SCRIPT=/opt/cloudera/cm-agent/service/common/cloudera-config。 sh
+ COMMON_SCRIPT=/opt/cloudera/cm-agent/service/common/cloudera-config.sh
+ exec /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/scripts/control.sh 启动
nginx : [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 失败(98:地址已被使用)
nginx: [emerg] 仍然无法绑定()
[12/Jul/2021 13:57:52 +0000] 70988 MainThread redactor INFO 启动启动器:/opt/cloudera/cm-agent/service/csd/csd.sh start
[ 2021 年 7 月 12 日 13:57:52 +0000] 70988 MainThread 编辑器错误编辑规则文件不存在,未编辑日志。文件:redaction-rules.json,目录:/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER
[12/Jul/2021 13:57:52 +0000] 70988 MainThread redactor INFO 重新执行观察者:/ opt/cloudera/cm-agent/bin/cm proc_watcher 70997
Mon Jul 12 13:57:53 CST 2021
+ locate_java_home
+ locate_java_home_no_verify
+ JAVA11_HOME_CANDIDATES=('/usr/java/jdk-11/dlibkvm/' -11' '/usr/lib/jvm/java-11-oracle')
+ 本地 JAVA11_HOME_CANDIDATES
+ OPENJAVA11_HOME_CANDIDATES=('/usr/lib/jvm/jdk-11' '/usr/lib64/jvm/jdk-11')
+ 本地 OPENJAVA11_HOME_CANDIDATES
+ JAVA8_HOME_CANDIDATES=('/usr/java/jdk1. java/jre1.8''/usr/lib/jvm/j2sdk1.8-oracle''/usr/lib/jvm/j2sdk1.8-oracle/jre''/usr/lib/jvm/java-8-oracle' )
+ 本地 JAVA8_HOME_CANDIDATES
+ OPENJAVA8_HOME_CANDIDATES=('/usr/lib/jvm/java-1.8.0-openjdk' '/usr/lib/jvm/java-8-openjdk' '/usr/lib64/jvm/java-1.8. 0-openjdk' '/usr/lib64/jvm/java-8-openjdk')
+ 本地 OPENJAVA8_HOME_CANDIDATES
+ MISCJAVA_HOME_CANDIDATES=('/Library/Java/Home' '/usr/java/default' '/usr/lib/jvm/默认-java' '/usr/lib/jvm/java-openjdk' '/usr/lib/jvm/jre-openjdk')
+ 本地 MISCJAVA_HOME_CANDIDATES
+ case ${BIGTOP_JAVA_MAJOR} in
+ JAVA_HOME_CANDIDATES=(${JAVA8_HOME_CANDIDATES[@]} ${MISCJAVA_HOME_CANDIDATES[@]} ${OPENJAVA8_HOME_CANDIDATES[@]} ${JAVA11_HOME_CANDIDATES[@]} ${OPENJAVA11}]
'+' CANDIDATES '+' CANDIDATES[@] ' '
+ '${JAVA_HOME_CANDIDATES[@]}' 中的
Candidate_regex ++ ls -rvd /usr/java/jdk1.8.0_181-cloudera
+ '`ls -rvd ${candidate_regex}* 2>/dev/null 中的候选者`'
+ '[' -e /usr/java/jdk1.8.0_181-cloudera/bin/java ']'
+ 导出 JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
+ JAVA_HOME=/usr/java/jdk1 .8.0_181-cloudera
+ break 2
+ verify_java_home
+ '[' -z /usr/java/jdk1.8.0_181-cloudera ']'
+ echo JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
+ '[' - ''']'
+ source_parcel_environment
+ '[' '!' -z /opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh ']'
+ OLD_IFS='
'
+ IFS=:
+ SCRIPT_ARRAY=($SCM_DEFINES_SCRIPTS)
+ DIRNAME_ARRAY=($PARCEL_DIRNAMES)
+ IFS='
'
+ COUNT=1
++ seq 1 1
+ for i in '`seq 1 $COUNT`'
+ SCRIPT=/opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh
+ PARCEL_DIRNAME=NGINX-V1。 19.6
+。/opt/cloudera/parcels/NGINX-V1.19.6/meta/nginx_env.sh
++ NGINX_DIRNAME=NGINX-V1.19.6
++ 导出 NGINX_HOME=/opt/cloudera/parcels/NGINX-V1.19.6/lib/nginx
++ NGINX_HOME=/opt/cloudera/parcels/NGINX-V1.19.6/lib/nginx
+ echo '
+ echo '使用脚本/control.sh作为进程脚本'
+ replace_conf_dir
+ echo CONF_DIR=/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER
+ echo CMF_CONF_DIR=
+ EXCLUDE_CMF_FILES=('cloudera-config. sh' 'hue.sh' 'impala.sh' 'sqoop.sh' 'supervisor.conf' 'config.zip' 'proc.json' '*.log' '*.keytab' '*jceks')
++ printf '!-name %s ' cloudera-config.sh Hue.sh impala.sh sqoop.sh supervisor.conf config.zip proc.json '*.log' '*.keytab' '*jceks'
+ find /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER -type f '!' -path '/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/logs/*' '!' -name cloudera-config.sh '!' -name Hue.sh '!' -name impala.sh '!' -name sqoop.sh '!' -name supervisor.conf '!' -name config.zip '!' -name proc.json '!' -name '*.log' '!' -name '*.keytab' '!' -name '*jceks' -exec perl -pi -e 's#\{\{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER#g' '{}' ' ;'
+ make_scripts_executable
+ find /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ' ;'


+ chmod u+x /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/scripts/control.sh
+ export COMMON_SCRIPT=/opt/cloudera/cm-agent/service/common/cloudera-config。 sh
+ COMMON_SCRIPT=/opt/cloudera/cm-agent/service/common/cloudera-config.sh
+ exec /var/run/cloudera-scm-agent/process/1068-nginxcsd-NGINX_WEBSERVER/scripts/control.sh 启动
nginx : [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 失败(98:地址已被使用)
nginx: [emerg] 仍然无法绑定()

 

 

运行4次。

第一次成功了,最近3次都因为端口问题失败了

但CM并不认为它成功了

这是正在运行的程序

 

start() {
echo "运行 nginx"
$NGINX_HOME/sbin/nginx -c $NGINX_HOME/conf/nginx.conf -p $NGINX_HOME
echo "启动 nginx 成功"
}

 

0 REPLIES 0