org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:50070 refused

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by danieltorres

Use '127.0.0.1' instead of 'localhost'.

Solutions on the web

via apache.org by Unknown author, 1 year ago
Connection to http://localhost:50070 refused
via apache.org by Unknown author, 1 year ago
Connection to http://localhost:50070 refused
via apache.org by Unknown author, 1 year ago
Connection to http://localhost:50070 refused
via apache.org by Unknown author, 1 year ago
Connection to http://localhost:50070 refused
via apache.org by Unknown author, 1 year ago
Connection to http://localhost:50070 refused
via apache.org by Unknown author, 1 year ago
Connection to http://localhost:50070 refused
org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:50070 refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.hadoop.gateway.dispatch.HttpClientDispatch.executeRequest(HttpClientDispatch.java:99)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 month ago
2 times, 4 months ago
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.