-
-
Notifications
You must be signed in to change notification settings - Fork 105
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 to run with chef-client zero (-z, local mode, or solo) #68
Comments
Chef uses the name of the directory when "creating" LWRPs, so in this case the directory is named Let me know whether this solves the issue for you. |
Thanks, it helps get the ball rolling, then it
And I get a nice extracted deployment, but attributes doesn't seem to have any effect. I run
|
Use the |
@PAStheLoD: did that solve your issue? |
Yes, thanks, now I'm trying to use attributes, but so far I haven't been able to figure it out completely, and the cookbook seems to assume RedHat style layout, because it fails with the following:
So I see that somehow I should tweak init_opts ( |
Hm, I was under the assumption that |
Debian 7 For systemd the /etc/systemd is the generic directory. |
It appears as if |
Debian uses /etc/default/. Also, I'd link kafka.service into multi-user.wants target. And, it seems that if I modify scala_version, nothing happens. (So, maybe I should be asking how to force a reinstall? [I'm using current master.]) Anyway, with your tremendous help I've finally managed to reach the end of the cookbook. |
Hm, alright, maybe I should do the same kind of To force a reinstall simply remove I'll look into |
I just merged a branch with some systemd-related fixes, would be great if you could take it for a spin. |
Okay, master is now at 5cd3511. Removing
I guess the Also, I have set scala version to 2.10.1, so seeing 2.9.2 is a bit strange :) |
Ah, so I'm not sure why it's using |
The |
Still using zero/solo, attr.json:
And solo.rb:
In /var/chef/cookbooks there is only attr.json and solo.rb, I just call it as So, now I get the error message about systemd's system/ directory being in the wrong place:
It's in /lib/systemd/system. Strange. The "official" page on unit load paths mentions the one you use in the code, man page recommends using Currently on Debian Jessie
|
Sigh, guess I'll revert the commit that change the path for the unit file. It's kinda funny though, I was under the impression that |
16a5f0c should be good to go, give it a spin whenever you get the chance. |
Well, it's supposed to be universal, and you could go with whatever path you feel like, just And it's working! Sort of. Because I can't figure out how to write a JSON Attributes file to override the defaults. Could you help me out with that? |
Yeah, that's true, guess I sort of expected paths to be universal as well :). Being able to use a single unit file is definitely nice though.
{
"java": {
"jdk_version": 7
},
"kafka": {
"broker": {
"controlled_shutdown_enable": null,
"log_dirs": [
"/mnt/kafka-logs-1",
"/mnt/kafka-logs-2"
],
"zookeeper_connect": [
"localhost:2181"
],
"zookeeper_connection_timeout_ms": 15000
},
"checksum": "",
"md5_checksum": "",
"scala_version": "2.10",
"ulimit_file": 128000,
"version": "0.8.1.1"
},
"run_list": [
"recipe[apt]",
"recipe[java::default]",
"recipe[kafka::default]"
]
} The only thing I can think of is that |
Thanks, the Everything works as intended, so I'm closing this. |
Cool, I'm glad that it worked out alright. |
Oh, sorry for my lack of thoroughness, but I just noticed that the systemd service file refers to /etc/sysconfig/kafka even on Debian. Do you plan to handle distribution specific differences? |
I've run But I just did a run and:
Anyway, I've found that with systemd setting rlimits are quite easy, and kafka needs quite a lot of them, so could you also add:
|
Oh, wow, just realized that the systemd service template hardcodes |
Latest master contains fixes for the two things that you mentioned, let me know if you find something else that should be fixed. |
Currentely I don't have other kafka nodes to install, sorry :) |
Alright, then I'll close this again as the integration tests passed :) |
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. |
Hello,
Could you help me with this? I've tried to run it through bundler, and did bekshelf install too.
I want to clone this onto a server (or preferably not) and issue a few one liners to get the dependencies (on both sides) and have a running kafka 20 minutes later.
Thanks!
The text was updated successfully, but these errors were encountered: