Support Questions

Find answers, ask questions, and share your expertise

raise UnsupportedPythonVersionError(sys.version) pyinotify.UnsupportedPythonVersionError: Python 2.7.5

avatar
Contributor

Hi Community,

I have recently upgraded our Cloudera Manager from CM 7.6.7 to CM 7.11.3.  After the upgrade, we have not been able to successfully restart many of our services, which include, hue, hdfs, and hbase.

We are currently on CDP 7.1.7 SP2. We intend to upgrade the CDP 7.1.7 SP2 to CDP 7.1.7 SP3 after the issues are resolved.

As a pre-requisite, we have installed Python3.8 (Installation was via anaconda) and created an alternatives pointing python3.8 to the custom installation location.

So, we can type python3.8 --version and get the right result (Python 3.8.18).

After the upgrade, we tried to restart a hue service but get the following exception.

 

 

 

[07/Oct/2024 16:58:09 +0100] 10345 MainThread redactor     INFO     Started launcher: /opt/cloudera/cm-agent/service/hue/hue.sh runcpserver
[07/Oct/2024 16:58:09 +0100] 10345 MainThread redactor     INFO     Re-exec watcher: /opt/cloudera/cm-agent/bin/cm proc_watcher 10620
[07/Oct/2024 16:58:10 +0100] 10621 MainThread redactor     INFO     Re-exec redactor: /opt/cloudera/cm-agent/bin/cm redactor --fds 3 5
[07/Oct/2024 16:58:21 +0100] 10621 MainThread redactor     INFO     Started redactor
+ date
+ date
Mon  7 Oct 16:58:20 BST 2024
++ 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.1.7-1.cdh7.1.7.p2046.46875634/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.1.7-1.cdh7.1.7.p2046.46875634/meta/cdh_env.sh
+ PARCEL_DIRNAME=CDH-7.1.7-1.cdh7.1.7.p2046.46875634
+ . /opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/meta/cdh_env.sh
++ CDH_DIRNAME=CDH-7.1.7-1.cdh7.1.7.p2046.46875634
++ export CDH_HADOOP_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop
++ CDH_HADOOP_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop
++ export CDH_MR1_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-0.20-mapreduce
++ CDH_MR1_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-0.20-mapreduce
++ export CDH_HDFS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-hdfs
++ CDH_HDFS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-hdfs
++ export CDH_OZONE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-ozone
++ CDH_OZONE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-ozone
++ export CDH_HTTPFS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-httpfs
++ CDH_HTTPFS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-httpfs
++ export CDH_MR2_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-mapreduce
++ CDH_MR2_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-mapreduce
++ export CDH_YARN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-yarn
++ CDH_YARN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-yarn
++ export CDH_HBASE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase
++ CDH_HBASE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase
++ export CDH_HBASE_FILESYSTEM_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase_filesystem
++ CDH_HBASE_FILESYSTEM_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase_filesystem
++ export CDH_HBASE_CONNECTORS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase_connectors
++ CDH_HBASE_CONNECTORS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase_connectors
++ export CDH_ZOOKEEPER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/zookeeper
++ CDH_ZOOKEEPER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/zookeeper
++ export CDH_ZEPPELIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/zeppelin
++ CDH_ZEPPELIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/zeppelin
++ export CDH_HIVE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hive
++ CDH_HIVE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hive
++ export CDH_HUE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue
++ CDH_HUE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue
++ export CDH_OOZIE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/oozie
++ CDH_OOZIE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/oozie
++ export CDH_HUE_PLUGINS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop
++ CDH_HUE_PLUGINS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop
++ export CDH_HCAT_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hive-hcatalog
++ CDH_HCAT_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hive-hcatalog
++ export CDH_SENTRY_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/sentry
++ CDH_SENTRY_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/sentry
++ export JSVC_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/bigtop-utils
++ JSVC_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/bigtop-utils
++ export CDH_HADOOP_BIN=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop/bin/hadoop
++ CDH_HADOOP_BIN=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop/bin/hadoop
++ export CDH_IMPALA_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/impala
++ CDH_IMPALA_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/impala
++ export CDH_SOLR_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/solr
++ CDH_SOLR_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/solr
++ export CDH_HBASE_INDEXER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase-solr
++ CDH_HBASE_INDEXER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase-solr
++ export SEARCH_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/search
++ SEARCH_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/search
++ export CDH_SPARK_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/spark
++ CDH_SPARK_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/spark
++ export WEBHCAT_DEFAULT_XML=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/etc/hive-webhcat/conf.dist/webhcat-default.xml
++ WEBHCAT_DEFAULT_XML=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/etc/hive-webhcat/conf.dist/webhcat-default.xml
++ export CDH_KMS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-kms
++ CDH_KMS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-kms
++ export CDH_PARQUET_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/parquet
++ CDH_PARQUET_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/parquet
++ export CDH_AVRO_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/avro
++ CDH_AVRO_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/avro
++ export CDH_KAFKA_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/kafka
++ CDH_KAFKA_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/kafka
++ export CDH_SCHEMA_REGISTRY_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/schemaregistry
++ CDH_SCHEMA_REGISTRY_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/schemaregistry
++ export CDH_STREAMS_MESSAGING_MANAGER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/streams_messaging_manager
++ CDH_STREAMS_MESSAGING_MANAGER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/streams_messaging_manager
++ export CDH_STREAMS_MESSAGING_MANAGER_UI_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/streams_messaging_manager_ui
++ CDH_STREAMS_MESSAGING_MANAGER_UI_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/streams_messaging_manager_ui
++ export CDH_STREAMS_REPLICATION_MANAGER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/streams_replication_manager
++ CDH_STREAMS_REPLICATION_MANAGER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/streams_replication_manager
++ export CDH_CRUISE_CONTROL_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/cruise_control
++ CDH_CRUISE_CONTROL_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/cruise_control
++ export CDH_KNOX_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/knox
++ CDH_KNOX_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/knox
++ export CDH_KUDU_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/kudu
++ CDH_KUDU_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/kudu
++ export CDH_RANGER_ADMIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-admin
++ CDH_RANGER_ADMIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-admin
++ export CDH_RANGER_TAGSYNC_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-tagsync
++ CDH_RANGER_TAGSYNC_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-tagsync
++ export CDH_RANGER_USERSYNC_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-usersync
++ CDH_RANGER_USERSYNC_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-usersync
++ export CDH_RANGER_KMS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-kms
++ CDH_RANGER_KMS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-kms
++ export CDH_RANGER_RAZ_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-raz
++ CDH_RANGER_RAZ_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-raz
++ export CDH_RANGER_RMS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-rms
++ CDH_RANGER_RMS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-rms
++ export CDH_ATLAS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/atlas
++ CDH_ATLAS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/atlas
++ export CDH_TEZ_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/tez
++ CDH_TEZ_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/tez
++ export CDH_PHOENIX_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/phoenix
++ CDH_PHOENIX_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/phoenix
++ export CDH_PHOENIX_QUERYSERVER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/phoenix_queryserver
++ CDH_PHOENIX_QUERYSERVER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/phoenix_queryserver
++ export DAS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/data_analytics_studio
++ DAS_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/data_analytics_studio
++ export QUEUEMANAGER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/queuemanager
++ QUEUEMANAGER_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/queuemanager
++ export CDH_RANGER_HBASE_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-hbase-plugin
++ CDH_RANGER_HBASE_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-hbase-plugin
++ export CDH_RANGER_HIVE_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-hive-plugin
++ CDH_RANGER_HIVE_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-hive-plugin
++ export CDH_RANGER_ATLAS_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-atlas-plugin
++ CDH_RANGER_ATLAS_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-atlas-plugin
++ export CDH_RANGER_SOLR_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-solr-plugin
++ CDH_RANGER_SOLR_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-solr-plugin
++ export CDH_RANGER_HDFS_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-hdfs-plugin
++ CDH_RANGER_HDFS_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-hdfs-plugin
++ export CDH_RANGER_KNOX_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-knox-plugin
++ CDH_RANGER_KNOX_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-knox-plugin
++ export CDH_RANGER_YARN_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-yarn-plugin
++ CDH_RANGER_YARN_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-yarn-plugin
++ export CDH_RANGER_OZONE_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-ozone-plugin
++ CDH_RANGER_OZONE_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-ozone-plugin
++ export CDH_RANGER_KAFKA_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-kafka-plugin
++ CDH_RANGER_KAFKA_PLUGIN_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/ranger-kafka-plugin
+ locate_cdh_java_home
+ '[' -z /usr/java/default ']'
+ verify_java_home
+ '[' -z /usr/java/default ']'
+ echo JAVA_HOME=/usr/java/default
+ export HUE_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER
+ HUE_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER
+ export HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf
+ HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf
+ '[' -e /usr/share/oracle/instantclient/lib ']'
+ export 'LD_LIBRARY_PATH=/usr/share/oracle/instantclient/lib:$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/data/cloudera/cm-agent/lib'
+ LD_LIBRARY_PATH='/usr/share/oracle/instantclient/lib:$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/data/cloudera/cm-agent/lib'
+ [[ -d /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/yarn-conf ]]
+ [[ -d /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf ]]
+ chmod -R a+r /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf
+ export HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hive-conf
+ HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hive-conf
+ chmod -R a+r /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hive-conf
+ export HADOOP_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop
+ HADOOP_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop
+ export HIVE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hive
+ HIVE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hive
+ export HUE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue
+ HUE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue
+ export HBASE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase
+ HBASE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/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.1.7-1.cdh7.1.7.p2046.46875634/lib/hue
+ echo HUE_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER
+ echo HADOOP_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop
+ echo HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf
+ echo HIVE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hive
+ echo HIVE_DEFAULT_XML=/etc/hive/conf.dist/hive-default.xml
+ echo HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hive-conf
+ echo HBASE_HOME=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase
+ echo PIG_HOME=/usr/lib/pig
+ HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hbase-conf
+ [[ -d /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hbase-conf ]]
+ chmod -R a+r /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hbase-conf
+ echo HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hbase-conf
+ SQOOP2_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/sqoop2-conf
+ [[ -d /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/sqoop2-conf ]]
+ echo SQOOP2_CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/sqoop2-conf
+ export PYTHON_EGG_CACHE=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/.python-eggs
+ PYTHON_EGG_CACHE=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/.python-eggs
+ perl -pi -e 's#\{\{JAVA_HOME}}#/usr/java/default#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#\{\{HBASE_HOME}}#/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hbase#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#\{\{PIG_SCRIPT_HOME}}#/usr/lib/pig/../..#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#\{\{HADOOP_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#\{\{HUE_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ [[ -d /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hbase-conf ]]
+ perl -pi -e 's#\{\{HBASE_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hbase-conf#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#\{\{HBASE_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hbase-conf#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hbase-conf/hbase-env.sh
+ [[ -d /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/sqoop2-conf ]]
+ perl -pi -e 's#\{\{SQOOP2_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/sqoop2-conf#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#\{\{SQOOP2_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/sqoop2-conf#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/sqoop2-conf/sqoop.properties
+ '[' 7 -ge 4 ']'
+ perl -pi -e 's#\{\{HADOOP_HDFS_HOME}}#/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-hdfs#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#\{\{HADOOP_MR1_HOME}}#/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-0.20-mapreduce#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#\{\{HADOOP_MR2_HOME}}#/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-mapreduce#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#\{\{HADOOP_BIN}}#/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop/bin/hadoop#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ SQOOP2_SCRIPT_HOME=/usr/lib/sqoop2/../..
+ perl -pi -e 's#\{\{SQOOP2_SCRIPT_HOME}}#/usr/lib/sqoop2/../..#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#\{\{CDH_MR1_HOME}}#/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-0.20-mapreduce#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/core-site.xml /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/hadoop-env.sh /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/hdfs-site.xml /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/log4j.properties /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/ssl-client.xml
+ perl -pi -e 's#\{\{CDH_MR2_HOME}}#/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop-mapreduce#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/core-site.xml /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/hadoop-env.sh /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/hdfs-site.xml /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/log4j.properties /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/ssl-client.xml
+ perl -pi -e 's#\{\{CDH_HADOOP_HOME}}#/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hadoop#g' /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/core-site.xml /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/hadoop-env.sh /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/hdfs-site.xml /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/log4j.properties /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hadoop-conf/ssl-client.xml
+ replace_conf_dir
+ echo CONF_DIR=/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER
+ 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' '*bcfks' 'supervisor_status')
++ printf '! -name %s ' cloudera-config.sh hue.sh impala.sh sqoop.sh supervisor.conf config.zip proc.json '*.log' hue.keytab creds.localjceks '*bcfks' supervisor_status
+ find /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER -type f '!' -path '/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/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 hue.keytab '!' -name creds.localjceks '!' -name '*bcfks' '!' -name supervisor_status -exec perl -pi -e 's#\{\{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER#g' '{}' ';'
+ make_scripts_executable
+ find /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ';'
+ python27_required=0
++ head -1 /opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/bin/hue
++ grep -o python2
+ '[' python2 == python2 ']'
+ python27_required=1
+ [[ python27_version_check == \r\u\n\c\p\s\e\r\v\e\r ]]
+ [[ python38_version_check == \r\u\n\c\p\s\e\r\v\e\r ]]
+ [[ python39_version_check == \r\u\n\c\p\s\e\r\v\e\r ]]
+ [[ python310_version_check == \r\u\n\c\p\s\e\r\v\e\r ]]
+ '[' -n 7 ']'
+ '[' 7 -ge 7 ']'
+ '[' 1 -eq 0 ']'
+ '[' -n 7 ']'
+ '[' 7 -lt 7 ']'
+ '[' -n 7 ']'
+ '[' 7 -ge 7 ']'
+ '[' 1 -eq 0 ']'
+ '[' -n 7 ']'
+ '[' 7 -le 7 ']'
+ '[' 7 -ge 6 ']'
+ '[' 1 -eq 1 ']'
+ add_postgres_to_pythonpath
+ grep -q '^\s*engine\s*=\s*postgres\+' hue.ini hue_safety_valve.ini hue_safety_valve_server.ini
+ '[' 7 -lt 6 ']'
+ add_mysql_to_pythonpath
+ grep -q '^\s*engine\s*=\s*mysql\+' hue.ini hue_safety_valve.ini hue_safety_valve_server.ini
+ [[ runcpserver == \b\e\e\s\w\a\x\_\s\e\r\v\e\r ]]
+ set_classpath_in_var HADOOP_EXTRA_CLASSPATH_STRING
+ '[' -z HADOOP_EXTRA_CLASSPATH_STRING ']'
+ [[ -n /opt/cloudera/cm ]]
++ tr '\n' :
++ find /opt/cloudera/cm/lib/plugins -maxdepth 1 -name '*.jar'
+ ADD_TO_CP=/opt/cloudera/cm/lib/plugins/event-publish-7.11.3-shaded.jar:/opt/cloudera/cm/lib/plugins/tt-instrumentation-7.11.3.jar:
+ [[ -n '' ]]
+ eval 'OLD_VALUE=$HADOOP_EXTRA_CLASSPATH_STRING'
++ OLD_VALUE=
+ NEW_VALUE=/opt/cloudera/cm/lib/plugins/event-publish-7.11.3-shaded.jar:/opt/cloudera/cm/lib/plugins/tt-instrumentation-7.11.3.jar:
+ export HADOOP_EXTRA_CLASSPATH_STRING=/opt/cloudera/cm/lib/plugins/event-publish-7.11.3-shaded.jar:/opt/cloudera/cm/lib/plugins/tt-instrumentation-7.11.3.jar
+ HADOOP_EXTRA_CLASSPATH_STRING=/opt/cloudera/cm/lib/plugins/event-publish-7.11.3-shaded.jar:/opt/cloudera/cm/lib/plugins/tt-instrumentation-7.11.3.jar
+ HUE=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/bin/hue
+ HUE_LOGLISTENER=/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/desktop/core/src/desktop/loglistener.py
++ grep http_port /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve.ini /var/run/cloudera-scm-agent/process/1546475458-hue-HUE_SERVER/hue_safety_valve_server.ini
++ tail -1
++ cut -d= -f2
+ HUE_PORT=8888
+ '[' runcpserver == runcpserver ']'
+ '[' 7 -lt 6 ']'
+ '[' '!' -z '' ']'
+ run_syncdb_and_migrate_subcommands
+ '[' 7 -ge 6 ']'
+ /opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/bin/hue makemigrations --noinput
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/bin/hue", line 14, in <module>
    load_entry_point('desktop', 'console_scripts', 'hue')()
  File "/data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/desktop/core/src/desktop/manage_entry.py", line 59, in entry
    from django.core.management import execute_from_command_line, find_commands
  File "/data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/management/__init__.py", line 17, in <module>
    from django.utils import autoreload, lru_cache, six
  File "/data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/utils/autoreload.py", line 61, in <module>
    import pyinotify
  File "/data/cloudera/cm-agent/lib/python3.8/site-packages/pyinotify.py", line 53, in <module>
    raise UnsupportedPythonVersionError(sys.version)
