Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1566

Kafka environment configuration (kafka-env.sh)

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      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

        1. KAFKA-1566_2015-02-21_21:57:02.patch
          6 kB
          Sriharsha Chintalapani
        2. KAFKA-1566_2015-03-17_17:01:38.patch
          4 kB
          Sriharsha Chintalapani
        3. KAFKA-1566_2015-03-17_17:19:23.patch
          5 kB
          Sriharsha Chintalapani
        4. KAFKA-1566.patch
          4 kB
          Sriharsha Chintalapani

          Issue Links

            Activity

              People

              • Assignee:
                sriharsha Sriharsha Chintalapani
                Reporter:
                clehene Cosmin Lehene
                Reviewer:
                Gwen Shapira
              • Votes:
                2 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated: