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

Kafka environment configuration (kafka-env.sh)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • tools

    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-03-17_17:19:23.patch
          5 kB
          Harsha
        2. KAFKA-1566_2015-03-17_17:01:38.patch
          4 kB
          Harsha
        3. KAFKA-1566_2015-02-21_21:57:02.patch
          6 kB
          Harsha
        4. KAFKA-1566.patch
          4 kB
          Harsha

        Issue Links

          Activity

            People

              sriharsha Harsha
              clehene Cosmin Lehene
              Gwen Shapira Gwen Shapira
              Votes:
              3 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated: