forked from tomdz/kafka-deb-packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Kafka Packaging rework 2 #1
Open
jeff-papertrail
wants to merge
5
commits into
master
Choose a base branch
from
jeff/pkging-rework-part-deux
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4957ae1
Rearrange init scripts and add systemd service
jeff-papertrail eee7f73
Actually commit the re-arranged init files
jeff-papertrail 2bea843
And patch the kafka-server-start.sh script to touch a pidfile before …
jeff-papertrail d4b46f1
Bump version
jeff-papertrail 71c8efd
tyop.
jeff-papertrail File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- usr/lib/kafka/bin/kafka-server-start.sh 2016-12-15 10:04:05.000000000 -0800 | ||
+++ usr/lib/kafka/bin/kafka-server-start.sh.new 2017-10-31 22:44:04.692890284 -0700 | ||
@@ -41,4 +41,6 @@ | ||
;; | ||
esac | ||
|
||
+echo $$ > ${KAFKA_PID_FILE:-/run/kafka/kafka.pid} | ||
+ | ||
exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=Apache Kafka server (broker) | ||
Documentation=http://kafka.apache.org/documentation.html | ||
Requires=network.target remote-fs.target | ||
After=network.target remote-fs.target | ||
|
||
[Service] | ||
Type=simple | ||
User=kafka | ||
Group=kafka | ||
RuntimeDirectory=kafka | ||
PIDFile=/run/kafka/kafka10-pt.pid | ||
Environment=KAFKA_HOME=/usr/lib/kafka CONFIG_HOME=/etc/kafka | ||
ExecStart=/usr/lib/kafka/bin/kafka-server-start.sh /etc/kafka/server.properties | ||
ExecStop=/usr/lib/kafka/bin/kafka-server-stop.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the ZK systemd script, I ended up adding this:
so it'll get restarted if it crashes. I think we're doing that now with |
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Posting this here so I remember to ask but it's prob a salt thing... Is Kafka logging working okay for prod? I know there were issues in staging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't actually know. I didn't remember any clear complaints. :-/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah, it's potentially confusing. So I do see something in: https://staging.papertrailapp.com/groups/1/events?q=host%3Akafka%20-program%3A(cron%20rsyslog%20dhclient%20systemd%20snapteld%20clear-aoagent%20salt-minion) but I'm guessing that's not all of it as I can't seem to track down where the logs specified in
log4j.properties
are going:I assumed
kafka.logs.dir
=/var/log/kafka
, but that's empty. If we can find out where it lives, we can monitor them withremote_syslog2
or send them into syslog and rsyslog will forward 'em over.Having said all that, perhaps there's just nothing to log and so no files existing is normal?