Git Product home page Git Product logo

Comments (11)

mthssdrbrg avatar mthssdrbrg commented on July 20, 2024

Unfortunately this cookbook does not (currently) support Chef < 11.6.0. The README states that version 11.8.2+ is needed, though I played around with a few versions earlier today and it seems to work on Chef 11.6.0+, it does however fail miserably on Chef 11.4.4 (though not with the same error as you've posted).

I suppose the OpsWorks uses plain old Chef 11.4.4 and doesn't add any patches on their own?

from kafka.

copester avatar copester commented on July 20, 2024

Curious, have you tried this with Chef 11.10 on OpsWorks?

from kafka.

mthssdrbrg avatar mthssdrbrg commented on July 20, 2024

I suppose that you're referring to @wangqi here, but I thought I'd just chime in and say that it should work perfectly fine with Chef 11.10 as the features of Chef that this cookbook uses were introduced in 11.6 (I believe).

from kafka.

copester avatar copester commented on July 20, 2024

Yes, I came across this because I'm looking at deploying on OpsWorks if possible. I see that Chef 11.10.4 passes in Travis.

from kafka.

mthssdrbrg avatar mthssdrbrg commented on July 20, 2024

Yeah. We're currently running a Kafka cluster in our staging environment using Chef 11.8, though we're not using OpsWorks, and I have no clue whether Amazon has applied any patches of their own to the Chef version used in OpsWorks, so I can't really say whether it works without a hitch or not :/.

from kafka.

wangqi avatar wangqi commented on July 20, 2024

I uploaded our customized kafka cookbook to github (https://github.com/wangqi/kafka-cookbook-with-opswork), it works with OpsWorks with 11.4. However since I cannot opensource our whole chef script system for OpsWorks, I am not sure if it runs OK when deploy as a standalone script. Hope it can help

from kafka.

mthssdrbrg avatar mthssdrbrg commented on July 20, 2024

Going through the stacktrace again I noticed that the cookbook directory is called kafka-cookbook rather than kafka, which will load the LWRPs with a difference name, as can be seen in the stacktrace:

[2014-05-24T23:40:11+00:00] DEBUG: Loading cookbook kafka-cookbook's providers from /opt/aws/opsworks/releases/20140514153150_227/site-cookbooks/kafka-cookbook/providers/download.rb
[2014-05-24T23:40:11+00:00] DEBUG: Loaded contents of /opt/aws/opsworks/releases/20140514153150_227/site-cookbooks/kafka-cookbook/providers/download.rb into a provider named kafka-cookbook_download defined in Chef::Provider::KafkaCookbookDownload
[2014-05-24T23:40:11+00:00] DEBUG: Loading cookbook kafka-cookbook's providers from /opt/aws/opsworks/releases/20140514153150_227/site-cookbooks/kafka-cookbook/providers/install.rb
[2014-05-24T23:40:11+00:00] DEBUG: Loaded contents of /opt/aws/opsworks/releases/20140514153150_227/site-cookbooks/kafka-cookbook/providers/install.rb into a provider named kafka-cookbook_install defined in Chef::Provider::KafkaCookbookInstall
[2014-05-24T23:40:11+00:00] DEBUG: Loading cookbook kafka-cookbook's resources from /opt/aws/opsworks/releases/20140514153150_227/site-cookbooks/kafka-cookbook/resources/download.rb
[2014-05-24T23:40:11+00:00] DEBUG: Loaded contents of /opt/aws/opsworks/releases/20140514153150_227/site-cookbooks/kafka-cookbook/resources/download.rb into a resource named kafka-cookbook_download defined in Chef::Resource::KafkaCookbookDownload
[2014-05-24T23:40:11+00:00] DEBUG: Loading cookbook kafka-cookbook's resources from /opt/aws/opsworks/releases/20140514153150_227/site-cookbooks/kafka-cookbook/resources/install.rb
[2014-05-24T23:40:11+00:00] DEBUG: Loaded contents of /opt/aws/opsworks/releases/20140514153150_227/site-cookbooks/kafka-cookbook/resources/install.rb into a resource named kafka-cookbook_install defined in Chef::Resource::KafkaCookbookInstall

This explains the error's that you're seeing. Though I believe that you'll see other error's if you fix the cookbook directory name, due to the usage of "template helper modules" (see https://tickets.opscode.com/browse/CHEF-4220) in this cookbook.

It should however work with Chef 11.6 and above.

from kafka.

mthssdrbrg avatar mthssdrbrg commented on July 20, 2024

Btw, the customised cookbook that you uploaded doesn't look like it's based off of this one at all, but more like it's based on the Webtrends one?

from kafka.

mthssdrbrg avatar mthssdrbrg commented on July 20, 2024

@copester: if you get any chance to try this in OpsWorks (with a Chef version > 11.4) that would be much appreciated.

from kafka.

mthssdrbrg avatar mthssdrbrg commented on July 20, 2024

Gonna close this because I don't think that this is a problem with this cookbook. If anyone else is having issues with OpsWorks (and a version of Chef that is actually supported), please open a new issue and we'll take it from there.

from kafka.

lock avatar lock commented on July 20, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from kafka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.