Created 05-18-2021 04:22 AM
2021-05-18 16:50:45,740 INFO scm-web-112:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/dbTestConn/testConnection
2021-05-18 16:50:45,744 INFO scm-web-112:com.cloudera.cmf.service.ServiceHandlerRegistry: Executing host command HueTestDatabaseConnection with sensitive arguments. Host: DbHost{id=2, hostId=4f19de0c-8fc0-4c39-9ed8-fb65346048ba, hostName=cn2.hadoop.com}
2021-05-18 16:50:45,854 INFO scm-web-112:com.cloudera.enterprise.JavaMelodyFacade: Exiting HTTP Operation: Method:POST, Path:/dbTestConn/testConnection, Status:200
2021-05-18 16:50:48,768 INFO scm-web-113:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult
2021-05-18 16:50:48,779 INFO scm-web-113:com.cloudera.enterprise.JavaMelodyFacade: Exiting HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult, Status:200
2021-05-18 16:50:51,770 INFO scm-web-105:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult
2021-05-18 16:50:51,777 INFO scm-web-105:com.cloudera.enterprise.JavaMelodyFacade: Exiting HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult, Status:200
2021-05-18 16:50:54,769 INFO scm-web-107:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult
2021-05-18 16:50:54,775 INFO scm-web-107:com.cloudera.enterprise.JavaMelodyFacade: Exiting HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult, Status:200
2021-05-18 16:50:56,249 WARN avro-servlet-hb-processor-0:com.cloudera.server.cmf.AgentProtocolImpl: Received Process Heartbeat for unknown (or duplicate) process. Ignoring. This is expected to happen once after old process eviction or process deletion (as happens in restarts). id=354 name=HUE-test-db-connection host=4f19de0c-8fc0-4c39-9ed8-fb65346048ba/cn2.hadoop.com
2021-05-18 16:50:57,768 INFO scm-web-101:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult
2021-05-18 16:50:57,774 INFO scm-web-101:com.cloudera.enterprise.JavaMelodyFacade: Exiting HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult, Status:200
2021-05-18 16:51:00,769 INFO scm-web-111:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult
2021-05-18 16:51:00,776 INFO scm-web-111:com.cloudera.enterprise.JavaMelodyFacade: Exiting HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult, Status:200
2021-05-18 16:51:03,467 INFO CommandPusher:com.cloudera.cmf.service.AbstractOneOffHostCommand: Unsuccessful 'HueTestDatabaseConnection'
2021-05-18 16:51:03,469 INFO CommandPusher:com.cloudera.cmf.service.AbstractDbConnectionTestCommand: Command exited with code: 1
2021-05-18 16:51:03,469 INFO CommandPusher:com.cloudera.cmf.service.AbstractDbConnectionTestCommand: return get_distribution(dist).load_entry_point(group, name)
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
return ep.load()
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2443, in load
return self.resolve()
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/desktop/core/src/desktop/__init__.py", line 19, in <module>
import desktop.signal_handlers
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/desktop/core/src/desktop/signal_handlers.py", line 20, in <module>
from desktop.lib.thread_util import dump_traceback
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/desktop/core/src/desktop/lib/thread_util.py", line 20, in <module>
standard_library.install_aliases()
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/future-0.16.0-py2.7.egg/future/standard_library/__init__.py", line 487, in install_aliases
from future.moves.test import support
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/future-0.16.0-py2.7.egg/future/moves/test/support.py", line 10, in <module>
from test.test_support import *
File "/usr/lib64/python2.7/test/test_support.py", line 402, in <module>
IPV6_ENABLED = _is_ipv6_enabled()
File "/usr/lib64/python2.7/test/test_support.py", line 393, in _is_ipv6_enabled
sock.bind((HOSTv6, 0))
File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address
2021-05-18 16:51:03,469 ERROR CommandPusher:com.cloudera.cmf.model.DbCommand: Command 1080(HueTestDatabaseConnection) has completed. finalstate:FINISHED, success:false, msg:Unexpected error. Unable to verify database connection.
2021-05-18 16:51:03,778 INFO scm-web-111:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult
2021-05-18 16:51:03,785 INFO scm-web-111:com.cloudera.enterprise.JavaMelodyFacade: Exiting HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult, Status:200
Created 05-18-2021 04:26 AM
Hello,
I am struck on this error from last 4 days. Didn't get much help anywhere. Request you to help me on this.
Thanks,
Venkata
Created 05-18-2021 04:41 AM
/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/logs/stderr.log
[18/May/2021 16:50:58 +0000] 15015 MainThread redactor INFO Started launcher: /opt/cloudera/cm-agent/service/hue/hue.sh is_db_alive
[18/May/2021 16:50:58 +0000] 15015 MainThread redactor ERROR Redaction rules file doesn't exist, not redacting logs. file: redaction-rules.json, directory: /run/cloudera-scm-agent/process/355-HUE-test-db-connection
[18/May/2021 16:50:58 +0000] 15015 MainThread redactor INFO Re-exec watcher: /opt/cloudera/cm-agent/bin/cm proc_watcher 15022
+ date
+ date
Tue May 18 16:50:59 IST 2021
++ dirname /opt/cloudera/cm-agent/service/hue/hue.sh
+ cloudera_config=/opt/cloudera/cm-agent/service/hue
++ cd /opt/cloudera/cm-agent/service/hue/../common
++ pwd
+ cloudera_config=/opt/cloudera/cm-agent/service/common
+ . /opt/cloudera/cm-agent/service/common/cloudera-config.sh
++ : /opt/cloudera/cm
++ export CLOUDERA_DIR
++ set -x
+ source_parcel_environment
+ '[' '!' -z /opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/meta/cdh_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/CDH-7.0.3-1.cdh7.0.3.p0.1635019/meta/cdh_env.sh
+ PARCEL_DIRNAME=CDH-7.0.3-1.cdh7.0.3.p0.1635019
+ . /opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/meta/cdh_env.sh
++ CDH_DIRNAME=CDH-7.0.3-1.cdh7.0.3.p0.1635019
++ export CDH_HADOOP_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop
++ CDH_HADOOP_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop
++ export CDH_MR1_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-0.20-mapreduce
++ CDH_MR1_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-0.20-mapreduce
++ export CDH_HDFS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-hdfs
++ CDH_HDFS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-hdfs
++ export CDH_OZONE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-ozone
++ CDH_OZONE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-ozone
++ export CDH_HTTPFS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-httpfs
++ CDH_HTTPFS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-httpfs
++ export CDH_MR2_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-mapreduce
++ CDH_MR2_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-mapreduce
++ export CDH_YARN_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-yarn
++ CDH_YARN_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-yarn
++ export CDH_HBASE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase
++ CDH_HBASE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase
++ export CDH_HBASE_FILESYSTEM_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase_filesystem
++ CDH_HBASE_FILESYSTEM_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase_filesystem
++ export CDH_HBASE_CONNECTORS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase_connectors
++ CDH_HBASE_CONNECTORS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase_connectors
++ export CDH_ZOOKEEPER_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/zookeeper
++ CDH_ZOOKEEPER_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/zookeeper
++ export CDH_ZEPPELIN_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/zeppelin
++ CDH_ZEPPELIN_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/zeppelin
++ export CDH_HIVE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hive
++ CDH_HIVE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hive
++ export CDH_HUE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue
++ CDH_HUE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue
++ export CDH_OOZIE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/oozie
++ CDH_OOZIE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/oozie
++ export CDH_HUE_PLUGINS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop
++ CDH_HUE_PLUGINS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop
++ export CDH_FLUME_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/flume-ng
++ CDH_FLUME_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/flume-ng
++ export CDH_HCAT_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hive-hcatalog
++ CDH_HCAT_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hive-hcatalog
++ export CDH_SENTRY_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/sentry
++ CDH_SENTRY_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/sentry
++ export JSVC_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/bigtop-utils
++ JSVC_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/bigtop-utils
++ export CDH_HADOOP_BIN=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop/bin/hadoop
++ CDH_HADOOP_BIN=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop/bin/hadoop
++ export CDH_IMPALA_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/impala
++ CDH_IMPALA_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/impala
++ export CDH_SOLR_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/solr
++ CDH_SOLR_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/solr
++ export CDH_HBASE_INDEXER_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase-solr
++ CDH_HBASE_INDEXER_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase-solr
++ export SEARCH_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/search
++ SEARCH_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/search
++ export CDH_SPARK_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/spark
++ CDH_SPARK_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/spark
++ export WEBHCAT_DEFAULT_XML=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/etc/hive-webhcat/conf.dist/webhcat-default.xml
++ WEBHCAT_DEFAULT_XML=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/etc/hive-webhcat/conf.dist/webhcat-default.xml
++ export CDH_KMS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-kms
++ CDH_KMS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-kms
++ export CDH_PARQUET_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/parquet
++ CDH_PARQUET_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/parquet
++ export CDH_AVRO_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/avro
++ CDH_AVRO_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/avro
++ export CDH_KAFKA_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/kafka
++ CDH_KAFKA_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/kafka
++ export CDH_KNOX_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/knox
++ CDH_KNOX_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/knox
++ export CDH_KUDU_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/kudu
++ CDH_KUDU_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/kudu
++ export CDH_RANGER_ADMIN_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/ranger-admin
++ CDH_RANGER_ADMIN_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/ranger-admin
++ export CDH_RANGER_TAGSYNC_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/ranger-tagsync
++ CDH_RANGER_TAGSYNC_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/ranger-tagsync
++ export CDH_RANGER_USERSYNC_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/ranger-usersync
++ CDH_RANGER_USERSYNC_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/ranger-usersync
++ export CDH_RANGER_KMS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/ranger-kms
++ CDH_RANGER_KMS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/ranger-kms
++ export CDH_ATLAS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/atlas
++ CDH_ATLAS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/atlas
++ export CDH_TEZ_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/tez
++ CDH_TEZ_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/tez
++ export CDH_PHOENIX_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/phoenix
++ CDH_PHOENIX_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/phoenix
++ export DAS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/data_analytics_studio
++ DAS_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/data_analytics_studio
++ export QUEUEMANAGER_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/queuemanager
++ QUEUEMANAGER_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/queuemanager
+ locate_cdh_java_home
+ '[' -z '' ']'
+ '[' -z /opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/bigtop-utils ']'
+ local BIGTOP_DETECT_JAVAHOME=
+ for candidate in '"${JSVC_HOME}"' '"${JSVC_HOME}/.."' '"/usr/lib/bigtop-utils"' '"/usr/libexec"'
+ '[' -e /opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/bigtop-utils/bigtop-detect-javahome ']'
+ BIGTOP_DETECT_JAVAHOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/bigtop-utils/bigtop-detect-javahome
+ break
+ '[' -z /opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/bigtop-utils/bigtop-detect-javahome ']'
+ . /opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/bigtop-utils/bigtop-detect-javahome
++ BIGTOP_DEFAULTS_DIR=/etc/default
++ '[' -n /etc/default -a -r /etc/default/bigtop-utils ']'
++ JAVA11_HOME_CANDIDATES=('/usr/java/jdk-11' '/usr/lib/jvm/jdk-11' '/usr/lib/jvm/java-11-oracle')
++ OPENJAVA11_HOME_CANDIDATES=('/usr/java/jdk-11' '/usr/lib/jvm/java-11' '/usr/lib/jvm/jdk-11' '/usr/lib64/jvm/jdk-11')
++ 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')
++ 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')
++ MISCJAVA_HOME_CANDIDATES=('/Library/Java/Home' '/usr/java/default' '/usr/lib/jvm/default-java' '/usr/lib/jvm/java-openjdk' '/usr/lib/jvm/jre-openjdk')
++ case ${BIGTOP_JAVA_MAJOR} in
++ JAVA_HOME_CANDIDATES=(${JAVA8_HOME_CANDIDATES[@]} ${MISCJAVA_HOME_CANDIDATES[@]} ${OPENJAVA8_HOME_CANDIDATES[@]} ${JAVA11_HOME_CANDIDATES[@]} ${OPENJAVA11_HOME_CANDIDATES[@]})
++ '[' -z '' ']'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/java/jdk1.8*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/java/jre1.8*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/lib/jvm/j2sdk1.8-oracle*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/lib/jvm/j2sdk1.8-oracle/jre*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/lib/jvm/java-8-oracle*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/Library/Java/Home*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/java/default*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/lib/jvm/default-java*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd /usr/lib/jvm/java-openjdk
++ for candidate in '`ls -rvd ${candidate_regex}* 2>/dev/null`'
++ '[' -e /usr/lib/jvm/java-openjdk/bin/java ']'
++ export JAVA_HOME=/usr/lib/jvm/java-openjdk
++ JAVA_HOME=/usr/lib/jvm/java-openjdk
++ break 2
+ get_java_major_version JAVA_MAJOR
+ '[' -z /usr/lib/jvm/java-openjdk/bin/java ']'
++ /usr/lib/jvm/java-openjdk/bin/java -version
+ local 'VERSION_STRING=openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)'
+ local 'RE_JAVA=[java|openjdk][[:space:]]version[[:space:]]\"1\.([0-9][0-9]*)\.?+'
+ [[ openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode) =~ [java|openjdk][[:space:]]version[[:space:]]\"1\.([0-9][0-9]*)\.?+ ]]
+ eval JAVA_MAJOR=8
++ JAVA_MAJOR=8
+ '[' 8 -lt 8 ']'
+ verify_java_home
+ '[' -z /usr/lib/jvm/java-openjdk ']'
+ echo JAVA_HOME=/usr/lib/jvm/java-openjdk
+ export HUE_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection
+ HUE_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection
+ export HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf
+ HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf
+ '[' python27_version_check = is_db_alive ']'
+ '[' -n 7 ']'
+ '[' 7 -ge 6 ']'
+ python27_version_check
+ python27_exists=0
+ python_vers=("/usr/bin" "/usr/local/python27/bin" "/opt/rh/python27/root/usr/bin")
+ for binpath in '${python_vers[@]}'
+ pybin=/usr/bin/python2.7
+ '[' '!' -e /usr/bin/python2.7 ']'
+ [[ /usr/bin == \/\o\p\t\/\r\h\/\p\y\t\h\o\n\2\7* ]]
++ run_python /usr/bin/python2.7
++ /usr/bin/python2.7 --version
++ '[' '!' 0 -eq 0 ']'
++ echo 0
+ out=0
+ '[' 0 -eq 0 ']'
+ export PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/kerberos/bin
+ PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/kerberos/bin
+ python27_exists=1
+ break
+ '[' 1 -eq 0 ']'
+ '[' -e /usr/share/oracle/instantclient/lib ']'
+ add_postgres_to_pythonpath
+ grep -q '^\s*engine\s*=\s*postgres\+' hue.ini
+ '[' 7 -lt 6 ']'
+ return
+ [[ -d /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/yarn-conf ]]
+ [[ -d /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf ]]
+ '[' is_db_alive '!=' is_db_alive ']'
+ export HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hive-conf
+ HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hive-conf
+ chmod -R a+r /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hive-conf
chmod: cannot access ‘/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hive-conf’: No such file or directory
+ export HADOOP_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop
+ HADOOP_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop
+ export HIVE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hive
+ HIVE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hive
+ export HUE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue
+ HUE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue
+ export HBASE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase
+ HBASE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase
+ export PIG_HOME=/usr/lib/pig
+ PIG_HOME=/usr/lib/pig
+ export PIG_SCRIPT_HOME=/usr/lib/pig/../..
+ PIG_SCRIPT_HOME=/usr/lib/pig/../..
+ echo HUE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue
+ echo HUE_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection
+ echo HADOOP_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop
+ echo HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf
+ echo HIVE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hive
+ echo HIVE_DEFAULT_XML=/etc/hive/conf.dist/hive-default.xml
+ echo HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hive-conf
+ echo HBASE_HOME=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase
+ echo PIG_HOME=/usr/lib/pig
+ HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hbase-conf
+ [[ -d /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hbase-conf ]]
+ SQOOP2_CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/sqoop2-conf
+ [[ -d /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/sqoop2-conf ]]
+ export PYTHON_EGG_CACHE=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/.python-eggs
+ PYTHON_EGG_CACHE=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/.python-eggs
+ perl -pi -e 's#\{\{JAVA_HOME}}#/usr/lib/jvm/java-openjdk#g' /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hue.ini
+ perl -pi -e 's#\{\{HBASE_HOME}}#/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hbase#g' /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hue.ini
+ perl -pi -e 's#\{\{PIG_SCRIPT_HOME}}#/usr/lib/pig/../..#g' /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hue.ini
+ perl -pi -e 's#\{\{HADOOP_CONF_DIR}}#/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf#g' /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hue.ini
+ perl -pi -e 's#\{\{HUE_CONF_DIR}}#/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection#g' /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hue.ini
+ [[ -d /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hbase-conf ]]
+ [[ -d /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/sqoop2-conf ]]
+ '[' 7 -ge 4 ']'
+ perl -pi -e 's#\{\{HADOOP_HDFS_HOME}}#/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-hdfs#g' /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hue.ini
+ perl -pi -e 's#\{\{HADOOP_MR1_HOME}}#/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-0.20-mapreduce#g' /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hue.ini
+ perl -pi -e 's#\{\{HADOOP_MR2_HOME}}#/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-mapreduce#g' /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hue.ini
+ perl -pi -e 's#\{\{HADOOP_BIN}}#/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop/bin/hadoop#g' /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hue.ini
+ SQOOP2_SCRIPT_HOME=/usr/lib/sqoop2/../..
+ perl -pi -e 's#\{\{SQOOP2_SCRIPT_HOME}}#/usr/lib/sqoop2/../..#g' /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hue.ini
+ perl -pi -e 's#\{\{CDH_MR1_HOME}}#/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-0.20-mapreduce#g' '/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf/*'
Can't open /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf/*: No such file or directory.
+ perl -pi -e 's#\{\{CDH_MR2_HOME}}#/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop-mapreduce#g' '/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf/*'
Can't open /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf/*: No such file or directory.
+ perl -pi -e 's#\{\{CDH_HADOOP_HOME}}#/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hadoop#g' '/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf/*'
Can't open /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/hadoop-conf/*: No such file or directory.
+ replace_conf_dir
+ echo CONF_DIR=/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection
+ 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' 'supervisor_status')
++ printf '! -name %s ' cloudera-config.sh hue.sh impala.sh sqoop.sh supervisor.conf config.zip proc.json '*.log' '*.keytab' creds.localjceks supervisor_status
+ find /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection -type f '!' -path '/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection/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 creds.localjceks '!' -name supervisor_status -exec perl -pi -e 's#\{\{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/355-HUE-test-db-connection#g' '{}' ';'
+ make_scripts_executable
+ find /var/run/cloudera-scm-agent/process/355-HUE-test-db-connection -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ';'
+ '[' is_db_alive == beeswax_server ']'
+ set_classpath_in_var HADOOP_EXTRA_CLASSPATH_STRING
+ '[' -z HADOOP_EXTRA_CLASSPATH_STRING ']'
+ [[ -n /opt/cloudera/cm ]]
++ find /opt/cloudera/cm/lib/plugins -maxdepth 1 -name '*.jar'
++ tr '\n' :
+ ADD_TO_CP=/opt/cloudera/cm/lib/plugins/event-publish-7.0.3-shaded.jar:/opt/cloudera/cm/lib/plugins/tt-instrumentation-7.0.3.jar:
+ [[ -n '' ]]
+ eval 'OLD_VALUE=$HADOOP_EXTRA_CLASSPATH_STRING'
++ OLD_VALUE=
+ NEW_VALUE=/opt/cloudera/cm/lib/plugins/event-publish-7.0.3-shaded.jar:/opt/cloudera/cm/lib/plugins/tt-instrumentation-7.0.3.jar:
+ export HADOOP_EXTRA_CLASSPATH_STRING=/opt/cloudera/cm/lib/plugins/event-publish-7.0.3-shaded.jar:/opt/cloudera/cm/lib/plugins/tt-instrumentation-7.0.3.jar
+ HADOOP_EXTRA_CLASSPATH_STRING=/opt/cloudera/cm/lib/plugins/event-publish-7.0.3-shaded.jar:/opt/cloudera/cm/lib/plugins/tt-instrumentation-7.0.3.jar
+ HUE=/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/bin/hue
+ [[ is_db_alive == runcpserver ]]
+ [[ is_db_alive == kt_renewer ]]
+ '[' dumpdata = is_db_alive ']'
+ '[' syncdb = is_db_alive ']'
+ '[' ldaptest = is_db_alive ']'
+ exec /opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/bin/hue is_db_alive
Traceback (most recent call last):
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/bin/hue", line 14, in <module>
load_entry_point('desktop', 'console_scripts', 'hue')()
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
return ep.load()
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2443, in load
return self.resolve()
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/desktop/core/src/desktop/__init__.py", line 19, in <module>
import desktop.signal_handlers
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/desktop/core/src/desktop/signal_handlers.py", line 20, in <module>
from desktop.lib.thread_util import dump_traceback
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/desktop/core/src/desktop/lib/thread_util.py", line 20, in <module>
standard_library.install_aliases()
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/future-0.16.0-py2.7.egg/future/standard_library/__init__.py", line 487, in install_aliases
from future.moves.test import support
File "/opt/cloudera/parcels/CDH-7.0.3-1.cdh7.0.3.p0.1635019/lib/hue/build/env/lib/python2.7/site-packages/future-0.16.0-py2.7.egg/future/moves/test/support.py", line 10, in <module>
from test.test_support import *
File "/usr/lib64/python2.7/test/test_support.py", line 402, in <module>
IPV6_ENABLED = _is_ipv6_enabled()
File "/usr/lib64/python2.7/test/test_support.py", line 393, in _is_ipv6_enabled
sock.bind((HOSTv6, 0))
File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address
Created 04-27-2022 09:37 AM
The root cause of this is PEP 3151, introduced in Python 3.3:
You can overcome this issue with the following changes in the file
/usr/lib64/python2.7/test/test_support.py
From:
def _is_ipv6_enabled(): """Check whether IPv6 is enabled on this host.""" if socket.has_ipv6: sock = None try: sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) sock.bind((HOSTv6, 0)) return True except OSError: pass finally: if sock: sock.close() return False
To:
def _is_ipv6_enabled(): """Check whether IPv6 is enabled on this host.""" if socket.has_ipv6: sock = None try: sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) sock.bind((HOSTv6, 0)) return True except socket.error if sys.version_info < (3, 3) else OSError: ---> this is how it should be pass finally: if sock: sock.close()