{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/mesos-rxjava/issues/72","repository_url":"https://api.github.com/repos/mesosphere/mesos-rxjava","labels_url":"https://api.github.com/repos/mesosphere/mesos-rxjava/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/mesos-rxjava/issues/72/comments","events_url":"https://api.github.com/repos/mesosphere/mesos-rxjava/issues/72/events","html_url":"https://github.com/mesosphere/mesos-rxjava/issues/72","id":218693660,"number":72,"title":"Client redirect","user":{"login":"Payero","id":808928,"avatar_url":"https://avatars0.githubusercontent.com/u/808928?v=3","gravatar_id":"","url":"https://api.github.com/users/Payero","html_url":"https://github.com/Payero","followers_url":"https://api.github.com/users/Payero/followers","following_url":"https://api.github.com/users/Payero/following{/other_user}","gists_url":"https://api.github.com/users/Payero/gists{/gist_id}","starred_url":"https://api.github.com/users/Payero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Payero/subscriptions","organizations_url":"https://api.github.com/users/Payero/orgs","repos_url":"https://api.github.com/users/Payero/repos","events_url":"https://api.github.com/users/Payero/events{/privacy}","received_events_url":"https://api.github.com/users/Payero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-01T12:47:33Z","updated_at":"2017-04-03T10:34:08Z","closed_at":null,"body":"I am not completely familiar with the internals of a Mesos cluster, but I have a question.  My settings is simple:  1 AWS EC2 instance running mesos and 1 laptop running the Sleepy framework.  When I run the framework the MesosClient probes the endpoint using the EC2 **public IP address** and returns a new link to the master.  \r\n\r\n_2017-03-31 17:58:59,881 INFO  [main                                    ] c.m.mesos.rx.java.MesosClient        - Probing Mesos server at http://**aws-public-ip**:5050/redirect_\r\n\r\nThis probe gets redirected to:\r\n_Using new Mesos URI: {}  http://**aws-private-ip**:5050/api/v1/scheduler_\r\n\r\nBecause it gets redirected to the **private IP** and the laptop is on a different subnet it cannot connect to it.  In order to get it to work I added a kludge where I look for a system property and if is set then skip the redirect.  This kludge works, but I was wondering if there is a better way to do this.\r\n\r\nThanks\r\nOscar"},"comment":{"url":"https://api.github.com/repos/mesosphere/mesos-rxjava/issues/comments/291106553","html_url":"https://github.com/mesosphere/mesos-rxjava/issues/72#issuecomment-291106553","issue_url":"https://api.github.com/repos/mesosphere/mesos-rxjava/issues/72","id":291106553,"user":{"login":"luizmiranda7","id":7875717,"avatar_url":"https://avatars1.githubusercontent.com/u/7875717?v=3","gravatar_id":"","url":"https://api.github.com/users/luizmiranda7","html_url":"https://github.com/luizmiranda7","followers_url":"https://api.github.com/users/luizmiranda7/followers","following_url":"https://api.github.com/users/luizmiranda7/following{/other_user}","gists_url":"https://api.github.com/users/luizmiranda7/gists{/gist_id}","starred_url":"https://api.github.com/users/luizmiranda7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luizmiranda7/subscriptions","organizations_url":"https://api.github.com/users/luizmiranda7/orgs","repos_url":"https://api.github.com/users/luizmiranda7/repos","events_url":"https://api.github.com/users/luizmiranda7/events{/privacy}","received_events_url":"https://api.github.com/users/luizmiranda7/received_events","type":"User","site_admin":false},"created_at":"2017-04-03T10:34:08Z","updated_at":"2017-04-03T10:34:08Z","body":"Payero,\r\n\r\nThe configuration that must be present is \"hostname\", not \"ip\".\r\n\r\nAs you can see in the manual (http://mesos.apache.org/documentation/latest/configuration/) there are several configurations for mesos master and slave nodes. If you are starting the master as service all the configs are mapped at /etc/mesos-master/ path just as files. For example:\r\n\r\nIf you want to set the quorum of your mesos-master, you just need to add a file called quorum (with no extensions) at /etc/mesos-master/ and then add an integer to you file (1, 2, 3 ...). \r\n\r\nOnce mesos is starting, the service reads the folder and for each file found, mesos will read its content and transform it into the named configuration of your file. So basically, if I create a file called hostname with content equal to \"www.google.com\" mesos will start with: --hostname=www.google.com."}}
{"actor":{"display_login":"luizmiranda7"}}