报错原因以及解决办法在官网:

https://www.cloudera.com/documentation/enterprise/5-8-x/topics/cm_failover_db.html

1.原因

Cloudera Manager Failover Protection

A CDH cluster managed by Cloudera Manager can have only one instance of Cloudera Manager active at a time. A Cloudera Manager instance is backed by a single database instance that stores configurations and other operational data.

CDH deployments that use highly available configurations for Cloudera Manager can configure a “standby” instance of Cloudera Manager that takes over automatically if the primary instance fails. In some situations, a second instance of Cloudera Manager may become active during maintenance or upgrade activities or due to operator error. If two instances of Cloudera Manager are active at the same time and attempt to access the same database, data corruption can result, making Cloudera Manager unable to manage the cluster.

In Cloudera Manager 5.7 and higher, Cloudera Manager automatically detects when more than one instance of Cloudera Manager is running and logs a message in the /var/log/cloudera-scm-server/cloudera-scm-server.log file. For example:

2016-02-17 09:47:27,915 WARN
main:com.cloudera.server.cmf.components.ScmActive:
ScmActive detected spurious CM : hostname=sysadmin-scm-2.mycompany.com/172.28.197.136,bootup true
2016-02-17 09:47:27,916 WARN
main:com.cloudera.server.cmf.components.ScmActive: ScmActive:
The database is owned by sysadmin-scm-1.mycompany.com/172.28.197.242
2016-02-17 09:47:27,917 ERROR main:com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean: ScmActiveat bootup:
The configured database is being used by another instance of Cloudera Manager.
In addition, the second instance of Cloudera Manager is automatically shut down, resulting in messages similar to the following in the log file:

2016-02-17 09:47:27,919 ERROR main:com.cloudera.server.cmf.Main: Serverfailed.2016-02-17 09:47:27,919
ERROR main:com.cloudera.server.cmf.Main: Serverfailed.org.springframework.beans.factory.BeanCreationException:
Error creatingbean with name 'com.cloudera.server.cmf.TrialState':
Cannot resolvereference to bean 'entityManagerFactoryBean' while setting constructorargument;
nested exception isorg.springframework.beans.factory.BeanCreationException:
Error creatingbean with name 'entityManagerFactoryBean':
FactoryBean threw exception onobject creation; nested exception is java.lang.RuntimeException: ScmActiveat bootup:
Failed to validate the identity of Cloudera Manager.

When a Cloudera Manager instance fails or becomes unavailable and remains offline for more than 30 seconds, any new instance that is deployed claims ownership of the database and continues to manage the cluster normally.

2.解决办法

Disabling Automatic Failover Protection

You can disable automatic shutdown by setting a Java option and restarting Cloudera Manager:
  1. On the host where Cloudera Manager server is running, open the following file in a text editor:

    /etc/default/cloudera-scm-server
  2. Add the following property (separate each property with a space) to the line that begins with export CMF_JAVA_OPTS:
    -Dcom.cloudera.server.cmf.components.scmActive.killOnError=false
    For example:

    export CMF_JAVA_OPTS="-Xmx2G -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Dcom.cloudera.server.cmf.components.scmActive.killOnError=false”
    
  3. Restart the Cloudera Manager server by running the following command on the Cloudera Manager server host:
    sudo service cloudera-scm-server restart

以上。

最新文章

  1. WebViewJavascriptBridge使用说明(iOS)
  2. 跳过IE10安装VS2013
  3. 。。。HibernateTemplate与Session。。。
  4. 3-Highcharts 3D图之3D柱状图分组叠堆3D图
  5. html5游戏引擎-Pharse.js学习笔记(一)
  6. 赋值,copy和deepcopy
  7. LAMP的安装
  8. JS 对象API之获取原型对象
  9. 【ASP】response和sever对象实现用户登录
  10. Mysq登陆后执行命令提示You must SET PASSWORD before executing this statement
  11. 【转】Android-Input 按键字符映射文件&输入设备配置文件
  12. C#最简单的连接数据库的方法
  13. Runtime Services
  14. Python3学习之路~5.2 time & datetime模块
  15. [T-ARA][Tic Tic Toc]
  16. git学习(七):git 对象库
  17. PCL深度图像(1)
  18. tablediff工具实用
  19. IOS-适配iOS10以及Xcode8
  20. 安装scrapy解决的坑

热门文章

  1. String强制转换为Date,freemarker标签里date数据的显示问题
  2. python利用beautifulsoup多页面爬虫
  3. sql初——基础
  4. Redis笔记2-Redis安装、配置
  5. spring讲解
  6. Ultimate Chicken Horse GameProject需求规格报告书
  7. MySQL实战45讲学习笔记:第二十六讲
  8. [LeetCode] 416. Partition Equal Subset Sum 相同子集和分割
  9. GC分析工具使用-gceacy分析堆栈
  10. iOS block疑难解答