Details
Description
It would be useful (especially for automated deployments) to have an environment configuration file that could be sourced from the launcher files (e.g. kafka-run-server.sh).
This is how this could look like kafka-env.sh
export KAFKA_JVM_PERFORMANCE_OPTS="-XX:+UseCompressedOops -XX:+DisableExplicitGC -Djava.awt.headless=true \ -XX:+UseG1GC -XX:PermSize=48m -XX:MaxPermSize=48m -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35' %>" export KAFKA_HEAP_OPTS="'-Xmx1G -Xms1G' %>" export KAFKA_LOG4J_OPTS="-Dkafka.logs.dir=/var/log/kafka"
kafka-server-start.sh
... source $base_dir/config/kafka-env.sh ...
This approach is consistent with Hadoop and HBase. However the idea here is to be able to set these values in a single place without having to edit startup scripts.
Attachments
Attachments
Issue Links
- is depended upon by
-
KAFKA-2383 kafka-env should be separated between client and server
- Open
- is duplicated by
-
KAFKA-1234 All kafka-run-class.sh to source in user config file (to set env vars like KAFKA_OPTS)
- Resolved
- links to