我在linux mint环境中安装了1个mesos master和3个mesos slave。现在,当我运行所有的主人和奴隶时,我可以在mesos主人看到每个奴隶都及时定期出现。我无法看到所有3个奴隶出现在mesos UI页面上。
我的问题是它是正常还是我应该能够看到所有三个奴隶在一起? 我已经从apache mesos网站下载了mesos,并手动创建了mesos master和slave。
编辑:
这是我的主人/ state.json deails:
{"activated_slaves":0,"build_date":"2015-08-12 18:18:29","build_time":1439417909,"build_user":"root","completed_frameworks":[],"deactivated_slaves":1,"elected_time":1439426147.74133,"flags":{"allocation_interval":"1secs","allocator":"HierarchicalDRF","authenticate":"false","authenticate_slaves":"false","authenticators":"crammd5","framework_sorter":"drf","help":"false","initialize_driver_logging":"true","ip":"ip address","log_auto_initialize":"true","logbufsecs":"0","logging_level":"INFO","max_slave_ping_timeouts":"5","port":"5050","quiet":"false","recovery_slave_removal_limit":"100%","registry":"replicated_log","registry_fetch_timeout":"1mins","registry_store_timeout":"5secs","registry_strict":"false","root_submissions":"true","slave_ping_timeout":"15secs","slave_reregister_timeout":"10mins","user_sorter":"drf","version":"false","webui_dir":"\/mesos-0.23.0\/build\/..\/src\/webui","work_dir":"\/var\/lib\/mesos","zk_session_timeout":"10secs"},"frameworks":[],"hostname":"school_name.ip.in-addr.arpa","id":"20150812-203547-1316479616-5050-10790","leader":"master@ip:5050","orphan_tasks":[],"pid":"master@ip:5050","slaves":[{"active":false,"attributes":{},"hostname":"name","id":"20150812-203547-1316479616-5050-10790-S4930","offered_resources":{"cpus":0,"disk":0,"mem":0},"pid":"slave(1)@127.0.1.1:5051","registered_time":1439475605.91917,"reserved_resources":{},"resources":{"cpus":8,"disk":901526,"mem":31022,"ports":"[31000-32000]"},"unreserved_resources":{"cpus":8,"disk":901526,"mem":31022,"ports":"[31000-32000]"},"used_resources":{"cpus":0,"disk":0,"mem":0}}],"start_time":1439426147.73525,"unregistered_frameworks":[],"version":"0.23.0"}
这里有一些细节可以帮助你们了解安装: 我从apache站点下载了meses并在本地构建并运行它们。从master我运行mesos-mster
./bin/mesos-master.sh --ip=128.226.119.78 --work_dir=/var/lib/mesos
从奴隶那里我运行了mesos奴隶
./bin/mesos-slave.sh --master=128.226.119.78:5050
我从所有3个奴隶那里做了同样的事。
这里有两个控制台输出,我可以在奴隶机器中看到,一次又一次地出现。
Querying resource estimator for oversubscribable resources
I0813 10:29:18.962781 9900 slave.cpp:4193] Received oversubscribable resources from the resource estimator
答案 0 :(得分:0)
。我发现你需要在启动奴隶时设置一个ip。
slaves:
[ { active: false,
attributes: {},
hostname: 'gladiator',
id: '20150812-203547-1316479616-5050-10790-S4930',
offered_resources: [Object],
pid: 'slave(1)@127.0.1.1:5051',
registered_time: 1439475605.91917,
reserved_resources: {},
resources: [Object],
unreserved_resources: [Object],
used_resources: [Object] } ],
从站启动并侦听127.0.0.1,因此主站无法正确连接。你可以试试
./bin/mesos-slave.sh --master=128.226.119.78:5050 --ip=your_slave_ip_which_could_connect_from_master:5051