Rate This Document
Findability
Accuracy
Completeness
Readability

Setting Kafka Environment Variables

  1. Open the configuration file.
    1
    vi /etc/profile
    
  2. Press i to enter the insert mode and configure environment variables for Kafka.
    1
    2
    export KAFKA_HOME=/usr/local/kafka
    export PATH=$KAFKA_HOME/bin:$PATH
    
  3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Make the environment variables take effect.
    1
    source /etc/profile