我试过楼主的方法,但是依然提示无法检测agent信号,以下是我的cloudera-scm-agent的日志信息:[28/Oct/2016 10:58:17 +0000] 8600 MainThread ntp_monitor INFO Using timeout of 2.000000
[28/Oct/2016 10:58:17 +0000] 8600 MainThread dns_names INFO Using timeout of 30.000000
[28/Oct/2016 10:58:17 +0000] 8600 MainThread __init__ INFO Created DNS monitor.
[28/Oct/2016 10:58:17 +0000] 8600 MainThread stacks_collection_manager INFO Using max_uncompressed_file_size_bytes: 5242880
[28/Oct/2016 10:58:17 +0000] 8600 MainThread __init__ INFO Importing metric schema from file /usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.7.2-py2.6.egg/cmf/monitor/schema.json
[28/Oct/2016 10:58:18 +0000] 8600 MainThread agent INFO Supervised processes will add the following to their environment (in addition to the supervisor's env): {'CDH_PARQUET_HOME': '/usr/lib/parquet', 'JSVC_HOME': '/usr/libexec/bigtop-utils', 'CMF_PACKAGE_DIR': '/usr/lib64/cmf/service', 'CDH_HADOOP_BIN': '/usr/bin/hadoop', 'MGMT_HOME': '/usr/share/cmf', 'CDH_IMPALA_HOME': '/usr/lib/impala', 'CDH_YARN_HOME': '/usr/lib/hadoop-yarn', 'CDH_HDFS_HOME': '/usr/lib/hadoop-hdfs', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'CDH_HUE_PLUGINS_HOME': '/usr/lib/hadoop', 'CM_STATUS_CODES': u'STATUS_NONE HDFS_DFS_DIR_NOT_EMPTY HBASE_TABLE_DISABLED HBASE_TABLE_ENABLED JOBTRACKER_IN_STANDBY_MODE YARN_RM_IN_STANDBY_MODE', 'KEYTRUSTEE_KP_HOME': '/usr/share/keytrustee-keyprovider', 'CLOUDERA_ORACLE_CONNECTOR_JAR': '/usr/share/java/oracle-connector-java.jar', 'CDH_SQOOP2_HOME': '/usr/lib/sqoop2', 'KEYTRUSTEE_SERVER_HOME': '/usr/lib/keytrustee-server', 'CDH_MR2_HOME': '/usr/lib/hadoop-mapreduce', 'HIVE_DEFAULT_XML': '/etc/hive/conf.dist/hive-default.xml', 'CLOUDERA_POSTGRESQL_JDBC_JAR': '/usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar', 'CDH_KMS_HOME': '/usr/lib/hadoop-kms', 'CDH_HBASE_HOME': '/usr/lib/hbase', 'CDH_SQOOP_HOME': '/usr/lib/sqoop', 'WEBHCAT_DEFAULT_XML': '/etc/hive-webhcat/conf.dist/webhcat-default.xml', 'CDH_OOZIE_HOME': '/usr/lib/oozie', 'CDH_ZOOKEEPER_HOME': '/usr/lib/zookeeper', 'CDH_HUE_HOME': '/usr/share/hue', 'CLOUDERA_MYSQL_CONNECTOR_JAR': '/usr/share/java/mysql-connector-java.jar', 'CDH_HBASE_INDEXER_HOME': '/usr/lib/hbase-solr', 'CDH_MR1_HOME': '/usr/lib/hadoop-0.20-mapreduce', 'CDH_SOLR_HOME': '/usr/lib/solr', 'CDH_PIG_HOME': '/usr/lib/pig', 'CDH_SENTRY_HOME': '/usr/lib/sentry', 'CDH_CRUNCH_HOME': '/usr/lib/crunch', 'CDH_LLAMA_HOME': '/usr/lib/llama', 'CDH_HTTPFS_HOME': '/usr/lib/hadoop-httpfs', 'CDH_HADOOP_HOME': '/usr/lib/hadoop', 'CDH_HIVE_HOME': '/usr/lib/hive', 'CDH_HCAT_HOME': '/usr/lib/hive-hcatalog', 'CDH_KAFKA_HOME': '/usr/lib/kafka', 'CDH_SPARK_HOME': '/usr/lib/spark', 'TOMCAT_HOME': '/usr/lib/bigtop-tomcat', 'CDH_FLUME_HOME': '/usr/lib/flume-ng'}
[28/Oct/2016 10:58:18 +0000] 8600 MainThread agent INFO To override these variables, use /etc/cloudera-scm-agent/config.ini. Environment variables for CDH locations are not used when CDH is installed from parcels.
[28/Oct/2016 10:58:18 +0000] 8600 MainThread agent INFO Re-using pre-existing directory: /var/run/cloudera-scm-agent/process
[28/Oct/2016 10:58:18 +0000] 8600 MainThread agent INFO Re-using pre-existing directory: /var/run/cloudera-scm-agent/supervisor
[28/Oct/2016 10:58:18 +0000] 8600 MainThread agent INFO Re-using pre-existing directory: /var/run/cloudera-scm-agent/flood
[28/Oct/2016 10:58:18 +0000] 8600 MainThread agent INFO Re-using pre-existing directory: /var/run/cloudera-scm-agent/supervisor/include
[28/Oct/2016 10:58:18 +0000] 8600 MainThread agent INFO Supervisor version: 3.0
[28/Oct/2016 10:58:18 +0000] 8600 MainThread agent INFO Connecting to previous supervisor: agent-1423-1477564898.
[28/Oct/2016 10:58:18 +0000] 8600 MainThread status_server INFO Using maximum impala profile bundle size of 1073741824 bytes.
[28/Oct/2016 10:58:18 +0000] 8600 MainThread status_server INFO Using maximum stacks log bundle size of 1073741824 bytes.
[28/Oct/2016 10:58:18 +0000] 8600 MainThread _cplogging INFO [28/Oct/2016:10:58:18] ENGINE Bus STARTING
[28/Oct/2016 10:58:18 +0000] 8600 MainThread _cplogging INFO [28/Oct/2016:10:58:18] ENGINE Started monitor thread '_TimeoutMonitor'.
[28/Oct/2016 10:58:18 +0000] 8600 HTTPServer Thread-2 _cplogging ERROR [28/Oct/2016:10:58:18] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/process/servers.py", line 187, in _start_http_thread
self.httpserver.start()
File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/wsgiserver/wsgiserver2.py", line 1825, in start
raise socket.error(msg)
error: No socket could be created on ('work3', 9000) -- [Errno 99] Cannot assign requested address
[28/Oct/2016 10:58:18 +0000] 8600 HTTPServer Thread-2 _cplogging INFO [28/Oct/2016:10:58:18] ENGINE Bus STOPPING
[28/Oct/2016 10:58:18 +0000] 8600 HTTPServer Thread-2 _cplogging INFO [28/Oct/2016:10:58:18] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('work3', 9000)) already shut down
[28/Oct/2016 10:58:18 +0000] 8600 HTTPServer Thread-2 _cplogging INFO [28/Oct/2016:10:58:18] ENGINE Stopped thread '_TimeoutMonitor'.
[28/Oct/2016 10:58:18 +0000] 8600 HTTPServer Thread-2 _cplogging INFO [28/Oct/2016:10:58:18] ENGINE Bus STOPPED
[28/Oct/2016 10:58:18 +0000] 8600 HTTPServer Thread-2 _cplogging INFO [28/Oct/2016:10:58:18] ENGINE Bus EXITING
[28/Oct/2016 10:58:18 +0000] 8600 HTTPServer Thread-2 _cplogging INFO [28/Oct/2016:10:58:18] ENGINE Bus EXITED
求助如何解决呢 |