问题
1. failed to fetch http://repos.mesosphere.io trusty Packages
原因:未正确设置Mesosphere repository地址
解决:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/mesosphere.list
通过上面命令设置完Mesosphere repository地址后,
sudo vim /etc/apt/sources.list.d/mesosphere.list
查看地址是否正确,正确地址应为:
deb http://repos.mesosphere.io/ubuntu trusty main
- sudo apt-get install mesosphere 出现错误:
mesosphere : Depends: marathon but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
原因:the newest version of Marathon has a dependency on Java 8 - you’ll need to install that first
解决:
安装java8
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
查看错误
在/var/log/mesos 目录下的:
mesos-master.ERROR
mesos-master.WARNING
mesos-master.INFO
mesos-slave.ERROR
mesos-slave.WARNING
mesos-slave.INFO
issue:
在master的控制台发现有一台salve(192.168.0.62)的注册时间一直变化——几分钟更新一次;
查看master活动主机的INFO日志发现:
master Shut down slave(192.168.0.62:5051) because "health check timed out"
telnet 192.168.0.62 5051 发现端口打不开;
问题应该在于slave 192.168.0.62机器的防火墙的端口访问限制;
在slave 执行
sudo ufw allow from 192.168.0.56 –允许此IP(master)访问所有的本机端口
sudo ufw allow from 192.168.0.38
sudo ufw allow from 192.168.0.67
问题解决!
issue:
在一台master(例如 192.168.0.38)主机上运行配置运行marathon task,当这一台master故障重启后,应该由另外选举产生的leader master主机继续运行该marathon task,但是实际情况是:从mesos运行监控界面上看到此时marathon task状态并没有被执行,查看mesos log发现:
错误日志 Shutdown failed on fd=14: Transport endpoint is not connected
警告日志 Master attempted to send message to disconnected framework 20151103-134410-201326602-5050-11260-0000 at scheduler-a42792c3-3b5d-4bd3-a840-0e9ed4eaaab5@10.0.0.10:36455
问题应该还是在于新的leader master 访问192.168.0.38主机的marathon时被防火墙的端口访问限制;
在192.168.0.38执行
sudo ufw allow from 192.168.0.67 –允许此IP访问所有的本机端口
sudo ufw allow from 192.168.0.56
问题解决!
192.168.0.38
192.168.0.56
192.168.0.67
192.168.0.42
192.168.0.58
192.168.0.62