【现象】

mesos启动失败,查看mesos状态报错:

[root@hps102 ~]# systemctl status mesos-master
● mesos-master.service - Mesos Master
Loaded: loaded (/usr/lib/systemd/system/mesos-master.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2016-05-30 15:26:11 CST; 5s ago
Process: 7783 ExecStart=/usr/bin/mesos-init-wrapper master (code=exited, status=1/FAILURE)
Main PID: 7783 (code=exited, status=1/FAILURE) May 30 15:26:10 hps102 systemd[1]: mesos-master.service: main process exited, code=exited, status=1/FAILURE
May 30 15:26:11 hps102 systemd[1]: Unit mesos-master.service entered failed state.
May 30 15:26:11 hps102 systemd[1]: mesos-master.service failed.

通过journalctl查看mesos-master日志:

[root@hps102 ~]# journalctl -f -u  mesos-master
-- Logs begin at Mon 2016-05-30 04:03:01 CST. --
May 30 15:27:52 hps102 systemd[1]: mesos-master.service holdoff time over, scheduling restart.
May 30 15:27:52 hps102 systemd[1]: Started Mesos Master.
May 30 15:27:52 hps102 systemd[1]: Starting Mesos Master...
May 30 15:27:52 hps102 mesos-master[8200]: Failed to load unknown flag 'quorum.rpmsave'
May 30 15:27:52 hps102 mesos-master[8200]:
May 30 15:27:52 hps102 mesos-master[8200]: Usage: mesos-master [options]
May 30 15:27:52 hps102 mesos-master[8200]:
May 30 15:27:52 hps102 mesos-master[8200]: --acls=VALUE The value could be a JSON-formatted string of ACLs
May 30 15:27:52 hps102 mesos-master[8200]: or a file path containing the JSON-formatted ACLs used
May 30 15:27:52 hps102 systemd[1]: mesos-master.service: main process exited, code=exited, status=1/FAILURE
May 30 15:27:52 hps102 systemd[1]: Unit mesos-master.service entered failed state.
May 30 15:27:52 hps102 systemd[1]: mesos-master.service failed.
^XMay 30 15:28:12 hps102 systemd[1]: mesos-master.service holdoff time over, scheduling restart.
May 30 15:28:12 hps102 systemd[1]: Started Mesos Master.
May 30 15:28:12 hps102 systemd[1]: Starting Mesos Master...
May 30 15:28:12 hps102 systemd[1]: mesos-master.service: main process exited, code=exited, status=1/FAILURE
May 30 15:28:12 hps102 systemd[1]: Unit mesos-master.service entered failed state.
May 30 15:28:12 hps102 systemd[1]: mesos-master.service failed.

【原因】

查看mesos配置目录:

[root@hps102 ~]# ll /etc/mesos*
/etc/mesos:
total 8
-rw-r--r-- 1 root root 65 May 30 15:21 zk
-rw-r--r-- 1 root root 65 May 30 15:04 zk.rpmsave /etc/mesos-master:
total 24
-rw-r--r-- 1 root root 5 May 30 15:21 logging_level
-rw-r--r-- 1 root root 2 May 30 15:21 quorum
-rw-r--r-- 1 root root 2 May 30 15:03 quorum.rpmsave
-rw-r--r-- 1 root root 17 May 30 15:21 work_dir
-rw-r--r-- 1 root root 17 May 30 15:03 work_dir.rpmsave
-rw-r--r-- 1 root root 7 May 30 15:21 zk_session_timeout /etc/mesos-slave:
total 16
-rw-r--r-- 1 root root 20 May 30 15:21 attributes
-rw-r--r-- 1 root root 13 May 30 15:21 containerizers
-rw-r--r-- 1 root root 8 May 30 15:21 logging_level
-rw-r--r-- 1 root root 17 May 30 15:21 work_dir

发现多了几个.rpmsave结尾的文件。

这个是由于mesos-master执行yum remove mesos的时候,mesos-master还是运行状态,导致删除时有备份文件产生。

【处理】

删除上面那几个文件即可:

rm -f /etc/mesos-master/quorum.rpmsave  /etc/mesos-master/work_dir.rpmsave /etc/mesos/zk.rpmsave

mesos-master启动失败,报错Failed to load unknown flag 'quorum.rpmsave'的更多相关文章

  1. 使用elasticsearch启动项目报错failed to load elasticsearch nodes 。。。。。No type specified for field [name]

    failed to load elasticsearch nodes .....No type specified for field [name]翻译: 加载ElasticSearch节点失败... ...

  2. Eclipse启动 报错[Failed to load the JNI shared library jvm.dll

    准备要做java服务器,在安装开发环境时,启动Eclipse报错[Failed to load the JNI shared library jvm.dll] 研究了下,造成错误的原因是由于eclip ...

  3. 使用laravel-admin后台sdk报错Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID、Provisional headers are shown

    报错Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID请先确定自己的资源url是否可以确实访问到(地址正确与否.访问权限是否开启等) 若n ...

  4. junit单元测试报错Failed to load ApplicationContext,但是项目发布到tomcat浏览器访问没问题

    junit单元测试报错Failed to load ApplicationContext,但是项目发布到tomcat浏览器访问没问题,说明代码是没问题的,配置也没问题.开始时怀疑是我使用junit版本 ...

  5. 启动Myeclipse报错“Failed to create the Java Virtual Machine”的解决办法

    我安装的是Myeclipse 10.7.1.装上好久没用,今天启动突然报错:Failed to create the Java Virtual Machine. 检查Myeclipse安装好使用时好的 ...

  6. 启动Myeclipse报错“Failed to create the Java Virtual Machine”的解决办法

    我安装的是Myeclipse 10.7.1.装上好久没用,今天启动突然报错:Failed to create the Java Virtual Machine. 检查Myeclipse安装好使用时好的 ...

  7. Svn启动窗口报错 Could not load file or assembly 'SharpSvn.dll' or one of its

    win10 64位系统生成没问题,测试都没问题,结果换到win7 64位系统上,点开就出现,网上搜了下,通过以下方式解决, 必须把bin 文件夹全部删除,重新生成.要不还是会报错. Solve it. ...

  8. mac 启动php-fpm报错 failed to open configuration file '/private/etc/php-fpm.conf': No such file or direc

    直接运行,有报错找不到配置文件. $ php-fpm [11-Jan-2014 16:03:03] ERROR: failed to open configuration file '/private ...

  9. Linux安装U盘启动报错Failed to load ldlinux.c32

    报错信息 使用U盘安装linux无法正常启动 Start booting from USB device... SYSLINUX 5.10 EDD 2013-06-04 Copyright (C) 1 ...

随机推荐

  1. Redis学习笔记——Redis的基本操作

    之前介绍过如何在ubuntu安装Redis服务器:https://www.cnblogs.com/zifeiy/p/9062738.html 接下来,我们在Redis上进行一些基本的操作. 所县使用命 ...

  2. IDA7.2破解版本

    更新说明 https://www.hex-rays.com/products/ida/7.2/index.shtml 破解文章 作者阐述了一下对IDA安装密码的攻击方法,通过枚举多种语言默认的随机数发 ...

  3. 记录git 软件库

    https://github.com/phpredis/phpredis   redis扩展 https://github.com/tecnickcom/tcpdf 生成PDF 后续......

  4. 最新 美柚java校招面经 (含整理过的面试题大全)

    从6月到10月,经过4个月努力和坚持,自己有幸拿到了网易雷火.京东.去哪儿. 美柚等10家互联网公司的校招Offer,因为某些自身原因最终选择了 美柚.6.7月主要是做系统复习.项目复盘.LeetCo ...

  5. SpringBoot开发

    创建一个Spring Boot,可以直接使用构建工具(Maven或Gradle)创建,也可以使用spring.io网站创建,一般会选择使用spring.io创建 使用IDEA创建一个Spring Bo ...

  6. mac清除launchpad 应用程序和图标

    打开launchpad显示所有的程序,有时候却无法删除一些应用图标和程序 用Spotlight(command+空格键),我们输入要删除的应用名称 我们按住Command再点回车, 搜索的结果就会在f ...

  7. [转帖]hdfs hbase hive hbase适用场景

    hdfs hbase hive hbase适用场景 https://www.cnblogs.com/liyulong1982/p/6001822.html Hive 不想用程序语言开发MapReduc ...

  8. In-App Purchase(iap)快速指南

      点击IOS IAP APP内支付 Java服务端代码直接跳转到示例点击直接跳转到示例 iap简介   在应用中内嵌Store,在iOS应用中使用Store Kit framework来实现In-A ...

  9. 【转】SpringMVC框架实现后端向前端传数据

    首先还是页面userAdd.jsp.它既是发出请求的页面,也是接收返回结果的页面: <%@ page language="java" import="java.ut ...

  10. IDEA使用 maven 搭建 SSM 框架

    文章目录 pom 文件的编写 项目结构 SSM 配置文件的编写 web.xml 的配置 总结 公司有个小的内部使用的软件,让开发,自己选择使用 SSM :因为之前自己学过,本以为一切水到渠成,但是好久 ...