Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"nodename nor servname provided" when trying to start a mesos-slave

I was following this simple guide on installing Mesos locally https://mesosphere.com/2014/07/07/installing-mesos-on-your-mac-with-homebrew/

I was able to start a mesos master and was able to see the master's console perfectly fine at localhost:5050. However when I tried to start a new slave using sudo /usr/local/sbin/mesos-slave --master=127.0.0.1:5050 , it gave me

WARNING: Logging before InitGoogleLogging() is written to STDERR F0328 16:14:45.329051 2041414416 process.cpp:889] nodename nor servname provided, or not known * Check failure stack trace: *

Any help will be appreciated, thanks

like image 496
neutralino Avatar asked Mar 28 '15 20:03

neutralino


1 Answers

This can also happen if you working on a Framework and attempting to connect to a Mesos Master. Mesos is attempting to resolve your computer's name via DNS and isn't finding an entry. This can happen if you've changed your Mac's hostname post setup ( as I did, and had this same error ).

To fix, run hostname -f, that will will give you the value of what OS/X thinks it's name is. Then simply ensure you've got 127.0.0.1 VALUE_OF_HOSTNAME_-F in your /etc/hosts file.

like image 164
penland365 Avatar answered Sep 28 '22 08:09

penland365