Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Cloudera manager installation with external database error

Cloudera manager installation with external database error

New Contributor

Hi All,

 

We are trying to install cloudera manager using automation script with mysql external database . But its giving below error .

 

Please help .

 

 

 

root@masterhost1 cloudera-scm-server]# tail -100f cloudera-scm-server.log

        at com.cloudera.server.cmf.Main.<init>(Main.java:266)

        at com.cloudera.server.cmf.Main.main(Main.java:216)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rootContext' defined in class path resource [webapp/WEB-INF/spring/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'providesFactory' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/cmf/service/csd/components/ProvidesFactory.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.cloudera.cmf.service.ServiceDataProvider]: : Error creating bean with name 'serviceDataProviderBean' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/ServiceDataProviderImpl.class]: Unsatisfied dependency expressed through constructor argument with index 14 of type [com.cloudera.server.cmf.components.EmbeddedDbManager]: : Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serviceDataProviderBean' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/ServiceDataProviderImpl.class]: Unsatisfied dependency expressed through constructor argument with index 14 of type [com.cloudera.server.cmf.components.EmbeddedDbManager]: : Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)

        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.getObject(AbstractBeanFactory.java:293)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)

        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)

        at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397)

        ... 4 more

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'providesFactory' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/cmf/service/csd/components/ProvidesFactory.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.cloudera.cmf.service.ServiceDataProvider]: : Error creating bean with name 'serviceDataProviderBean' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/ServiceDataProviderImpl.class]: Unsatisfied dependency expressed through constructor argument with index 14 of type [com.cloudera.server.cmf.components.EmbeddedDbManager]: : Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serviceDataProviderBean' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/ServiceDataProviderImpl.class]: Unsatisfied dependency expressed through constructor argument with index 14 of type [com.cloudera.server.cmf.components.EmbeddedDbManager]: : Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)

        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)

        ... 14 more

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'providesFactory' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/cmf/service/csd/components/ProvidesFactory.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.cloudera.cmf.service.ServiceDataProvider]: : Error creating bean with name 'serviceDataProviderBean' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/ServiceDataProviderImpl.class]: Unsatisfied dependency expressed through constructor argument with index 14 of type [com.cloudera.server.cmf.components.EmbeddedDbManager]: : Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serviceDataProviderBean' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/ServiceDataProviderImpl.class]: Unsatisfied dependency expressed through constructor argument with index 14 of type [com.cloudera.server.cmf.components.EmbeddedDbManager]: : Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError

        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)

        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.getObject(AbstractBeanFactory.java:293)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)

        ... 16 more

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serviceDataProviderBean' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/ServiceDataProviderImpl.class]: Unsatisfied dependency expressed through constructor argument with index 14 of type [com.cloudera.server.cmf.components.EmbeddedDbManager]: : Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError

        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)

        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.getObject(AbstractBeanFactory.java:293)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)

        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)

        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)

        ... 35 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDbManager' defined in URL [jar:file:/usr/share/cmf/common_jars/server-5.13.0.jar!/com/cloudera/server/cmf/components/EmbeddedDbManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)

        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.getObject(AbstractBeanFactory.java:293)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)

        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)

        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)

        ... 49 more

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cloudera.server.cmf.components.EmbeddedDbManager]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)

        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)

        ... 61 more

Caused by: java.lang.ExceptionInInitializerError

        at com.cloudera.cmf.service.config.CMURLEvaluator.<clinit>(CMURLEvaluator.java:44)

        at com.cloudera.cmf.service.mgmt.NavMetaServerParams.<clinit>(NavMetaServerParams.java:820)

        at com.cloudera.server.web.cmf.DbTestConnUtil.<clinit>(DbTestConnUtil.java:92)

        at com.cloudera.server.cmf.components.EmbeddedDbManager.<init>(EmbeddedDbManager.java:137)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)

        ... 63 more

Caused by: java.net.UnknownHostException: masterhost1: masterhost1

        at java.net.InetAddress.getLocalHost(InetAddress.java:1473)

        at com.cloudera.cmf.service.config.CMURLEvaluator.<clinit>(CMURLEvaluator.java:42)

        ... 71 more

Caused by: java.net.UnknownHostException: masterhost1

        at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)

        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)

        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)

        at java.net.InetAddress.getLocalHost(InetAddress.java:1469)

 

Thanks,

Ranjan

1 REPLY 1

Re: Cloudera manager installation with external database error

Explorer

Can you check the unknown host exception whether it is a valid hostname.

 

Caused by: java.net.UnknownHostException: masterhost1