Installing Hadoop
OS X
The simplest way to install Hadoop on OS X is via Homebrew. The instructions for installing homebrew can be found at http://brew.sh/.
Once this has been done, installing Hadoop to run in local mode is as simple as executing the following command
brew install hadoop
This will download and configure Hadoop to run in local mode.
On Windows
Hadoop includes support for Windows from version 2.2 onwards. At the time of writing, Hadoop does not release Windows binaries. You’ll need to compile from source using Maven using instructions from here: https://wiki.apache.org/hadoop/Hadoop2OnWindows.
Other platforms
If your platform's package manager does not contain a Hadoop download, head to http://hadoop.apache.org/releases.html and download the hadoop jars.
Follow instructions on at http://hadoop.apache.org for a single node setup. This will allow you to test the Hadoop code we write in this chapter.