FAQ
Hi all,

I check the threads in this group, and I setup hostname correctly, I can
use python to get correct hostname and ip address, but still failed to
connect to supervisord.conf, why?

This is the log:

[17/Apr/2014 18:40:19 +0000] 12854 MainThread ntp_monitor INFO Using
timeout of 2.000000
[18/Apr/2014 18:40:19 +0000] 12854 MainThread __init__ INFO
Importing metric schema from file /usr/lib/cmf/agent/src/cmf
/monitor/schema.json
[17/Apr/2014 18:40:20 +0000] 12854 MainThread agent INFO
Supervised processes will add the following to their environ
ment (in addition to the supervisor's env): {'CDH_PARQUET_HOME':
'/usr/lib/parquet', 'CDH_OOZIE_HOME': '/usr/lib/oozie', 'CDH_MR
2_HOME': '/usr/lib/hadoop-mapreduce', 'CDH_ZOOKEEPER_HOME':
'/usr/lib/zookeeper', 'CDH_HADOOP_BIN': '/usr/bin/hadoop', 'MGMT_HOM
E': '/usr/share/cmf', 'CDH_IMPALA_HOME': '/usr/lib/impala',
'CLOUDERA_MYSQL_CONNECTOR_JAR': '/usr/share/java/mysql-connector-jav
a.jar', 'CDH_YARN_HOME': '/usr/lib/hadoop-yarn', 'CMF_PACKAGE_DIR':
'/usr/lib/cmf/service', 'CDH_SPARK_HOME': '/usr/lib/spark',
'PATH':
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games',
'CDH_HDFS_HOME': '/usr/lib/hadoop-hdfs', 'CDH
_SOLR_HOME': '/usr/lib/solr', 'CDH_PIG_HOME': '/usr/lib/pig',
'CDH_SQOOP2_HOME': '/usr/lib/sqoop2', 'CDH_HUE_PLUGINS_HOME': '/us
r/lib/hadoop', 'CM_STATUS_CODES': u'STATUS_NONE HDFS_DFS_DIR_NOT_EMPTY
HBASE_TABLE_DISABLED HBASE_TABLE_ENABLED JOBTRACKER_IN_ST
ANDBY_MODE YARN_RM_IN_STANDBY_MODE', 'CDH_MR1_HOME':
'/usr/lib/hadoop-0.20-mapreduce', 'CLOUDERA_ORACLE_CONNECTOR_JAR': '/usr/sh
are/java/oracle-connector-java.jar', 'CDH_HUE_HOME': '/usr/lib/hue',
'CDH_CRUNCH_HOME': '/usr/lib/crunch', 'CDH_HIVE_HOME': '/us
r/lib/hive', 'CDH_HTTPFS_HOME': '/usr/lib/hadoop-httpfs',
'CDH_HADOOP_HOME': '/usr/lib/hadoop', 'JSVC_HOME': '/usr/libexec/bigto
p-utils', 'HIVE_DEFAULT_XML': '/etc/hive/conf.dist/hive-default.xml',
'WEBHCAT_DEFAULT_XML': '/etc/hive-webhcat/conf.dist/webhca
t-default.xml', 'CLOUDERA_POSTGRESQL_JDBC_JAR':
'/usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar',
'CDH_HBASE_INDEXER_HOME': '/u
sr/lib/hbase-solr', 'CDH_FLUME_HOME': '/usr/lib/flume-ng', 'TOMCAT_HOME':
'/usr/lib/bigtop-tomcat', 'CDH_HBASE_HOME': '/usr/lib/
hbase', 'CDH_SQOOP_HOME': '/usr/lib/sqoop', 'CDH_HCAT_HOME':
'/usr/lib/hive-hcatalog', 'CDH_LLAMA_HOME': '/usr/lib/llama/'}
[17/Apr/2014 18:40:20 +0000] 12854 MainThread agent INFO To
override these variables, use /etc/cloudera-scm-agent/con
fig.ini. Environment variables for CDH locations are not used when CDH is
installed from parcels.
[17/Apr/2014 18:40:20 +0000] 12854 MainThread agent INFO Try to
Start Supervisor
[17/Apr/2014 18:40:20 +0000] 12854 MainThread agent INFO
Re-using pre-existing directory: /run/cloudera-scm-agent/pro
cess
[17/Apr/2014 18:40:20 +0000] 12854 MainThread agent INFO
Re-using pre-existing directory: /run/cloudera-scm-agent/sup
ervisor
[17/Apr/2014 18:40:20 +0000] 12854 MainThread agent INFO
Re-using pre-existing directory: /run/cloudera-scm-agent/sup
ervisor/include
[17/Apr/2014 18:40:20 +0000] 12854 MainThread agent ERROR Failed
to connect to previous supervisor.
Traceback (most recent call last):
   File "/usr/lib/cmf/agent/src/cmf/agent.py", line 1235, in