pyinotify.UnsupportedPythonVersionError: Python 2.7.5 (default, Nov 13 2023, 01:37:03) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44.0.3)] is unsupported, requires at least Python 3.0
+ /opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/bin/hue migrate --fake-initial
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/bin/hue", line 14, in <module>
    load_entry_point('desktop', 'console_scripts', 'hue')()
  File "/data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/desktop/core/src/desktop/manage_entry.py", line 59, in entry
    from django.core.management import execute_from_command_line, find_commands
  File "/data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/management/__init__.py", line 17, in <module>
    from django.utils import autoreload, lru_cache, six
  File "/data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/utils/autoreload.py", line 61, in <module>
    import pyinotify
  File "/data/cloudera/cm-agent/lib/python3.8/site-packages/pyinotify.py", line 53, in <module>
    raise UnsupportedPythonVersionError(sys.version)
pyinotify.UnsupportedPythonVersionError: Python 2.7.5 (default, Nov 13 2023, 01:37:03) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44.0.3)] is unsupported, requires at least Python 3.0
+ [[ dumpdata == \r\u\n\c\p\s\e\r\v\e\r ]]
+ [[ syncdb == \r\u\n\c\p\s\e\r\v\e\r ]]
+ [[ ldaptest == \r\u\n\c\p\s\e\r\v\e\r ]]
+ [[ runcpserver == \r\u\n\c\p\s\e\r\v\e\r ]]
+ exec /opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/bin/hue runcpserver
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/bin/hue", line 14, in <module>
    load_entry_point('desktop', 'console_scripts', 'hue')()
  File "/data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/desktop/core/src/desktop/manage_entry.py", line 59, in entry
    from django.core.management import execute_from_command_line, find_commands
  File "/data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/management/__init__.py", line 17, in <module>
    from django.utils import autoreload, lru_cache, six
  File "/data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/utils/autoreload.py", line 61, in <module>
    import pyinotify
  File "/data/cloudera/cm-agent/lib/python3.8/site-packages/pyinotify.py", line 53, in <module>
    raise UnsupportedPythonVersionError(sys.version)
