Install Kafka on Google Cloud

Поделиться
HTML-код
  • Опубликовано: 28 июн 2023
  • Hey everyone! In this video, we will install Apache Kafka on a Unix system. Here are the steps:
    1. Create a VM on Google Cloud, selecting the Ubuntu operating system.
    2. Update the package lists: `sudo apt update`
    3. Install default JDK: `sudo apt install default-jdk`
    4. Check Java version: `java -version`
    5. Install wget utility: `sudo apt install wget`
    6. Create a directory for Kafka: `mkdir youtubekafka`
    7. Navigate to the Kafka directory: `cd youtubekafka/`
    8. Download Kafka package: `wget downloads.apache.org/kafka/3....`
    9. Extract Kafka package: `tar -xvzf kafka_2.12-3.5.0.tgz`
    Next, we need to set up firewall rules to allow external devices to connect to Kafka:
    ```
    gcloud compute firewall-rules create allow-all-ports \
    --allow all \
    --source-ranges 0.0.0.0/0 \
    --target-tags kafka-youtube
    ```
    These commands will ensure that you have the necessary dependencies and download Kafka for further setup. Let's get started!
    #ApacheKafka #KafkaInstallation #BigData #Streaming #MessagingSystem

Комментарии • 2