find_or_start_supervisor
     self.get_supervisor_process_info()
   File "/usr/lib/cmf/agent/src/cmf/agent.py", line 1422, in
get_supervisor_process_info
     self.identifier = self.supervisor_client.supervisor.getIdentification()
   File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
     return self.__send(self.__name, args)
   File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
     verbose=self.__verbose
   File
"/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/xmlrpc.py",
line 460, in re
quest
     self.connection.request('POST', handler, request_body, self.headers)
   File "/usr/lib/python2.7/httplib.py", line 958, in request
     self._send_request(method, url, body, headers)
   File "/usr/lib/python2.7/httplib.py", line 992, in _send_request
     self.endheaders(body)
   File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
     self._send_output(message_body)
   File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
     self.send(msg)
   File "/usr/lib/python2.7/httplib.py", line 776, in send
     self.connect()
   File "/usr/lib/python2.7/httplib.py", line 757, in connect
     self.timeout, self.source_address)
   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
     raise err
error: [Errno 111] Connection refused
[17/Apr/2014 18:40:20 +0000] 12854 MainThread tmpfs INFO Reusing
mounted tmpfs at /run/cloudera-scm-agent/process
[17/Apr/2014 18:40:21 +0000] 12854 MainThread agent INFO Trying
to connect to newly launched supervisor (Attempt 1)
[17/Apr/2014 18:40:21 +0000] 12854 MainThread agent INFO
  supervisor option with <supervisor.options.ClientOptions in
stance at 0x2fb7ea8>
[17/Apr/2014 18:40:21 +0000] 12854 MainThread agent INFO
Successfully connected to supervisor
[17/Apr/2014 18:40:21 +0000] 12854 MainThread _cplogging INFO
[17/Apr/2014:18:40:21] ENGINE Bus STARTING
[17/Apr/2014 18:40:21 +0000] 12854 MainThread _cplogging INFO
[17/Apr/2014:18:40:21] ENGINE Started monitor thread '_Timeo
utMonitor'.
[17/Apr/2014 18:40:21 +0000] 12854 MainThread _cplogging INFO
[17/Apr/2014:18:40:21] ENGINE Serving on ECS-6b195982.ecs.ad
s.autodesk.com:9000
[17/Apr/2014 18:40:21 +0000] 12854 MainThread _cplogging INFO
[17/Apr/2014:18:40:21] ENGINE Bus STARTED
[17/Apr/2014 18:40:21 +0000] 12854 MainThread __init__ INFO New
monitor: (<cmf.monitor.host.HostMonitor object at 0x2fc2
910>,)
[17/Apr/2014 18:40:21 +0000] 12854 MonitorDaemon-Scheduler __init__
INFO Monitor ready to report: ('HostMonitor',)
[17/Apr/2014 18:40:21 +0000] 12854 MainThread agent WARNING Setting
default socket timeout to 30!
[17/Apr/2014 18:40:21 +0000] 12854 MainThread agent INFO Using
parcels directory from server provided value: /opt/clo
udera/parcels
[17/Apr/2014 18:40:21 +0000] 12854 MainThread parcel INFO Agent
does create users/groups and apply file permissions
[17/Apr/2014 18:40:21 +0000] 12854 MainThread downloader INFO
Downloader path: /opt/cloudera/parcel-cache
[17/Apr/2014 18:40:21 +0000] 12854 MainThread parcel_cache INFO Using
/opt/cloudera/parcel-cache for parcel cache
[17/Apr/2014 18:40:21 +0000] 12854 MainThread agent INFO Active
parcel list updated; recalculating component info.
[17/Apr/2014 18:40:26 +0000] 12854 Monitor-HostMonitor throttling_logger
INFO Using java location: '/usr/lib/jvm/java-7-orac
le-cloudera/bin/java'.



To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedApr 17, '14 at 10:58a
activeApr 17, '14 at 10:58a
posts1
users1
websitecloudera.com
irc#hadoop

1 user in discussion

Gw zhang: 1 post

People

Translate

site design / logo © 2022 Grokbase