Manually Deploying Apache Kafka Please Install Java version 8 before proceeding the Kafka installation. 1) Edit the /etc/hostname in each node. $ vi /etc/hostname kafka1 or kafka2 or kafka3 2) Check hostname. $ hostname 3) Confirm everything went right. $ sudo hostname -F /etc/hostname 4) Now edit /etc/hosts to point one node to other nodes and do the same in each node. $ nano /etc/hosts 127.0.0.1 localhost 127.0.1.1 ubuntu <IP of node1 > kafka1 <IP of node2> kafka2 <IP of node3> kafka3 # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 5) Reboot each node. 6) Download Scala and untar it in all nodes. Add following below command in .bashrc $ export SCALA_HOME=/root/scala-2.11.7 $ export PATH=$PATH:$SCALA_HOME/
TMUX Tmux is a terminal multiplexer , it creates multiple terminals on the same tab enable you to see multiple running objects on the same tab when tmux is started it creates a new session with the single window and displays it on the terminal screen. A session is a collection of terminals on single screen You can install tmux: Method 1 $ sudo apt-get install tmux Method 2 $ wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz $ tar xzvf libevent-2.1.8-stable.tar.gz $ cd libevent-2.1.8-stable $ sudo ./configure --prefix=/usr/local && make $ wget https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz $ tar xzvf tmux-2.3.tar.gz $ cd tmux-2.3 $ LDFLAGS="-L/usr/local/lib -Wl, -rpath=/usr/local/lib" && ./configure --prefix=/usr/local $ sudo make && sudo make install $ export PATH=$PATH:/usr/local/bin After the installation is finished, then type tm