Apache Kafka installation on window
Educational Video for Apache Kafka how to install kafka in window system? Apache Kafka installation in Window 1. JAVA 8 required Go to command promote and check java verison java -version 2. Download Apache Kafka https://kafka.apache.org/downloads a. After download , extract the file b. You can see two folder Kafka zookeeper c. copy the kafka folder to C directory d. open kafka directory in command promote e. execute command - 'bin\windows\kafka-topics.bat' f. Use 'kafka-' command to view all the Kafka commands. 3. Set Envirnonment variable for KAFKA if we wish to use the commands from anywhere, it is required to set the path of Kafka. Verify once above step done ANY-LOCATION -- kafka-topics.bat 4. Installing Zookeeper Apache Kafka is unable to run without installing the zookeeper. Therefore, to work with Kafka, the user need to start the zookeeper on the system. a. Go to the Kafka directory and create a new folder as 'data' b. Open the newly created data folder and create two more folders under it. Name the folders as 'zookeeper' and 'kafka'. c. Now, copy the address of the zookeeper folder. After copying, go back to the Kafka directory. d. Go to config folder under the Kafka directory e. Open the config folder and go to the zookeeper.properties file. Right-click on the file and click on 'Edit with Notepad++' f. Edit the value of 'datadir' by pasting the zookeeper folder address. Save it. This address will be used for clients to get connected. g. The Zookeeper server is ready to start. Open the command prompt and go to the Kafka directory. Then, type the command: 'zookeeper-server-start.bat C:\software\kafka_2.12-2.8.0\config\zookeeper.properties'. Press enter. h. zookeeper server is successfully started. In the output screen, a port number 2181 is shown which tells the successful zookeeper server startup. g. Open data--zookeeper. A new folder, 'version-2' will be created automatically. If not so, something went wrong. i. As the zookeeper server is started, go to the kafka directory--data--kafka. Copy the address of the kafka folder. j. Move back to the Kafka directory--config--server.properties k. Right-click and click "Edit with Notepad++'. l. paste the copied address of the kafka folder as a value of log.dirs m. Open the command prompt and move to the Kafka directory. Type the command: 'kafka-server-start.bat C:\software\kafka_2.12-2.8.0\config\server.properties' n. Kafka started ..message come and Open the Kafka directory--data--kafka. Here, the user will find some files, which will be generated on the successful startup of the Kafka server. So, in this way, the Kafka server can be installed on the Windows operating system
Download
0 formatsNo download links available.