CDH断电后cloudera-scm-server启动报错

Posted 格格巫 MMQ!!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CDH断电后cloudera-scm-server启动报错相关的知识,希望对你有一定的参考价值。

报错背景:
CDH未关闭的情况下,Linux断电,导致cloudera-scm-server无法启动。

报错现象:
输入启动命令之后:/opt/cm-5.15.1/etc/init.d/cloudera-scm-server start,

cloudera-scm-server 会启动,但是几秒中之后就会死掉,显示:cloudera-scm-server 已死,但 pid 文件存在。

于是查看日志文件:vim /opt/cm-5.15.1/log/cloudera-scm-server/cloudera-scm-server.log,

复制代码
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘com.cloudera.server.cmf.TrialState’: Cannot resolve reference to bean ‘entityManagerFactoryBean’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactoryBean’: FactoryBean threw exception on object creation; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:616)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory 1. g e t O b j e c t ( A b s t r a c t B e a n F a c t o r y . j a v a : 293 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . g e t S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 222 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 290 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 192 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . p r e I n s t a n t i a t e S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 585 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . f i n i s h B e a n F a c t o r y I n i t i a l i z a t i o n ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 895 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 425 ) a t c o m . c l o u d e r a . s e r v e r . c m f . M a i n . b o o t s t r a p S p r i n g C o n t e x t ( M a i n . j a v a : 393 ) a t c o m . c l o u d e r a . s e r v e r . c m f . M a i n . < i n i t > ( M a i n . j a v a : 243 ) a t c o m . c l o u d e r a . s e r v e r . c m f . M a i n . m a i n ( M a i n . j a v a : 216 ) C a u s e d b y : o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . B e a n C r e a t i o n E x c e p t i o n : E r r o r c r e a t i n g b e a n w i t h n a m e ′ e n t i t y M a n a g e r F a c t o r y B e a n ′ : F a c t o r y B e a n t h r e w e x c e p t i o n o n o b j e c t c r e a t i o n ; n e s t e d e x c e p t i o n i s j a v a x . p e r s i s t e n c e . P e r s i s t e n c e E x c e p t i o n : o r g . h i b e r n a t e . e x c e p t i o n . G e n e r i c J D B C E x c e p t i o n : C o u l d n o t o p e n c o n n e c t i o n a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . F a c t o r y B e a n R e g i s t r y S u p p o r t . d o G e t O b j e c t F r o m F a c t o r y B e a n ( F a c t o r y B e a n R e g i s t r y S u p p o r t . j a v a : 149 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . F a c t o r y B e a n R e g i s t r y S u p p o r t . g e t O b j e c t F r o m F a c t o r y B e a n ( F a c t o r y B e a n R e g i s t r y S u p p o r t . j a v a : 102 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t O b j e c t F o r B e a n I n s t a n c e ( A b s t r a c t B e a n F a c t o r y . j a v a : 1440 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 247 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 192 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . B e a n D e f i n i t i o n V a l u e R e s o l v e r . r e s o l v e R e f e r e n c e ( B e a n D e f i n i t i o n V a l u e R e s o l v e r . j a v a : 322 ) . . . 17 m o r e C a u s e d b y : j a v a x . p e r s i s t e n c e . P e r s i s t e n c e E x c e p t i o n : o r g . h i b e r n a t e . e x c e p t i o n . G e n e r i c J D B C E x c e p t i o n : C o u l d n o t o p e n c o n n e c t i o n a t o r g . h i b e r n a t e . e j b . A b s t r a c t E n t i t y M a n a g e r I m p l . c o n v e r t ( A b s t r a c t E n t i t y M a n a g e r I m p l . j a v a : 1387 ) a t o r g . h i b e r n a t e . e j b . A b s t r a c t E n t i t y M a n a g e r I m p l . c o n v e r t ( A b s t r a c t E n t i t y M a n a g e r I m p l . j a v a : 1310 ) a t o r g . h i b e r n a t e . e j b . A b s t r a c t E n t i t y M a n a g e r I m p l . t h r o w P e r s i s t e n c e E x c e p t i o n ( A b s t r a c t E n t i t y M a n a g e r I m p l . j a v a : 1397 ) a t o r g . h i b e r n a t e . e j b . T r a n s a c t i o n I m p l . b e g i n ( T r a n s a c t i o n I m p l . j a v a : 62 ) a t c o m . c l o u d e r a . e n t e r p r i s e . A b s t r a c t W r a p p e d E n t i t y M a n a g e r . b e g i n F o r R o l l b a c k A n d R e a d

以上是关于CDH断电后cloudera-scm-server启动报错的主要内容,如果未能解决你的问题,请参考以下文章

CDH6.3.1安装hue 报错

cdh6.2.1搭建安装

小记--------CDH版本启动cloudera manager UI界面

解决CDH的web界面使用nginx代理一些静态文件无法加载

service cloudera-scm-server restart报错 Unable to retrieve remote parcel repository manifest

请教在断电后如何自动启动虚拟机?