Installation Guide for Mac
1. Installation Guide for Mac
This guide supplies step-by-step instructions for installing the required tools for the course.
Note: If you haven't done so already, create a GitHub account.
2. Terminal
Because you’re using a Mac, you already have access to Terminal! To open it, follow these steps:
-
Press Command and the space bar to open Spotlight Search, shown in the following image:
-
Type "terminal" in the search box, then press Enter, as shown in the following image:
-
Select Terminal from the list of search results—when it opens, it will resemble the following image:
3. Xcode
To install Xcode, follow these instructions:
-
Open the Mac App Store and search for Xcode, as shown in the following image:
-
Download and install Xcode. When the installation completes, open the program.
-
Agree to the terms of service.
-
You'll know that the installation is complete when the "Welcome to Xcode" window appears, as shown in the following image:
4. Java Development Kit (OpenJDK)
-
Navigate to the Adoptium JDK webpage.
-
Select "Temurin 8 (LTS)" from the list.
-
Select "Latest release".
-
Run the installation file.
-
Click Continue to move through the installation process.
-
On the final Summary page, click Finish.
-
Check that the installation was successful by opening Terminal and entering the command
java -version
.
5. IntelliJ IDEA
-
Navigate to the Intellij IDEA downloads page.
-
Download the Community edition.
-
When the download completes, run the disk image file.
-
In the Finder window that appears, drag the IntelliJ IDEA CE icon into your Applications folder.
-
Find IntelliJ in either Launchpad or your Applications folder, then open it.
-
When you receive a prompt to open a third-party app downloaded from the internet, select Open.
-
Choose whether or not to send usage statistics.
-
After a successful installation, eject the install drive and delete the IntelliJ IDEA disk image from your downloads.
6. Homebrew
-
Navigate to the Homebrew webpage. Copy the script listed under Install Homebrew, as shown in the following image:
-
Paste the script into your Terminal window and press Enter, as shown in the following image:
That's it!
7. MySQL
-
Once you've installed Homebrew, install MySQL Server using the command
brew install mysql
. -
The server is set up without a default root password. You can connect to it using the command
mysql -uroot
.
Important: You should change the root password after you install MySQL Server. You can do this using the command
mysql_secure_installation
.
8. Docker
-
Navigate to the Docker Desktop on Mac installation page.
-
Select the "Mac with Intel Chip" or the "Mac with Apple Chip" button, depending on the microprocessor in your computer. The
Docker.dmg
file will then download.Important: First check the OS version to ensure that a compatible version will download.
-
Double-click the
Docker.dmg
file to start the installation process. Remember to drag the Docker icon into theApplications
folder.
9. Docker Images
-
Open Terminal.
-
Pull the Cassandra Docker image by using the following command:
docker pull cassandra:latest
-
Pull the MySQL Docker image by using the following command:
docker pull mysql:latest
-
Run the following command:
docker run -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 --name mysql_local mysql:latest
10. DBeaver
-
Run the command
brew install --cask dbeaver-community
. -
If there are no errors, you are ready to use DBeaver!
11. Connect MySQL to DBeaver
-
Open the DBeaver desktop app.
-
Select the Database menu in the top menu bar, then click New Database Connection.
-
Select MySQL and click Next.
-
Enter your "root" as the username and "password" as the password, then click "Test Connection".
-
Click on the Driver Properties tab.
-
Find "allowPublicKeyRetrieval" and change the value to "true".
-
Click Test Connection.
-
Click Download.
-
When the test is successful, click Finish.
12. Create Cassandra Driver
Note: Before creating the Cassandra driver for DBeaver, spin up an instance of Cassandra by opening Terminal and entering the following command:
docker run -p 9042:9042 --name cass_cluster cassandra:latest
-
Download the Simba JDBC driver from DataStax.
Note: Make sure you select "Simba JDBC Driver for Apache Cassandra" from the dropdown.
-
Unzip the file to a folder you will remember.
-
Open DBeaver.
-
Open the Database menu from the top menu bar, then click Driver Manager.
-
Click New.
-
In the window that opens, fill in the boxes as follows:
-
Driver Name:
Cassandra
-
Driver Type:
Generic
-
Class Name:
com.simba.cassandra.jdbc42.Driver
-
URL Template:
jdbc:cassandra://{host}[:{port}];AuthMech=1
-
Default Port:
9042
Refer to the following image for an example:
-
-
Click on the Libraries tab at the top of the Create New Driver window.
-
Click Add File.
-
Navigate to the file you unzipped in Step 2, select the "CassandraJDBC42" file, and click Open.
-
Click OK.
13. Connect Cassandra to DBeaver
-
Open the DBeaver desktop app.
-
Select the Database menu in the top menu bar, then click New Database Connection.
-
Select Cassandra and click Next.
-
Enter "cassandra" as both the username and password.
-
Click Test Connection.
-
Follow the prompts to download missing components.
-
When the test is successful, click Finish.
14. Insomnia
-
Navigate to the Insomnia download page.
-
Click the Download button.
-
When the download is complete, open the file to bring up the installation prompt.
-
Drag the Insomnia icon into the
Applications
folder.
15. You're Done
That's all for the installations! Your computer has everything that you'll need to begin on the first day of class.