New Contributor
Posts: 1
Registered: ‎11-23-2017
Accepted Solution

clusterdock on mac sierra (10.12.6)


I'm new to clusterdock and trying to get started on Mac Sierra 10.12.16 with Docker Version 17.09.0-ce-mac35.


Is there a trick to getting it running in this env?  Below is what I'm seeing



clusterdock_run ./bin/start_cluster cdh
INFO:clusterdock.cluster:Network (cluster) not present, creating it...
INFO:clusterdock.cluster:Successfully setup network (name: cluster).
INFO:clusterdock.cluster:Successfully started node-2.cluster (IP address:
INFO:clusterdock.cluster:Successfully started node-1.cluster (IP address:
INFO:clusterdock.cluster:Started cluster in 21.95 seconds.
INFO:clusterdock.topologies.cdh.actions:Changing server_host to node-1.cluster in /etc/cloudera-scm-agent/config.ini...
INFO:clusterdock.topologies.cdh.actions:Restarting CM agents...
cloudera-scm-agent is already stopped
Starting cloudera-scm-agent: [  OK  ]
Stopping cloudera-scm-agent: [  OK  ]
Starting cloudera-scm-agent: [  OK  ]
INFO:clusterdock.topologies.cdh.actions:Waiting for Cloudera Manager server to come online...
INFO:clusterdock.topologies.cdh.actions:Detected Cloudera Manager server after 38.06 seconds.
INFO:clusterdock.topologies.cdh.actions:CM server is now accessible at http://moby:32777 CM API v13.
INFO:clusterdock.topologies.cdh.cm_utils:Updating database configurations... NameNode references in Hive metastore...
INFO:clusterdock.topologies.cdh.actions:Once its service starts, Hue server will be accessible at http://moby:32776
INFO:clusterdock.topologies.cdh.actions:Deploying client configuration...
INFO:clusterdock.topologies.cdh.actions:Starting cluster...
Traceback (most recent call last):
  File "./bin/start_cluster", line 70, in <module>
  File "./bin/start_cluster", line 63, in main
  File "/root/clusterdock/clusterdock/topologies/cdh/", line 153, in start
    if not deployment.cluster.start().wait().success:
  File "/root/clusterdock/clusterdock/topologies/cdh/cm_api/endpoints/", line 547, in wait
    cmd = self.fetch()
  File "/root/clusterdock/clusterdock/topologies/cdh/cm_api/endpoints/", line 524, in fetch
    resp = self._get_resource_root().get(self._path())
  File "/root/clusterdock/clusterdock/topologies/cdh/cm_api/", line 110, in get
    return self.invoke("GET", relpath, params)
  File "/root/clusterdock/clusterdock/topologies/cdh/cm_api/", line 73, in invoke
  File "/root/clusterdock/clusterdock/topologies/cdh/cm_api/", line 172, in execute
  File "/usr/lib/python2.7/", line 401, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/", line 419, in _open
    '_open', req)
  File "/usr/lib/python2.7/", line 379, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/", line 1211, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/", line 1181, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>


`docker ps`



CONTAINER ID        IMAGE                                              COMMAND             CREATED             STATUS              PORTS                                              NAMES
b538d799cfbb        cloudera/clusterdock:cdh580_cm581_secondary-node   "/sbin/init"        8 minutes ago       Up 8 minutes                                                           elated_poitras
2138ab9972ff        cloudera/clusterdock:cdh580_cm581_primary-node     "/sbin/init"        8 minutes ago       Up 8 minutes>7180/tcp,>8888/tcp   thirsty_brahmagupta


I try opening a browser to http://localhost:32777/ but nothing.


Any ideas or suggestions?



New Contributor
Posts: 8
Registered: ‎10-31-2017

Re: clusterdock on mac sierra (10.12.6)

How much memory does your Mac have and how much are you allocating to the Docker VM? Guessing you're hitting a resource allocation problem where there's not enough RAM to sustain a cluster.