Install Homebrew On Mac Catalina

Homebrew is an open-source package manager for macOS that offers an easy way to install software and tolls through the command line. If you are a coder, developer, Terminal lover, or more tech-savvy than an average Mac user, you can use Homebrew to simplify software installation on your Mac. How to install GCC 9.2 on macOS Catalina.If you need to install the Command Line Tools or Homebrew check my previous video tutorial:https://youtu.be/hOx4jwjl0Y.

Setting Up A Database

Install kafka in macos catalina using brew Published Mon, Feb 10, 2020 by DSK if you do not have brew installed on your mac, Install homebrew on your mac by running the following command on your Terminal. 2.4 On macOS 10.5 Catalina or later, the default shell is zsh. Where does Homebrew install packages on Mac; Tags: brew environment variable install mac maven.

We're going to install sqlite3 from homebrew because we can't use the built-in version with macOS Sierra without running into some troubles.

Rails ships with sqlite3 as the default database. Chances are you won't want to use it because it's stored as a simple file on disk. You'll probably want something more robust like MySQL or PostgreSQL.

There is a lot of documentation on both, so you can just pick one that seems like you'll be more comfortable with.

If you're new to Ruby on Rails or databases in general, I strongly recommend setting up PostgreSQL.

If you're coming from PHP, you may already be familiar with MySQL.

MySQL

Catalina

You can install MySQL server and client from Homebrew:

Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them:

By default the mysql user is root with no password.

When you're finished, you can skip to the Final Steps.

PostgreSQL

You can install PostgreSQL server and client from Homebrew:

Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them:

Catalina

By default the postgresql user is your current OS X username with no password. For example, my OS X user is named chris so I can login to postgresql with that username.

Install Homebrew On Mac Catalina

if you do not have brew installed on your mac, Install homebrew on your mac by running the following command on your Terminal.

Install kafka in MacOS Catalina

First install openjdk 8 using brew cask and then install kakfa.

When the installation completes, It will show you something like below

Install Homebrew On Mac Catalina Operating System

Start zookeeper & kafka as a service

Stop zookeeper & kafka service

If you do not want to run kafka & zookeeper as a service use below commands

If you face any error in starting kafka, you will have configure listeners in /usr/local/etc/kafka/server.properties config file,

uncomment and change the values like below

Check if kafka is functioning properly

Create test topic

Install Homebrew On Mac Catalina 2020

Start kafka consumer console
Start kafka producer console

Unable To Install Homebrew On Mac Catalina

Once the producer starts enter any message and press enter.