pyinotify.UnsupportedPythonVersionError: Python 2.7.5 (default, Nov 13 2023, 01:37:03) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44.0.3)] is unsupported, requires at least Python 3.0

 

 

 

When I check the parcel directory where a python build is located I can only see python 2.7, as shown below.

 

[root@host lib]# pwd
/data/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/lib
[root@host lib]# ll
total 4
drwxr-sr-x. 4 root root 4096 Nov  3  2023 python2.7
[root@host lib]#

 

Below is what the cm-agent/bin directory contents look like.

 

[root@host bin]# pwd
/data/cloudera/cm-agent/bin
[root@host bin]# ll
total 128
-rw-r--r--. 1 cloudera-scm cloudera-scm 2155 Aug  9 12:32 activate
-rw-r--r--. 1 cloudera-scm cloudera-scm 1097 Aug  9 12:32 activate.csh
-rw-r--r--. 1 cloudera-scm cloudera-scm 2251 Aug  9 12:32 activate.fish
-rw-r--r--. 1 cloudera-scm cloudera-scm 1137 Aug  9 12:32 activate_this.py
-rwxr-xr-x. 1 cloudera-scm cloudera-scm 8443 Aug  9 12:32 avro
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  265 Aug  9 12:32 calc-prorate
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  230 Aug  9 12:32 certmanager
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  227 Aug  9 12:32 cheroot
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  231 Aug  9 12:32 cherryd
-rwxr--r--. 1 cloudera-scm cloudera-scm 7398 Aug  9 12:32 cloudera_agent_post_upgrade_checker.sh
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  224 Aug  9 12:32 cm
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  236 Aug  9 12:32 cmf-agent
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  239 Aug  9 12:32 cmf-listener
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  228 Aug  9 12:32 cmf-redactor
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  229 Aug  9 12:32 distro
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  235 Aug  9 12:32 echo_supervisord_conf
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  228 Aug  9 12:32 flooc
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  228 Aug  9 12:32 flood
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  230 Aug  9 12:32 mako-render
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  261 Aug  9 12:32 normalizer
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  235 Aug  9 12:32 pidproxy
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  238 Aug  9 12:32 pip
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  238 Aug  9 12:32 pip3
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  238 Aug  9 12:32 pip3.8
lrwxrwxrwx. 1 cloudera-scm cloudera-scm    9 Sep 18 20:04 python -> python3.8
lrwxrwxrwx. 1 cloudera-scm cloudera-scm    9 Sep 18 20:04 python3 -> python3.8
-rwxr-xr-x. 1 cloudera-scm cloudera-scm 3159 Aug  9 12:32 python3.8
-rwxr-xr-x. 1 cloudera-scm cloudera-scm 2414 Aug  9 12:31 python-config
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  240 Aug  9 12:32 supervisorctl
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  238 Aug  9 12:32 supervisord
-rwxr-xr-x. 1 cloudera-scm cloudera-scm  229 Aug  9 12:32 wheel
[root@host bin]#

 

