Ambari Kafka stack override to control Kafka via Supervisord instead of standard Ambari process control mechanisms.
The stack override is also responsible to install Supervisord and deploy the Kafka supervisord service configuration to enable Supervisord to manage Kafka process.
- Ambari server (>2.4) is installed, setup and stopped
- Ambari agents are installed, configured and stopped
- Ambari agent cache is cleared i.e.
sudo rm -rf /var/lib/ambari-agent/cache/*
- Kafka is NOT installed
- Package the contents of the stack to a tarball
tar czf stack.tgz metainfo.xml package
- SCP the
stack.tgz
to your Ambari server - Unpack the stack.tgz file using
mkdir output; tar xvf stack.tgz -C output
- Now copy the contents of the folder to Ambari stacks
sudo cp output/* /var/lib/ambari-server/resources/common-services/KAFKA/0.8.1/
- Start Ambari server
sudo ambari-server start
- Start Ambari agents
sudo service ambari-agent restart
- Wait for the agents to be discovered on Ambari
- Deploy Kafka via Ambari and perform your standard configuration
- Enable Supervisord autostart, on RHEL using
sudo chkconfig supervisord on