Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you use the Cloudera Puppet Module (to get around a 400 error re: "Class)? #40

Open
Kiran57 opened this issue Dec 20, 2016 · 0 comments
Assignees

Comments

@Kiran57
Copy link

Kiran57 commented Dec 20, 2016

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): https://forge.puppet.com/razorsedge/cloudera

I do not want to deviate from the standard module whenever possible. I was having errors so I commented out offending stanzas from the different manifests that came with the module. There were many "duplicate declaration" errors. I do not know if commenting out those stanzas will later present a problem. But it seems to have helped.

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

Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error; Error while evaluating a Resource Statement, Evaluation Error: Illegal Resource Type expression, expected result to be a type name, or untitled Resource, got Type[Class] at /etc/puppetlabs/code/environments/production /modules/cloudera/manifests/cdh.pp:64:3 on node FQDNofPuppetAgent

Here are the relevant lines of cdh.pp (on the Puppet Master):

64  Class {
65    require => Anchor['cloudera::cdh::begin'],
66    require => Anchro['cloudera::cdh::end'],
67  }

I tried giving the Class a name before and after the opening brace. Neither of those things worked. I tried changing "Class" to "class". But that did not work. How do I get around this error? I want the puppet manifest to apply. I think the "puppet agent -t -d" should work.

@razorsedge razorsedge self-assigned this Aug 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants