Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Connection failed: [Errno 111] Connection refused to



We installed HDP using root account successfully and the services came up after the install ok with no issues. But now, all services are down and we see the message "Connection failed: [Errno 111] Connection refused to"

Not sure what is going on...Anyone had this issue and the resolution. Any help will be greatly appreciated.

Rebooting the server didn't help as well.




Can you please look at the logs files for one the services under /var/log, that might provide more insight into specific issue


I am seeing this in zoo keeper log ...any idea what this means

2016-06-14 02:55:01,693 - INFO [NIOServerCxn.Factory:] - Closed socket connection for client / (no session established for client) 2016-06-14 02:56:01,723 - INFO [NIOServerCxn.Factory:] - Accepted socket connection from / 2016-06-14 02:56:01,723 - WARN [NIOServerCxn.Factory:] - caught end of stream exception EndOfStreamException: Unable to read additional data from client sessionid 0x0, likely client has closed socket at org.apache.zookeeper.server.NIOServerCnxn.doIO( at at


dont know what i did..but i tried restarting each service manually using command line and it started working. One wierd thing is that if i try to start all the services from the Ambari dashboard it does not work. But i try to start all the services from the hosts page which says "start all host components" it works. Also the zookeeper service keeps stopping all the time. otherthan that all the services are running fine. Any suggestions will be greatly appreciated.

Can you please confirm your zookeeper version? make sure its >= 3.4.5.


my zookeeper version is

Please check this stpes:-

1. Make sure hostname is right, iptables, selinux are stop

2. Check ps -aef for each process and kill it from cli [if you are able to see the process running]

3. Start the process from ambari.

let me know if it works.


@chandramouli muthukumaran

One time I forgot this setting and I encountered the same problem.

Enable NTP on the Cluster and on the Browser Host

The clocks of all the nodes in your cluster and the machine that runs the browser through which you access Ambari Web must be able to synchronize with each other.

How to enable ntp

New Contributor


I have same problem with Metrics Collector Process: Connection failed: [Errno 111] Connection refused to dnode01.cedar.cluster.ada:6188

NTP is enabled on all 16 nodes, but there is no positive affect

I'm not sure how the status of NTP on Browsing Host (which is not part of cluster) can affect the operation of cluster?

Can help with my case? Please let me know, if you need more details

@chandramouli muthukumaran

If issue is resolve, then lets close this.

New Contributor

Ambari Version

HDP version

Oracle Database 12c

1. Running the script ../ranger-admin/ generates an error:

SQLException : SQL state: 42000 java.sql.SQLSyntaxErrorException: ORA-04044: procedure, function, package, or type is not allowed here

Change the lines in the script

# query = get_cmd + " -c \; -query \"select * from ;\""

query = get_cmd + " -c \; -query \'select * from ;\'"

2. Script did not started

Can't login into Ranger UI



Even I am facing the same issue of connection, please help me resolve the issue

Do I need to create any certificate keys??


@chandramouli muthukumaran

You opened a thread "Connection failed: [Errno 111] Connection refused to" to which you received a couple of responses from me and Ashnee Sharma it's a good habit to acknowledge whether a solution resolved your issue so other members facing the same situation could use the solution.

Can you do the right thing because members strive to help in return they expect a response.


@Miro Ka @Gaurav Bapat

You are responding to an old thread (July 2017) and I am pretty sure members are ignoring. It's advisable to open a new thread could you reformat your questions in a new thread.

If I get a notification I will try to help .


@chandramouli muthukumaran

As reminded by @Ashnee Sharma If a reponse resolved your problem, could you Accept the answer by Clicking on Accept button below,

That would be a great help to Community users to find a solution quickly for these kinds of errors and also reward the members who strive to keep this forum active.


@chandramouli muthukumaran

I was just checking one of the issues you raised chandramouli muthukumaran Jun 14, 2016 at 03:24 PM. You received a couple of answers from me and Ashnee Sharma but unfortunately, you didn't accept either of the answers, this is unacceptable as HCC members go a long way to help whenever you open a thread and any solution provided if it resolved the issue should benefit other members who encounter the same issue.
Please ensure members who give solutions to your problems are rewarded this helps to keep member motivated to respond.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.