-
Notifications
You must be signed in to change notification settings - Fork 843
Name or service not known #1936
Comments
Is 'master' not the name of your mesos master? It's just failing to connect and saying that name doesn't resolve. |
Hi, could you give some additional information, like your OS, which Marathon package/source you use and the command you start marathon? |
More information about my Env. Mesos master is running with zookeeper.I can view webpage http://192.168.0.4:5050. I use this command line to start marathon,but it is not work. |
Thank you , I have resolve this problem via adding hostname ip pair to /etc/hosts, but I don't know why . |
Yea i stumbled on this as well and the docs have a PR pending to explain that. Somehow marathons jni bindings require the hostname to resolve. |
I install mesos-0.22.1 in the directory "/usr/local/mesos", when I start marathon, it show the exception as below:
MESOS_NATIVE_LIBRARY, MESOS_NATIVE_JAVA_LIBRARY set to '/usr/local/mesos/lib/libmesos.so'
[2015-08-05 17:57:14,590] INFO Starting Marathon 0.9.0 (mesosphere.marathon.Main$:87)
Exception in thread "main" java.net.UnknownHostException: master: master: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1496)
at mesosphere.marathon.MarathonConf$$anonfun$hostname$1.apply(MarathonConf.scala:47)
at mesosphere.marathon.MarathonConf$$anonfun$hostname$1.apply(MarathonConf.scala:47)
at org.rogach.scallop.Scallop$$anonfun$get$5$$anonfun$apply$35.apply(Scallop.scala:543)
at org.rogach.scallop.Scallop$$anonfun$get$5$$anonfun$apply$35.apply(Scallop.scala:543)
at scala.Option.orElse(Option.scala:289)
at org.rogach.scallop.Scallop$$anonfun$get$5.apply(Scallop.scala:543)
at org.rogach.scallop.Scallop$$anonfun$get$5.apply(Scallop.scala:537)
at scala.Option.map(Option.scala:146)
at org.rogach.scallop.Scallop.get(Scallop.scala:537)
at org.rogach.scallop.Scallop$$anonfun$verify$17.apply(Scallop.scala:623)
at org.rogach.scallop.Scallop$$anonfun$verify$17.apply(Scallop.scala:614)
at scala.collection.immutable.List.foreach(List.scala:381)
at org.rogach.scallop.Scallop.verify(Scallop.scala:614)
at org.rogach.scallop.ScallopConf.verify(ScallopConf.scala:274)
at org.rogach.scallop.ScallopConf.afterInit(ScallopConf.scala:504)
at mesosphere.chaos.App$class.initConf(App.scala:26)
at mesosphere.marathon.MarathonApp.initConf(Main.scala:17)
at mesosphere.chaos.App$class.run(App.scala:30)
at mesosphere.marathon.MarathonApp.run(Main.scala:17)
at mesosphere.marathon.MarathonApp.runDefault(Main.scala:88)
at mesosphere.marathon.Main$.delayedEndpoint$mesosphere$marathon$Main$1(Main.scala:96)
at mesosphere.marathon.Main$delayedInit$body.apply(Main.scala:95)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
at scala.App$class.main(App.scala:76)
at mesosphere.marathon.MarathonApp.main(Main.scala:17)
at mesosphere.marathon.Main.main(Main.scala)
Caused by: java.net.UnknownHostException: master: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:922)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1316)
at java.net.InetAddress.getLocalHost(InetAddress.java:1492)
... 31 more
The text was updated successfully, but these errors were encountered: