How do you use the Cloudera Puppet Module?

asked 2016-12-16 20:56:01 -0600

Conventional gravatar image

updated 2016-12-17 02:08:02 -0600

lupin gravatar image

I have two RedHat 6.7 servers. One is a Puppet Master, and one is a Puppet Agent.

On the Puppet Master I installed two dependencies of the Cloudera module and the Cloudera Module itself. I used this link (and the links to its dependencies):

I do not want to deviate from the standard module whenever possible.

When I run the "puppet agent -t -d" command on the Puppet Agent, I get this error:

> Error: Could not retrieve the catalog
> from remote server: Error 400 on
> SERVER: Evaluation Error: Error while
> evaluating a Resource Statement,
> Evaluation Error: Error while
> evaluating a Resource Statement,
> Duplicate declaration:
> Class[Cloudera::Java5] is already
> declared; cannot redeclare at
> /etc/puppetlabs/code.../init.pp

I don't know why I received this. I am using a plain server without customizing the Cloudera module.

To work around this problem, I commented out the class of "cloudera::java5" from the init.pp file that comes with the Cloudera module on the Puppet Master server. I then ran "puppet agent -t -d" again from the Puppet Agent server.

This time I get a very similar error except it deals with a duplicate declaration of Class[Cloudera::Cm5].

What am I supposed to do to get the Cloudera module to work? Comment out many different sections of the init.pp file?

edit retag flag offensive close merge delete


Duplicate declaration means you have declare/use the same class twice somewhere in your manifest. How did you classify the node, did you use GUI console? How did you use/declare the cloudera module?

lupin gravatar imagelupin ( 2016-12-17 02:13:37 -0600 )edit

I classified the node in the GUI console. I installed the Cloudera module with this command: puppet module install razorsedge-cloudera --version 3.0.0 I also installed dependent modules using similar commands to the one above.

Conventional gravatar imageConventional ( 2016-12-18 11:41:57 -0600 )edit

Can you paste the entry of /var/lib/opt/puppetlabs/puppet/classes.txt( I'm not sure of the correct path) but you can search of it under /var.

lupin gravatar imagelupin ( 2016-12-19 11:21:36 -0600 )edit