Do not search it in the app storeI know that some of you searched for Hadoop in the app store :P .. It ain't there yet, too bad isn't it? And, its not as easy as "sudo apt-get install hadoop" :)
But do not worry, its not as difficult either. Its much like installing Apache Hadoop in linux distributions. All it takes is a few simple baby steps to install the elephant in your mac.
This tutorial will guide you to install hadoop ina pseudo-distributed mode in your mac.
Step1: Passwordless ssh.
Try ssh-ing your own machine
$ ssh localhost
Without passwordless ssh, you will need to enter your password to login into your own system through ssh. To so
the command will ask for the location of the id_rsa and the id_rsa.pub keys. Press enter to accept the default location.
The command will ask for the passphrase. Just press enter to not have any password at all (afterall, we are trying to achieve passwordless-ssh)
The command sometimes ends with a wierd random art of the key like this.
+--[ RSA 2048]----+
| . ..=|
| P .. . O |
| . . .o |
| . F.. .|
| +.o.o |
| o O=+ |
or just a cryptic fingerprint like this a2:b1:5e:6f:2a:a2:d7:3f:d1:e5:5a:aa:ab:c5:e8:2a
But yea, don't get scared. you do not have to remember them :P
now go to your home directory and copy the pub file to authorized_keys.
$ cd /Users/rajgopalv
$ cd .ssh
$ cp id_*.pub authorized_keys
$ ssh localhost
some times, when you login for a first time to the host, you will be asked with a security warning of some kind...
just type "yes" and continue. The system should not ask a password, and you should be able to login successfully.
Step-2 : Download the CDH4 tarballs.
The Hadoop and its family of softwares are available in tarball format in here : https://ccp.cloudera.com/display/SUPPORT/CDH4+Downloadable+Tarballs
Go ahead and download the stuff you want.
But to begin with, let me start with downloading the "hadoop-2.0.0+922" tarball. If you want to run mapreduce version1 (i.e. nmot Yarn, ) then download the "hadoop-0.20-mapreduce-0.20.2+1341" tar ball too (recomended)
Now, unzip these tarballs and place them wherever you wnat them to get installed. I personally prefer a "Softwares" folder in my home directory.
$ ls -ld hadoop*
drwxr-xr-x@ 14 rajgopalv 1668562246 476 Feb 7 07:00 hadoop-2.0.0-cdh4.1.3
<!-- ofcourse you can use any directory you want. -->
Similarly, configure the map-reduce too. Go to hadoop-2.0.0-mr1-cdh4.1.3/conf/ directory and edit the mapred-site.xml to look like this.
The important thing to notice is "Exiting with status 0". Status 0 indicates all is well. :)
Now start the DFS.
To start the mapreduce module., go to hadoop-2.0.0-mr1-cdh4.1.3 directory in your terminal.
$ cd /Users/rvaithiyanathan/Softwares/hadoop-2.0.0-mr1-cdh4.1.3
now, http://localhost:50030/jobtracker.jsp should show your mapreduce jobs.
Bravo! you are good to go.