Giter Club home page Giter Club logo

Comments (7)

jakedavis avatar jakedavis commented on July 18, 2024

Hey @aarondodd, sincere apologies for never digging into this. CentOS support is hard to come by for us; we're a strictly Ubuntu shop. However, I'm working on a massive refactor of this cookbook and want to at least try to support CentOS as well. If you can hang on for a short bit, I think we'll get there.

from zookeeper-cookbook.

synhershko avatar synhershko commented on July 18, 2024

I can confirm OpsWorks has hard time working with this cookbook as well when running on Amazon Linux. Will be happy to see this resolved!

from zookeeper-cookbook.

jakedavis avatar jakedavis commented on July 18, 2024

Hey @synhershko, so this cookbook has changed quite a lot the past couple months. Do you mind if I ask what version of the cookbook you're on?

from zookeeper-cookbook.

synhershko avatar synhershko commented on July 18, 2024

Directly from the master branch...

from zookeeper-cookbook.

jakedavis avatar jakedavis commented on July 18, 2024

Okay, can you provide a stacktrace, test conditions, any debugging information, etc? My comment above has mostly been accomplished, so things which aren't working at this point are likely bugs and we'll probably have to go out of our way to fix 'em up. Thanks!

from zookeeper-cookbook.

synhershko avatar synhershko commented on July 18, 2024

Let me retract my comment - it seems to be working fine now. It probably required some more patience on my end.

from zookeeper-cookbook.

zanzan42 avatar zanzan42 commented on July 18, 2024

I'm still having issues with zookeeper starting when the zookeeper::service recipe is run under OpsWorks with the upstart provider set. The command which the recipe runs is /sbin/start zookeeper, and that fails. Running that manually returns a no such job found error.

Using the runit provider starts the service, but then I get issues with the leader election process because it doesn't seem to have listeners at 2888/3888 for the quorum stuff.

Looks like this recipe doesn't include functionality related to zookeeper clustering, in general. I had to do a supplemental recipe to lay down the myid file, for instance.

More info: Amazon linux uses upstart by default, but initially I kept getting errors when trying to use initctl to manage starting the service. Your recipe is writing zookeeper.conf into /etc/init, but /var/log/messages showed that upstart didn't like either your limit or console stanzas in the conf file.

Commenting out those stanzas made zookeeper show up in initctl list, but the service still failed to start properly, respawning several times and then stopping due to the default respawn limits on init.

Interestingly, rewriting the limit nofile 8192 8192 line in the conf file didn't throw the same stanza error. On the off chance that there was some issue in the file template (like a bad carriage return or some other invisible character), I went through the installed file line by line with vi and redid all the carriage returns.

The contents of the installed file no longer throws a stanza error, and initctl sees that the zookeeper job exists, but initctl start zookeeper still goes through a fast respawn process and then stops. So something is still not right.

from zookeeper-cookbook.

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.