Reply
Highlighted
New Contributor
Posts: 4
Registered: ‎10-31-2016

Installing Cloudera Manager Configured in a Single-user Mode with Tarballs

[ Edited ]

Thanks for the document to configure cm in single user mode. i was always setup single user mode in my test servers however i endup same exception all the servers.

 

if you look at this exception, cloudera agent api always set server_port to None. other than port it reading all the values from config.ini.

I used to edit the cm-5.12.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.12.2-py2.6.egg/cmf/agent.py  python script and update below line to fix the exception

 

def _send_heartbeat(self, heartbeat):
if self.args.standalone:
# Write heartbeats to a file
if not self.heartbeat_output:
self.heartbeat_output = avro.datafile.DataFileWriter(
open(os.path.join(self.dir, "heartbeats.avro"), "w"),
avro.io.DatumWriter(),
HEARTBEAT_REQUEST_SCHEMA)
self.heartbeat_output.append(heartbeat)
self.heartbeat_output.flush()
# Read expected processes
datum_reader = avro.io.DatumReader()
dfr = avro.datafile.DataFileReader(open(self.args.standalone), datum_reader)
response = dfr.next()
else:
try:
if self.requestor is None:
self.master_port=7182
if self.use_tls:

 

 

[10/Jan/2018 14:59:33 +0000] 25915 MainThread _cplogging INFO [10/Jan/2018:14:59:33] ENGINE Bus STARTED
[10/Jan/2018 14:59:33 +0000] 25915 MainThread __init__ INFO New monitor: (<cmf.monitor.host.HostMonitor object at 0x3a5bf90>,)
[10/Jan/2018 14:59:33 +0000] 25915 MainThread agent INFO Setting default socket timeout to 45
[10/Jan/2018 14:59:33 +0000] 25915 MonitorDaemon-Scheduler __init__ INFO Monitor ready to report: ('HostMonitor',)
[10/Jan/2018 14:59:33 +0000] 25915 MainThread agent ERROR Heartbeating to usls1005890.am.hedani.net:None failed.
Traceback (most recent call last):
File "/opt/cloudera-manager/cm-5.12.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.12.2-py2.6.egg/cmf/agent.py", line 1412, in _send_heartbeat
self.master_port)
File "/opt/cloudera-manager/cm-5.12.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/avro-1.6.3-py2.6.egg/avro/ipc.py", line 469, in __init__
self.conn.connect()
File "/usr/lib64/python2.6/httplib.py", line 771, in connect
self.timeout)

Announcements