![]() |
Apache Hadoop is a strong framework based on open sources that is capable of implementation of distributed storage and processing of massive data volumes across a system made up of a network of computers. It is the favoured technology for the big data steel Industry, that is, its scalability, reliability, and fault-protecting characteristics are superior. Let’s take you through the Hadoop installation process on a Mac OS computer using this guide. Table of Content Installation PrerequisitesBefore we proceed, ensure that the necessary conditions below are met on your macOS system: 1. Java Development Kit (JDK): Hadoop is written in Java and therefore needs it to function. Ensure that you have the JDK 8 or higher packed and ready for installation on your computer. You can get JDK either using a website Oracle (as an option) or a HomeBrew project, as brew installs OpenJDK. 2. SSH: Hadoop SSH communication is tied to Hadoop’s ability to transmit data between different nodes in the cluster. macOS usually comes with SSH installed by default, however, to enable the feature you will need to navigate to System Preferences -> Sharing -> Remote Login. 3. Homebrew: Homebrew, the package manager for macOS, lists software components in their preferred software location. With Homebrew not being installed, use the following command on your shell. ![]() Homebrew Package 4. the Environment Setup: Make sure that the environment variable is correctly set up. This responsibility can be taken up by editing the ~/.bash_profile or ~/.zshrc file and adding in the mentioned lines. ![]() Setting Up The Environment
How to Install Hadoop on Mac?Apache Hadoop is a strong framework based on open sources and we need to follow the below-mentioned easy steps to download it properly on MacOS. Step 1: Downloading HadoopYou can download the latest stable version of Hadoop from the Apache Hadoop website. Select the one that fits your requirements and download the tarball (tar.gz) from the server to your machine. Then, download the files, then extract the file into any of the directories that you wish. For example ![]() Extracting Tarball files Step 2: ConfigurationNavigate to the Hadoop configuration directory (in $HADOOP_HOME/etc/Hadoop) and modify the given configuration as indicated below. a. core-site.xml: ![]() Hadoop Configuration b. hdfs-site.xml: ![]() Hadoop Configuration c. mapred-site.xml (if it doesn’t exist, create it): ![]() mapred-site.xml d. yarn-site.xml: ![]() yarn-site.xml Step 3: Formatting HDFSThe prerequisite for starting Hadoop services is formatting the disk HDFS (Hadoop Distributed File System) by the end of it. Run the following command ![]() Formatting HDFS Step 4: Start Hadoop Services.Launch Hadoop services by executing the commands mentioned below. a. Start HDFS:![]() Starting HDFS b. Start YARN:![]() Start YARN Step 5: Verify InstallationHadoop is a program that you can check its correct running by viewing the Hadoop web interface. Open your web browser and go to http://localhost:9876 for the HDFS NameNode interface and http://localhost:6060 for the YARN ResourceManager Interface. ![]() Output of Hadoop running on MacOs ConclusionCongratulations! You have successfully installed Apache Hadoop on macOS. You can now move on to the full spectrum of possibilities afforded by Hadoop and start investigating its role in distributed data processing and analysis. Keep in mind that the official Hadoop documentation can be of help to those interested in more advanced configurations and more complex deployments. Also Read
Install Hadoop on Mac – FAQsCan I install Hadoop on macOS without using Homebrew?
Do I need to set up a multi-node cluster for Hadoop on macOS?
What is the purpose of formatting HDFS during Hadoop installation?
How can I change the replication factor for HDFS on macOS?
Is it necessary to set up environment variables for Hadoop on macOS?
|
Reffered: https://www.geeksforgeeks.org
Installation Guide |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 16 |