You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Alex Gray (JIRA)" <ji...@apache.org> on 2014/01/31 22:42:11 UTC
[jira] [Created] (KAFKA-1234) All kafka-run-class.sh to source in
user config file (to set env vars like KAFKA_OPTS)
Alex Gray created KAFKA-1234:
--------------------------------
Summary: All kafka-run-class.sh to source in user config file (to set env vars like KAFKA_OPTS)
Key: KAFKA-1234
URL: https://issues.apache.org/jira/browse/KAFKA-1234
Project: Kafka
Issue Type: Improvement
Components: config
Affects Versions: 0.8.0
Reporter: Alex Gray
Priority: Trivial
We are using the distributed version of kafka:
http://apache.mirrors.lucidnetworks.net/kafka/0.8.0/kafka_2.8.0-0.8.0.tar.gz
And we would like to set some environment variables, particularly KAFKA_OPTS when the kafka service starts.
In other words, when someone does a "sudo service kafka start" we would like to set some environment variables.
We cannot do this *without* modifying either /etc/init.d/kafka or bin/kafka-run-class.sh, and we don't want to modify files that we don't own.
The solution is to have kafka source in a user specific file that may have these environment variables set.
I'm attaching the patch file to show you what I mean.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)