我正在关注https://blog.couchbase.com/docker-apache-mesos-marathon/并尝试建立一个 mesos 马拉松集群。所有进程都工作正常,并且可以看到状态为正在运行,除了马拉松......
- 使用 virtual box 来配置操作系统为 centos 的虚拟机
- /etc/hosts 中有以下条目
[root@localhost lib]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.56.102 localhost localhost.localdomain localhost localhost.localdomain
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
MESOS_HOSTNAME=192.168.56.102
[root@localhost lib]#
[root@localhost lib]# sudo service mesos-master status
Redirecting to /bin/systemctl status mesos-master.service
● mesos-master.service - Mesos Master
Loaded: loaded (/usr/lib/systemd/system/mesos-master.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2018-09-14 18:55:08 EDT; 50min ago
Main PID: 25196 (mesos-master)
Tasks: 21
Memory: 9.0M
CGroup: /system.slice/mesos-master.service
├─25196 /usr/sbin/mesos-master --zk=zk://localhost:2181/mesos --port=5050 --log_dir=/var/log/mesos --quorum=1 --work_dir=/var/lib/mesos
├─25207 logger -p user.info -t mesos-master[25196]
└─25208 logger -p user.err -t mesos-master[25196]
Sep 14 19:37:12 localhost.localdomain mesos-master[25208]: 2018-09-14 19:37:12,202:25196(0x7f31427fc700):ZOO_WARN@zookeeper_interest@1597: Exceeded deadline by 17ms
Sep 14 19:40:52 localhost.localdomain mesos-master[25208]: 2018-09-14 19:40:52,564:25196(0x7f31437fe700):ZOO_WARN@zookeeper_interest@1597: Exceeded deadline by 11ms
Sep 14 19:40:55 localhost.localdomain mesos-master[25208]: 2018-09-14 19:40:55,911:25196(0x7f31417fa700):ZOO_WARN@zookeeper_interest@1597: Exceeded deadline by 12ms
Sep 14 19:40:55 localhost.localdomain mesos-master[25208]: 2018-09-14 19:40:55,911:25196(0x7f31427fc700):ZOO_WARN@zookeeper_interest@1597: Exceeded deadline by 12ms
Sep 14 19:40:55 localhost.localdomain mesos-master[25208]: 2018-09-14 19:40:55,911:25196(0x7f3127fff700):ZOO_WARN@zookeeper_interest@1597: Exceeded deadline by 12ms
Sep 14 19:40:55 localhost.localdomain mesos-master[25208]: 2018-09-14 19:40:55,911:25196(0x7f31437fe700):ZOO_WARN@zookeeper_interest@1597: Exceeded deadline by 12ms
Sep 14 19:44:39 localhost.localdomain mesos-master[25208]: 2018-09-14 19:44:39,594:25196(0x7f31417fa700):ZOO_WARN@zookeeper_interest@1597: Exceeded deadline by 12ms
Sep 14 19:44:39 localhost.localdomain mesos-master[25208]: 2018-09-14 19:44:39,594:25196(0x7f3127fff700):ZOO_WARN@zookeeper_interest@1597: Exceeded deadline by 12ms
Sep 14 19:44:39 localhost.localdomain mesos-master[25208]: 2018-09-14 19:44:39,594:25196(0x7f31437fe700):ZOO_WARN@zookeeper_interest@1597: Exceeded deadline by 12ms
Sep 14 19:44:39 localhost.localdomain mesos-master[25208]: 2018-09-14 19:44:39,594:25196(0x7f31427fc700):ZOO_WARN@zookeeper_interest@1597: Exceeded deadline by 12ms
我不知道我错在哪里。
我的Linux虚拟机IP是192.168.56.102,我也可以通过putty登录,但无法访问mesos UI。
答案1
此问题已通过正确配置 java.util.Settings 解决。 jdk home的ENV变量已导出