hdfs-deprecated icon indicating copy to clipboard operation
hdfs-deprecated copied to clipboard

Why Is the connection refused after following install steps.

Open bryaan opened this issue 10 years ago • 3 comments

For some reason after following the install instructions I get this error when running ./bin/hdfs-mesos.

[tibra@tibraserver hdfs-mesos-0.1.4]$ ./bin/hdfs-mesos
2015-09-19 01:13:03,013:28067(0x7f52d7987700):ZOO_INFO@log_env@712: Client environment:zookeeper.version=zookeeper C client 3.4.5
2015-09-19 01:13:03,013:28067(0x7f52d7987700):ZOO_INFO@log_env@716: Client environment:host.name=tibraserver
2015-09-19 01:13:03,013:28067(0x7f52d7987700):ZOO_INFO@log_env@723: Client environment:os.name=Linux
2015-09-19 01:13:03,014:28067(0x7f52d7987700):ZOO_INFO@log_env@724: Client environment:os.arch=3.10.0-229.el7.x86_64
2015-09-19 01:13:03,014:28067(0x7f52d7987700):ZOO_INFO@log_env@725: Client environment:os.version=#1 SMP Fri Mar 6 11:36:42 UTC 2015
2015-09-19 01:13:03,014:28067(0x7f52d7987700):ZOO_INFO@log_env@733: Client environment:user.name=tibra
2015-09-19 01:13:03,015:28067(0x7f52d7987700):ZOO_INFO@log_env@741: Client environment:user.home=/home/tibra
2015-09-19 01:13:03,015:28067(0x7f52d7987700):ZOO_INFO@log_env@753: Client environment:user.dir=/home/tibra/target/hdfs-mesos-0.1.4
2015-09-19 01:13:03,015:28067(0x7f52d7987700):ZOO_INFO@zookeeper_init@786: Initiating client connection, host=localhost:2181 sessionTimeout=20000 watcher=0x7f52de36e6d4 sessionId=0 sessionPasswd=<null> context=0x7f52c0000ad0 flags=0
2015-09-19 01:13:03,017:28067(0x7f52d4981700):ZOO_ERROR@handle_socket_error_msg@1697: Socket [127.0.0.1:2181] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2015-09-19 01:13:03,017:28067(0x7f52d4981700):ZOO_ERROR@handle_socket_error_msg@1697: Socket [::1:2181] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2015-09-19 01:13:09,690:28067(0x7f52d4981700):ZOO_ERROR@handle_socket_error_msg@1697: Socket [127.0.0.1:2181] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2015-09-19 01:13:09,690:28067(0x7f52d4981700):ZOO_ERROR@handle_socket_error_msg@1697: Socket [::1:2181] zk retcode=-4, errno=111(Connection refused): server refused to accept the client

bryaan avatar Sep 19 '15 05:09 bryaan

Before compiling hdfs-mesos, under the conf directory, please configure mesos-site.xml to point to your zookeeper mesos.hdfs.zkfc.ha.zookeeper.quorum. The error is that it is having trouble connecting to zookeeper.

elingg avatar Sep 21 '15 22:09 elingg

I need to have ZooKeeper pre-installed? This seems strange to have to do before compile.

bryaan avatar Sep 21 '15 22:09 bryaan

Zookeeper preinstalled is a requirement. Right now, mesos-site.xml is configured at compile time, while hdfs-site.xml is compiled at runtime. We hope to improve the configuration so both .xml files can be configured at runtime.

elingg avatar Sep 21 '15 22:09 elingg