Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Error installing CM Agent

avatar
Explorer

Hello- I was unable to install CM Agent, used different options but was having the same issue. Could you help if you have seen this issue. Thanks!

 

[root@lsdne9sgeot cloudera]# yum --nogpgcheck localinstall cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64.rpm

Loaded plugins: langpacks

Examining cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64.rpm: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

Marking cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64.rpm to be installed

Resolving Dependencies

--> Running transaction check

---> Package cloudera-manager-agent.x86_64 0:5.7.0-1.cm570.p0.76.el6 will be installed

--> Processing Dependency: cyrus-sasl-gssapi for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

--> Processing Dependency: fuse for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

--> Processing Dependency: fuse-libs for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

--> Processing Dependency: /lib/lsb/init-functions for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

--> Processing Dependency: httpd for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

--> Processing Dependency: mod_ssl for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

--> Processing Dependency: openssl-devel for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

--> Processing Dependency: python-psycopg2 for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

--> Processing Dependency: MySQL-python for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

--> Running transaction check

---> Package MySQL-python.x86_64 0:1.2.3-11.el7 will be installed

---> Package cloudera-manager-agent.x86_64 0:5.7.0-1.cm570.p0.76.el6 will be installed

--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

---> Package cyrus-sasl-gssapi.x86_64 0:2.1.26-20.el7_2 will be installed

---> Package fuse.x86_64 0:2.9.2-6.el7 will be installed

---> Package fuse-libs.x86_64 0:2.9.2-6.el7 will be installed

---> Package httpd.x86_64 0:2.4.6-40.el7 will be installed

--> Processing Dependency: httpd-tools = 2.4.6-40.el7 for package: httpd-2.4.6-40.el7.x86_64

--> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-40.el7.x86_64

---> Package mod_ssl.x86_64 1:2.4.6-40.el7 will be installed

---> Package openssl-devel.x86_64 1:1.0.1e-51.el7_2.5 will be installed

--> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1.0.1e-51.el7_2.5.x86_64

--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.1e-51.el7_2.5.x86_64

---> Package python-psycopg2.x86_64 0:2.5.1-3.el7 will be installed

--> Processing Dependency: libpq.so.5()(64bit) for package: python-psycopg2-2.5.1-3.el7.x86_64

---> Package redhat-lsb-core.x86_64 0:4.1-27.el7 will be installed

--> Processing Dependency: redhat-lsb-submod-security(x86-64) = 4.1-27.el7 for package: redhat-lsb-core-4.1-27.el7.x86_64

--> Processing Dependency: spax for package: redhat-lsb-core-4.1-27.el7.x86_64

--> Processing Dependency: /usr/bin/patch for package: redhat-lsb-core-4.1-27.el7.x86_64

--> Processing Dependency: /usr/bin/m4 for package: redhat-lsb-core-4.1-27.el7.x86_64

--> Processing Dependency: /usr/bin/lpr for package: redhat-lsb-core-4.1-27.el7.x86_64

--> Processing Dependency: /usr/bin/lp for package: redhat-lsb-core-4.1-27.el7.x86_64

--> Running transaction check

---> Package cloudera-manager-agent.x86_64 0:5.7.0-1.cm570.p0.76.el6 will be installed

--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

---> Package cups-client.x86_64 1:1.6.3-22.el7 will be installed

--> Processing Dependency: cups-libs(x86-64) = 1:1.6.3-22.el7 for package: 1:cups-client-1.6.3-22.el7.x86_64

--> Processing Dependency: libcups.so.2()(64bit) for package: 1:cups-client-1.6.3-22.el7.x86_64

---> Package httpd-tools.x86_64 0:2.4.6-40.el7 will be installed

---> Package krb5-devel.x86_64 0:1.13.2-12.el7_2 will be installed

--> Processing Dependency: libverto-devel for package: krb5-devel-1.13.2-12.el7_2.x86_64

--> Processing Dependency: libselinux-devel for package: krb5-devel-1.13.2-12.el7_2.x86_64

--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.13.2-12.el7_2.x86_64

--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.13.2-12.el7_2.x86_64

---> Package m4.x86_64 0:1.4.16-10.el7 will be installed

---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed

---> Package patch.x86_64 0:2.7.1-8.el7 will be installed

---> Package postgresql-libs.x86_64 0:9.2.15-1.el7_2 will be installed

---> Package redhat-lsb-submod-security.x86_64 0:4.1-27.el7 will be installed

---> Package spax.x86_64 0:1.5.2-13.el7 will be installed

---> Package zlib-devel.x86_64 0:1.2.7-15.el7 will be installed

--> Running transaction check

---> Package cloudera-manager-agent.x86_64 0:5.7.0-1.cm570.p0.76.el6 will be installed

--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

---> Package cups-libs.x86_64 1:1.6.3-22.el7 will be installed

---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed

---> Package libcom_err-devel.x86_64 0:1.42.9-7.el7 will be installed

---> Package libselinux-devel.x86_64 0:2.2.2-6.el7 will be installed