According to Cloudera documentation, CDP 7.1.7 SP2 is compatible with Cloudera Manager 7.11.3. I'm not sure why this error.


I need the community support on this.

 

(Virus scan in progress ...)
1 ACCEPTED SOLUTION

avatar
Contributor

It seems like this issue is a special case due to how we have set up our environment. I have received a script from Cloudera support team. Our hue service is currently running fine. However, the script is only temporary. Once we upgraded, we have to use the original script.

Below is the major change they've made in the hue.sh script.

export PYTHONPATH=/opt/cloudera/parcels/CDH/lib/hue/build/env/lib64/python2.7/site-packages

echo "print env 3st"

env;

View solution in original post

13 REPLIES 13

avatar
Community Manager

Hi @abdulpasithali @venkatsambath do you have some insights here? Thanks!                                                                                                     


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar

@sayebogbon Can you configure hue env safety valve with the correct python path

CM > Hue > Configurations > the Hue Service Environment Advanced Configuration Snippet (Safety Valve) field:
Key: PATH
Value: <python3.8 binary path>
Save and Restart

 

avatar
Contributor

We have actually done that multiple times but it doesn't resolve it. It throws the same error.

avatar

Can you cat this file?

cat /opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/bin/hue

 

avatar
Contributor

Hi @venkatsambath ,

