Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

clusterdock on mac sierra (10.12.6)

avatar
New Contributor

Hi, 

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: 192.168.123.3).
INFO:clusterdock.cluster:Successfully started node-1.cluster (IP address: 192.168.123.2).
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
INFO:clusterdock.topologies.cdh.cm:Detected CM API v13.
INFO:clusterdock.topologies.cdh.cm_utils:Updating database configurations...
INFO:clusterdock.topologies.cdh.cm:Updating 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>
    main()
  File "./bin/start_cluster", line 63, in main
    actions.start(args)
  File "/root/clusterdock/clusterdock/topologies/cdh/actions.py", line 153, in start
    if not deployment.cluster.start().wait().success:
  File "/root/clusterdock/clusterdock/topologies/cdh/cm_api/endpoints/types.py", line 547, in wait
    cmd = self.fetch()
  File "/root/clusterdock/clusterdock/topologies/cdh/cm_api/endpoints/types.py", line 524, in fetch
    resp = self._get_resource_root().get(self._path())
  File "/root/clusterdock/clusterdock/topologies/cdh/cm_api/resource.py", line 110, in get
    return self.invoke("GET", relpath, params)
  File "/root/clusterdock/clusterdock/topologies/cdh/cm_api/resource.py", line 73, in invoke
    headers=headers)
  File "/root/clusterdock/clusterdock/topologies/cdh/cm_api/http_client.py", line 172, in execute
    return self._opener.open(request)
  File "/usr/lib/python2.7/urllib2.py", line 401, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 419, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1211, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", 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        0.0.0.0:32777->7180/tcp, 0.0.0.0:32776->8888/tcp   thirsty_brahmagupta

 

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

 

Any ideas or suggestions?

 

Thanks

1 ACCEPTED SOLUTION

avatar
Explorer

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.

View solution in original post

1 REPLY 1

avatar
Explorer

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.