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.bin script error: damaged reomd.xml file

cloudera-manager-installation.bin script error: damaged reomd.xml file

Explorer

Hi, 

 

I'm trying to install cloudera manager using cloudera-manager-installation.bin script but everytime I try to execute the script it fails with the below error.

 

Capture.JPG

 

I tried to install the same on other set of hosts also (from a different network) but there also I'm getting the same issue. Please suggest what exactly the issue is.

 

Thanks

 

11 REPLIES 11

Re: cloudera-manager-installation.bin script error: damaged reomd.xml file

Super Collaborator

does that host have access to the internet ? 

on the node that you are attempting to do the installation what does

curl -vv http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/repodata/repomd.xml

OR

wget -O- http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/repodata/repomd.xml

 

 

Try installing using Path B http://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_install_path_b.html

 
 

 

 

Re: cloudera-manager-installation.bin script error: damaged reomd.xml file

New Contributor

Hello,

 

Thanks for your quick reply.

 

The host is having internet access.

 

When we tried to execute below command on the same host we got the following output as below.

 

Command: wget -O- http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/repodata/repomd.xml

 

Output:

 

[hpuser@rhel-6 ~]$ wget -O- http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/repodata/repomd.xml
--2016-05-26 08:09:25-- http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/repodata/repomd.xml
Resolving proxy.sgp.hp.com... 16.153.99.11
Connecting to proxy.sgp.hp.com|16.153.99.11|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 951 [application/xml]
Saving to: âSTDOUTâ


<repomd xmlns="http://linux.duke.edu/metadata/repo">
<data type="other">
<location href="repodata/other.xml.gz"/>
<checksum type="sha">511124c50e7768aee8666fe3fb356d88984ffc52</checksum>
<timestamp>1459556016</timestamp>
<open-checksum type="sha">aef0faf53aac4530b16070aa8ee9aca59bf8eca5</open-checksum>
</data>
<data type="filelists">
<location href="repodata/filelists.xml.gz"/>
<checksum type="sha">f7b259b5255872b9dd25c983e306a6d1c294993b</checksum>
<timestamp>1459556016</timestamp>
<open-checksum type="sha">3398fe91862a39bc0a200be247962fbab737e77b</open-checksum>
</data>
<data type="primary">
<location href="repodata/primary.xml.gz"/>
<checksum type="sha">7cb6040a41aa816e1738938e5be781dc777206e0</checksum>
<timestamp>1459556016</timestamp>
<open-checksum type="sha">cfeac0464b9605008eaeefbc6ad90a4beb5240ed</open-checksum>
</data>
</repomd>
100%[===========================================================================================================================================================>] 951 --.-K/s in 0s

2016-05-26 08:09:25 (116 MB/s) - written to stdout [951/951]

[hpuser@rhel-6 ~]$

Re: cloudera-manager-installation.bin script error: damaged reomd.xml file

Super Collaborator

Seems that you're behind proxy, were you able to use the Path B as previously mentioned?

Re: cloudera-manager-installation.bin script error: damaged reomd.xml file

Explorer

We tried to install it using Path-B, but cloudera-manager-server is not starting now.

Attaching the log file output with this post.

 

 

2016-05-27 15:55:47,642 INFO main:org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider: HHH000006: Autocommit mode: true
2016-05-27 15:55:47,644 INFO main:org.springframework.beans.factory.support.DefaultListableBeanFactory: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6eb1b8de: defining beans [commandLineConfigurationBean,entityManagerFactoryBean,com.cloudera.server.cmf.TrialState,com.cloudera.server.cmf.TrialManager,com.cloudera.cmf.crypto.LicenseLoader]; root of factory hierarchy
2016-05-27 15:55:47,644 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)
        ... 42 more

 

please help.

Re: cloudera-manager-installation.bin script error: damaged reomd.xml file

Super Collaborator
Caused by: java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driver

 

Are you installing embedded db or MySql?

 

 

If it's embedded DB; t could be that you've attempted multiple times to install the embedded database packages and the older (valid) configuration for the db are overwritten. Check in the folder /etc/cloudera-scm-server/ for file names db.properties*

Then use the below you will need to test which database configuration (db.properties.*) is valid and move/rename it to the expected file /etc/cloudera-scm-server/db.properties

 

Example:

$ ls -l /etc/cloudera-scm-server/db.properties*

...

db.properties.xxxxxxx

...

$ cat /etc/cloudera-scm-server/db.properties.xxxxxxx

# Auto-generated by initialize_embedded_db.sh
#
# 20160526-043427
#
# These are database settings for CM Manager
#
com.cloudera.cmf.db.type=postgresql
com.cloudera.cmf.db.host=localhost:7432
com.cloudera.cmf.db.name=example_dbname
com.cloudera.cmf.db.user=example_user
com.cloudera.cmf.db.password=example_password

 

$ psql -Uexample_user -h localhost -p 7432 -W example_dbname

Password for user scm:example_password

scm=>\q to quit

^once prompted with scm=> you that's the db.properties you should be using.

 

#replace .xxxxxxx with the filename that you've found

$ mv /etc/cloudera-scm-server/db.properties.xxxxxxx /etc/cloudera-scm-server/db.properties

 

# restart CM Server

$ service cloudera-scm-server restart

Re: cloudera-manager-installation.bin script error: damaged reomd.xml file

New Contributor

Hello,

 

We tried configuring db.properties but was not able to connect to postgresql. Got below issue.


[cygwin@VerHad1 cloudera-scm-server]$ psql -U scm -h localhost -p 7432 -W scm
Password:
psql: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 7432?

 

We set db.properties file as below :

 

 

# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
#
# This file describes the database connection.
#

# The database type
# Currently 'mysql', 'postgresql' and 'oracle' are valid databases.
com.cloudera.cmf.db.type=postgresql

# The database host
# If a non standard port is needed, use 'hostname:port'
com.cloudera.cmf.db.host=localhost:7432

# The database name
com.cloudera.cmf.db.name=scm

# The database user
com.cloudera.cmf.db.user=scm

# The database user's password
com.cloudera.cmf.db.password=58SF2kNgEA

Re: cloudera-manager-installation.bin script error: damaged reomd.xml file

Super Collaborator

We set db.properties file as below 

I've edited my example to indicate that the credentials in the db.properties is a sample and not what you should be using ;-)

 

> Is the server running on host "localhost" and accepting TCP/IP connections on port 7432?

Can you verify the above question? 

 

 

 

Re: cloudera-manager-installation.bin script error: damaged reomd.xml file

Explorer

Hi Michalis,

 

This is what we've done so far:

 

1. we installed oracle jdk first

 

sudo yum install oracle-j2sdk1.7


2. then cloudera-manager daemons and server.

 sudo yum install cloudera-manager-daemons cloudera-manager-server

Will this install postgresql also or we've to install it manually ?

Re: cloudera-manager-installation.bin script error: damaged reomd.xml file

Super Collaborator

The embedded DB packages is

 

sudo yum install cloudera-manager-server-db-2