成功连接后无法连接到Mesos浏览器消息

时间:2019-06-25 08:01:27

标签: mesos

如您所见,我可以通过浏览器连接到地址为http://ec2-35-180-230-169.eu-west-3.compute.amazonaws.com:5050/#/的Mesos

但是2秒钟后,该屏幕弹出,显示“无法连接到ec2-35-180-230-169.eu-west-3.compute.amazonaws.com:5050!”

Safari和Firefox上存在相同的问题。

以下是状态信息:

"version":"1.7.2","build_date":"2019-04-29 16:49:35","build_time":1556556575.0,"build_user":"root","start_time":1561467923.587283,"elected_time":1561467923.5961607,"id":"c54f9020-25c2-4890-8072-37e591a2f1d6","pid":"master@172.31.47.43:5050","hostname":"paris2x","capabilities":["AGENT_UPDATE"],"activated_slaves":1.0,"deactivated_slaves":0.0,"unreachable_slaves":0.0,"leader":"master@172.31.47.43:5050","leader_info":{"id":"c54f9020-25c2-4890-8072-37e591a2f1d6","pid":"master@172.31.47.43:5050","port":5050,"hostname":"paris2x"},"flags":{"agent_ping_timeout":"15secs","agent_reregister_timeout":"10mins","allocation_interval":"1secs","allocator":"hierarchical","authenticate_agents":"false","authenticate_frameworks":"false","authenticate_http_frameworks":"false","authenticate_http_readonly":"false","authenticate_http_readwrite":"false","authentication_v0_timeout":"15secs","authenticators":"crammd5","authorizers":"local","filter_gpu_resources":"true","framework_sorter":"drf","help":"false","hostname_lookup":"true","http_authenticators":"basic","initialize_driver_logging":"true","ip":"172.31.47.43","log_auto_initialize":"true","logbufsecs":"0","logging_level":"INFO","max_agent_ping_timeouts":"5","max_completed_frameworks":"50","max_completed_tasks_per_framework":"1000","max_unreachable_tasks_per_framework":"1000","memory_profiling":"false","min_allocatable_resources":"cpus:0.01|mem:32","port":"5050","quiet":"false","recovery_agent_removal_limit":"100%","registry":"replicated_log","registry_fetch_timeout":"1mins","registry_gc_interval":"15mins","registry_max_agent_age":"2weeks","registry_max_agent_count":"102400","registry_store_timeout":"20secs","registry_strict":"false","require_agent_domain":"false","role_sorter":"drf","root_submissions":"true","version":"false","webui_dir":"/usr/share/mesos/mesos-1.7.2/build/../src/webui","work_dir":"/var/lib/mesos","zk_session_timeout":"10secs"},"slaves":[{"id":"f071d1c1-1e28-4d17-8ab1-306dfdd47e31-S0","hostname":"localhost","port":5051,"attributes":{},"pid":"slave(1)@127.0.0.1:5051","registered_time":1561467925.269364,"reregistered_time":1561467952.9056547,"resources":{"disk":74229.0,"mem":6958.0,"gpus":0.0,"cpus":2.0,"ports":"[31000-32000]"},"used_resources":{"disk":0.0,"mem":0.0,"gpus":0.0,"cpus":0.0},"offered_resources":{"disk":0.0,"mem":0.0,"gpus":0.0,"cpus":0.0},"reserved_resources":{},"unreserved_resources":{"disk":74229.0,"mem":6958.0,"gpus":0.0,"cpus":2.0,"ports":"[31000-32000]"},"active":true,"version":"1.7.2","capabilities":["MULTI_ROLE","HIERARCHICAL_ROLE","RESERVATION_REFINEMENT","RESOURCE_PROVIDER","RESIZE_VOLUME"]}],"recovered_slaves":[],"frameworks":[],"completed_frameworks":[],"orphan_tasks":[],"unregistered_frameworks":[]}

enter image description here

1 个答案:

答案 0 :(得分:0)

Mesos UI使用leader_info端点中的state.json来查询领导者。第一个请求转到用户提供的URL,但随后尝试直接命中领导者。在您的示例中,领导者信息是:

"leader_info":{
  "id":"c54f9020-25c2-4890-8072-37e591a2f1d6",
  "pid":"master@172.31.47.43:5050",
  "port":5050,
  "hostname":"paris2x"
},

并且UI尝试连接'//' + leader_info.hostname + ':' + leader_info.port ,因此您的情况将是//paris2x:5050

要解决此错误,您需要将主机的主机名更改为可访问的主机名或在其前面放置外观。