How to setup Hadoop in Mac OS
Follow below steps to install Hadoop on your Mac.
Step 2- Set up java in your system.
Step 3- Open terminal and go to the path where you have downloaded hadoop.
Step 4- Type the below command which will extract the file. The file which you just extracted will be your hadoop home location.
Step 5- Once you extracted the file with the above command, type: cd vi .bashrc
Step 6- vi .bashrc will open a text editor in terminal itself. Here you need to set-up Java and HDFS path. In order to setup the path in text editor you need to press i on terminal window. It will enable you to edit in the text editor.
Step 7- Provide both JAVA and HDFS path as shown below.
Step 8- Now save the file. So, go to the terminal and
1. press Esc
2. press :
3. type wq and press enter.
wq stands for write and quit. It will save the file.
Step 9- Go to the hadoop home location where you extracted file in terminal and go to conf directory and edit hadoop-env.sh.
cd /users/NITISH/Downloads/hadoop-1.0.3/conf
vi hadoop-env.sh
Step 10- Here again text editor will be displayed. You need to provide Java path as shown below.
Save the file using wq as shown in step 8.
Step 11- Now we will configure the three HDFS configuration file.
- core-site.xml
- mapred-site.xml
- hdfs-site.xml
Step 12- There is one-time command which you need run from the hadoop home as shown below. It will format the name node.
Step 13- You can now start the hadoop by typing below command. Enter your system password to proceed further.
Step 14- Enter below command to check hadoop set-up. If the below 6 node are running then the hadoop set up is successful :)
Post a Comment
Post a Comment
Thanks for your comment !
I will review your this and will respond you as soon as possible.