Below is the output of the cat command:

 

[root@host ~]# cat /opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p2046.46875634/lib/hue/build/env/bin/hue
#!/usr/bin/env python2.7


import os; activate_this=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'activate_this.py'); exec(compile(open(activate_this).read(), activate_this, 'exec'), dict(__file__=activate_this)); del os, activate_this

# EASY-INSTALL-ENTRY-SCRIPT: 'desktop','console_scripts','hue'
__requires__ = 'desktop'
import re
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(
        load_entry_point('desktop', 'console_scripts', 'hue')()
    )
[root@host ~]#

 

 

 

avatar

@sayebogbon Can you change 

#!/usr/bin/env python2.7

to

#!/usr/bin/env python3.8

And start hue?

avatar

I couldn't download the attachment. In which path, did you install python3.8?

Can you run echo $PATH?

Can you run a test script and share result.

cat test.py
#!/usr/bin/env python3.8
import sys
print("Python version")
print(sys.version)

./test.py

 

avatar
Contributor

Hi @venkatsambath ,
I have re-upload the file of the previous error. Maybe you can open it this time.

Below are the outputs of the echo $PATH and ./test.py

-sh-4.2$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
-sh-4.2$ ./test.py
Python version
3.8.18 (default, Sep 11 2023, 13:40:15)
[GCC 11.2.0]

 

(Virus scan in progress ...)

avatar

Sorry I couldn't download the files.  Its in "Virus scan in progress ..." stage and not allowing download. This download issue is being reported to community platform team. Meanwhile Can you paste the full stderr/stdout of hue? And the screenshots hue environment safety. valve.