--> Processing Dependency: libsepol-devel >= 2.1.9-1 for package: libselinux-devel-2.2.2-6.el7.x86_64

--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.2.2-6.el7.x86_64

--> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.2.2-6.el7.x86_64

---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed

--> Running transaction check

---> Package cloudera-manager-agent.x86_64 0:5.7.0-1.cm570.p0.76.el6 will be installed

--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64

---> Package libsepol-devel.x86_64 0:2.1.9-3.el7 will be installed

---> Package pcre-devel.x86_64 0:8.32-15.el7 will be installed

--> Finished Dependency Resolution

Error: Package: cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64 (/cloudera-manager-agent-5.7.0-1.cm570.p0.76.el6.x86_64)

           Requires: libpython2.6.so.1.0()(64bit)

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

 

1 ACCEPTED SOLUTION

avatar
Master Collaborator
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
11 REPLIES 11

avatar
Master Collaborator

What OS are you installing this on? The list of depenent packages returns .el7. and you're installing .el6. CM packages/rpms.

avatar
Explorer

RHEL Version 7.2

avatar
Master Collaborator
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Explorer

Hello Michalis,

 

After clean up I was trying to reinstall freshly CM version cloudera-manager-server-5.7.0-1.cm570.p0.76.el7.x86_64.r but I am trying to start CM I was getting this error which I didnt see in earlier version. Any help would be appreciated.

 

d=****, autocommit=true, release_mode=auto}
2016-06-17 15:37:56,948 INFO main:org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider: HHH000006: Autocommit mode: true
2016-06-17 15:37:56,949 INFO main:org.springframework.beans.factory.support.DefaultListableBeanFactory: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@77b83b6e: defining beans [commandLineConfigurationBean,entityManagerFactoryBean,com.cloudera.server.cmf.TrialState,com.cloudera.server.cmf.TrialManager,com.cloudera.cmf.crypto.LicenseLoader]; root of factory hierarchy
2016-06-17 15:37:56,950 ERROR main:com.cloudera.server.cmf.Main: Server failed.
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: [PersistenceUnit: cmf.server] Unable to build EntityManagerFactory
        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.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 com.cloudera.server.cmf.Main.bootstrapSpringContext(Main.java:387)
        at com.cloudera.server.cmf.Main.<init>(Main.java:242)
        at com.cloudera.server.cmf.Main.main(Main.java:216)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean': FactoryBean threw exception on object creation; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable to build EntityManagerFactory
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1440)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:247)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        ... 17 more
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable to build EntityManagerFactory
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:924)
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
        at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:59)
        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
        at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:171)
        at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:113)
        at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:64)
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
        ... 22 more
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: HHH010003: JDBC Driver class not found: com.mysql.jdbc.Driver
        at org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:142)
        at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
        at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
        at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
        at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
        at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1797)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1755)
        at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:96)
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
        ... 29 more
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Unable to load class [com.mysql.jdbc.Driver]
        at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:149)
        at org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:139)
        ... 41 more
Caused by: java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driver
        at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:296)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:270)
        at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:146)

avatar
Master Collaborator

That's the CM Server nagging that your /etc/cloudera-scm-server/db.properties has possibly default/unconfigured configuration*. Review the installation guide in my previous link, and make sure you have a database for CM Server to connect to. If your installation is a playgroun/proof of concept (not intended for production) use the embedded DB guide [1].

 

[1] http://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_embed_pstgrs.html

 

NB: *The default /etc/cloudera-scm-server/db.properties is set to connnect to a local MySQL database, the error suggests that it's unable to locae the relevant mysql JDBC connector (jar file)

avatar
Explorer

Hello Michalis,

GMorning- We were intially provided the below URLs to be placed under /etc/yum.repos.d under cloudera-manager.repo

[cloudera-manager]
# Packages for Cloudera Manager, Version 5, on RedHat or CentOS 6 x86_64
name=Cloudera Manager
baseurl= [url]
gpgkey=[gpg key]
gpgcheck = 1


but per your document provided we need to get this update under cloudera-manager.repo
[cloudera-manager]
# Packages for Cloudera Manager, Version 5, on RedHat or CentOS 7 x86_64
name=Cloudera Manager
baseurl=https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5/
gpgkey =https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/RPM-GPG-KEY-cloudera
gpgcheck = 1

My only question is we in the bank cannot connect to outside URLs due to security issue. Not sure what to provide the hostname. Can you please help.

avatar
Master Collaborator

We were intially provided the below URLs to be placed under /etc/yum.repos.d under cloudera-manager.repo

> ... we in the bank cannot connect to outside URLs due to security issue

You will need to contact the person who created your internal repo [1] to create a repo for Redhat/CentOS 7.

Effectively your baseurl = .../redhat/7/...  <== point to Redhat/CentOS 7 packages internal url

just an example (notice the 7) ==> baseurl=[base URL]

 

 

[1] baseurl=[base url]

avatar
Explorer
How can we create a internal repo. Is there any documentation for creating a repo? Thanks

avatar
Master Collaborator