起因:cm库被误删,导致cm打不开,将历史备份的cm库恢复后,cm管理界面能启动,但是各组件状态不正常(显示红色告警,都是停止状态,实际是启动状态)。
解决:1、CMS启动报错,将/var/lib/cloudera-host-monitor,/var/lib/cloudera-service-monitor,/var/lib/cloudera-scm-eventserver删除,重启CMS成功。
2、启动组件,先从oozie开始,报错为:cloud not initialize service [org.apache.oozie.service.HadoopAccessorService].HadoopAccessorService],Login failure for user: Login failure for user: oozie/qzc1m1.cloud.com@CLOUD.COM from keytab oozie.keytab javax.security.auth.login.LoginException: Unable to obtain password from user
CDH进入右上角的管理->安全->kerberos凭据->勾选oozie主体->重新生成所选项
再启重成功,其它组件类似做法。