Post by sabbirislam258 on Feb 14, 2024 8:37:55 GMT
Creating conditions and software environment for installing Apache Kafka server The main requirements for the successful installation and operation of the Apache Kafka server are the following: Availability of a Linux server running the Ubuntu OS; A minimum of 4 Gb of computer RAM; A non-root user account with sudo rights ; OpenJDK version 11 or higher. We will use a server running Ubuntu 22.04 OS, which is usually used for VPS servers . It has 4 Gb of OP and therefore the first two requirements have been fulfilled by us. Now let's focus on fulfilling the last two requirements. Create a user with sudo rights Let's create a user named testing_kaf . To do this, type the following command in the terminal: $ sudo adduser testing_kaf Creating user testing_kaf User successfully created.
Let's add it to the user group with sudo rights : $ sudo adduser testing_kaf sudo adding a user Armenia Telemarketing Data to the sudo group Result – Adding user testing_kaf to group sudo Done (User testing_kaf is added to the sudo group) . Let's switch to the created account without leaving the system: $ su -l testing_kaf Switch to user testing_kaf So user testing_kaf with sudo rights is active. One condition is fulfilled. OpenJDK deployment The Apache Kafka program is created in the Java language and therefore requires a JVM virtual machine for its full functionality. Let's start the process of creating it in our environment. First, let's update the index of Ubuntu software packages : $ sudo apt update Update packages Let's check the Java versions available in the repository: $ java -version Java version check Let's choose version 2:1.11-72build2 and start the installation process.
Let's type the command to install the default JRE runtime in the terminal. It will install the JRE from OpenJDK 11: $ sudo apt install default-jre Installing the JRE We agree to the allocation of additional 366 Mb of disk space by entering the Y key. After that, the process of downloading packages is initiated. JRE installation process JRE installation process Let's check the correctness of the JRE installation using the following command: $ java -version Checking the correctness of the installation So the JRE is installed. Now let's install the Java Development Kit (JDK), which is required to compile and run certain types of Java-based applications. To do this, enter in the terminal: $ sudo apt install default-jdk Installing the JDK JDK installation process The installation is complete.
Let's add it to the user group with sudo rights : $ sudo adduser testing_kaf sudo adding a user Armenia Telemarketing Data to the sudo group Result – Adding user testing_kaf to group sudo Done (User testing_kaf is added to the sudo group) . Let's switch to the created account without leaving the system: $ su -l testing_kaf Switch to user testing_kaf So user testing_kaf with sudo rights is active. One condition is fulfilled. OpenJDK deployment The Apache Kafka program is created in the Java language and therefore requires a JVM virtual machine for its full functionality. Let's start the process of creating it in our environment. First, let's update the index of Ubuntu software packages : $ sudo apt update Update packages Let's check the Java versions available in the repository: $ java -version Java version check Let's choose version 2:1.11-72build2 and start the installation process.
Let's type the command to install the default JRE runtime in the terminal. It will install the JRE from OpenJDK 11: $ sudo apt install default-jre Installing the JRE We agree to the allocation of additional 366 Mb of disk space by entering the Y key. After that, the process of downloading packages is initiated. JRE installation process JRE installation process Let's check the correctness of the JRE installation using the following command: $ java -version Checking the correctness of the installation So the JRE is installed. Now let's install the Java Development Kit (JDK), which is required to compile and run certain types of Java-based applications. To do this, enter in the terminal: $ sudo apt install default-jdk Installing the JDK JDK installation process The installation is complete.