Installing Hadoop on Pseudo Distributed Mode
723 views
Nov 18, 2024
Installing Hadoop on Pseudo Distributed Mode
View Video Transcript
0:00
In this video we are discussing setup Hadoop on pseudo distributed mode
0:06
So how to do this setup. So there are certain steps that we'll be discussing all these steps one by one for your
0:14
better understanding. So let us start the installation process. Installing Hadoop in pseudo distributed mode to set up Hadoop for pseudo distributed mode set up
0:24
the following XML files located in this folder. You see this is a path is there
0:29
and this is a folder under this particular folder where having these three files are there
0:34
multiple xml files are there but we are concentrating only on these three files and each an eb
0:40
file where we'll be putting some set of xml so first one is the core hyphen site dot xml
0:47
sdfs hyphen site dot XML and map rate hyphen site dot xml so three xml files are there and they
0:55
require some update so set up code 5.6. That was the first in our list. We are going to update that one. So, open core
1:06
hyphen site.coml from the given path. You see, we had this path and this is the respective
1:11
file name here, and put the following lines in the XML files. So, you can open this file
1:17
It is a text file. You can open it using G-Edit and then put this files, put this lines
1:22
onto the respective file. Next was HDFS-S-site. which will be found in this respective folder
1:32
And this is the code's, XML codes are to be written into the file
1:37
So, open the file using G-Edit or any other text editor and put this XML code there
1:45
And the last one, there is a MapPread hyphen site. .xml. It will be found in this respective folder
1:51
And if the file is not present, copy the MapPret site dot XML
1:59
So, this is a file will be there. So, there is a MapPrette, hyphen, site
2:04
XML dot template file and rename the copied file with the Maprate hyphen site
2:10
So, if the file is not directly there, you will be having one template file
2:14
So just make a copy of that and rename it to this name and put the following lines which are written in XML to the file itself
2:24
Open the Haduf-env-env. dot SH from the given path. So, this is the path from where you are supposed to open this shell
2:33
program. The shell program is there and export the Java underscore home environment variable
2:39
in that file. So, how to do that one? Put the following lines there. There is an export
2:45
Java-hifen home. There is a underscore here. Export Java underscore home is equal to slash
2:52
user slash local slash jdk 1.8.0 underscore 171. So, just see your path in my system
3:02
the path was like this, whatever I followed the steps. My path was this. But if you're
3:06
having some different version of Java, then obviously the respective export, the string
3:12
will be also changed. So, export Java underscore home is equal to. So this line has to be put
3:18
in the respective file. There is a Hadoop hyphen env. So, I think it is better. Let us go for one demonstration to show you that how the steps
3:29
are to be carried out and what are the different ways to do that one for your better understanding
3:35
So here is the demonstration for you. So in this video, we are going to discuss how to install Hadoop version 2.4.1
3:45
So before installing Hadoop version 2.4.1, we are going to install SSAH and R-Sink
3:51
so what is ss h is nothing but secure shell is it is a secure shell and it is a
3:59
cryptographic network protocol for operating network services over an unsecured network and that is
4:06
the purpose of ss now what is our sync so our sync is nothing but is a utility for efficiently
4:13
transferring and synchronizing synchronizing files across computer systems by checking the timestamp
4:21
and the size of the file and this R-sync is having the full form that is a remote
4:26
sync and here also we going for the setup for SSH without pass phrase now actually this pass phrase is actually this concept is required for the additional security here So to install SSH the command is pseudo APT hyphen get install SSH to install R sync the command is pseudo APT hyphen get install R sync So we be issuing these commands in the terminal prompt and set up for SSH without pass phrase is the command will be SSAH
5:00
hyphen key jen hyphen t r s a and while installing this we'll be pressing enter for three times
5:07
to ignore the next stages so let us go for the demonstration that how we are doing going to do this one
5:14
so at first we are going to install this hardu version 2.4.1 highlighting this one and now we are going
5:20
for the first command that is a installation of s-sh going to the terminal clearing it up
5:26
so now here we're issuing the command pressing enter the command is getting
5:32
executed yes installation has been done yes the installation is still in
5:45
process and it has been done successfully now we are going to copy this pseudo
5:50
APT hyphen get install R sync so this is a command we are going to issue now so
5:56
we are doing the copy and then coming to this paste and the command prompt has been
6:02
obtained now we shall we are going for SSH without pass phrase so copying this
6:08
command here and you shall press three times enter you can find that and here
6:12
we are pressing enter three times you can find that we have entered three times
6:18
and here we have got we have got back the prompt so that means the instruction has
6:22
been done successfully now here we are copying this particular file and actually we're concatenating it at the end of the file that is the slash
6:33
dot ssh slash authorized underscore keys so the left-and-side file will be copied at the end of this
6:42
right-and-side file if the file on the right-hand side does not exist then the file will be created
6:46
and the new content will be pasted there so this is a command we are going to issue now so
6:50
let us go for this copy and issue this command so comment has been issued you can find that
6:55
now we shall come back we shall issue the command that is our SSH local host so going
7:02
for this marking SSH local host we shall go for yes pressing enter so the
7:11
prompt has been obtained now here we're having some steps are there so we'll
7:19
be here downloading this Hadoop version 2.4.1 from the link as it has been given it
7:25
we shall do the copy and paste onto the URL box so let us go for that operation and the
7:31
Hadoop will get installed on our system copying this URL then opening the browser
7:38
and go for paste and go now you are going to select the 132 mb file that is the Hadoop 2.4.1
7:48
dot tardt going for save the file is getting downloaded on our download folder you
7:54
can click here you can see the progress how the file is getting downloaded here so
8:01
now it is almost getting completed the download has been done onto the
8:06
download folder opening the folder now so we are creating one folder
8:11
under home the name of the folder will be Hadoop giving the name and now all
8:17
the extracted files from the Jif file we've done the dragging it so that all
8:22
the files will get copied onto our Hadoop blank folder. Shall close this one
8:34
So this is our Hadoop folder. So we have followed the step that is the extract that downloaded files into the Hadoop folder
8:41
So this much we have done. Now we are going to edit about a file that is a slash ETC slash profile file and the
8:49
following two lines are going to be added at the end of the file. that is a profile file which is residing under the ETC folder so let us go for opening
8:57
this there is a ET is slash ITC slash profile file so let us go for opening so pseudo
9:04
g edit going for slash ETC slash profile opening the file it is asking for the password giving the password here cannot open I think we should terminate this terminal
9:17
let us go for another one it has open another terminal here okay so another
9:23
terminal has got open we're going for this pseudo let me execute this one again
9:28
so pseudo g edit slash ETC slash profile pressing enter giving the password
9:34
so file has got opened we're coming at the end creating some space here now coming to
9:44
this install and copying these two lines so here we are exporting this hadoop
9:51
underscore install this variable is getting initialized with this path and also
9:56
export path so is equal to dollar path colon dollar had doop underscore install
10:02
slash bin so these two these two lines were just doing the copy and paste at the end of
10:09
etec slash profile file so doing the paste so file has got updated now saving it then i shall close
10:18
save and close then i shall execute the etc profile file so that the respective changes will get
10:27
effective in the system okay we have done it so execute the slash it is slash profile file so this much you
10:40
have done now Hadoop pseudo distributed mode so we'll be going for some
10:45
updates in the XML files and so let me go show you so at first we are
10:50
dealing with this code hyphen site dot XML so this is a file where we are going
10:57
to do some updates and this file is residing under the folder that is a Hadoop slash
11:02
Etc slash Hadoop slash core hyphen site.xml. So this is a file is there where we'll be
11:11
pasting this configuration portion, the portion which is written in this configuration
11:16
tags. So let me open this core hyphen site.comel. So it is under this Hadoop
11:25
It is C, Hadoop. And here we're having this core C. Yes. C is the starting
11:32
character so I shall be going for core hyphen site dot XML so opening this one here you can find
11:39
that this configuration tags are blank so let me copy this one at first so I'm done the copy
11:45
and then I shall go for this core hyphen site dot XML we have done the paste you can find that
11:51
only we have just updated the portion we're not touching any other portion of this file
11:57
just updating that portion whatever you wrote you can pause the video we can
12:02
do the same you can make this xml ready and then we are saving and closing it
12:13
so we have done this code hyphen site.xm. So required update we have done. Now we are going
12:19
for the next one that is a hadup slash etc slash hadoop slash hdfs hyphen site.xml
12:28
So that is another xml file is there. Just remember this path here. So hadoop slash etes
12:32
slash Hadoop slash sdf sdf side dot XML so these are xml file we're going to do some
12:40
updates we are going to carry out some updates on this particular file here so what is
12:44
update so here this configuration portion has to be written there so let me
12:49
open the open the file now so doing the copy here so sdf s the file is already
12:58
open so that is the sdfs hyphen site dot XML So here you have done the copy and paste here so configuration tags have got updated
13:07
so here we are having the replication factor of 1 we can also go for 3 so here
13:13
we have gone for the replication factor DFS dot replication so this particular
13:18
property has been set with the value 1 here okay so we have done done it now you
13:23
shall go for the save and then we shall go for the close next we're going for the
13:30
file which is the map red hyphen site.xml which is residing under the folder
13:36
that is the Hadoop slash ETC slash Hadoop map red hyphen site so this is a required file where this configuration section has to be updated so here you are putting this map red dot job dot tracker and local host
13:53
colon 9001 so name and the value so they have they have got enclosed with the
13:58
respective tags so we're going for this so here can find that we are not finding any
14:05
map red hyphen site dot XML we're not finding this one so what we are finding we're
14:10
getting map red hyphen site.xml. template so what we shall do we shall make a copy and paste
14:16
So we shall make a replica of this template file and then we shall change the name to map red
14:22
hyphen site dot XML and there will be doing the required updates in the tags
14:27
So let me make a copy. So I'm done the copy and paste. So it has made a paste here
14:33
So now I shall go for this template and this blank space is to be eliminated. Yes, we have made the
14:38
thing so now coming to this installation details.txt taking this configuration portion
14:46
okay now going for this map redside.xml this configuration portion is getting updated with a new
14:52
content you can find that here we have done the copy and paste so please remember all these steps
14:57
because all these steps are necessary and they are to be done the order in which you are
15:02
demonstrating here so now we shall go for this save and exit
15:08
okay now we're going for this hadoof env hadup hadoop hymn.sh so here we are supposed to put the
15:18
java path here java home path so this is a java home path we are getting so it does
15:22
doing the copy don't take that colon in the selection so here here in this case we're just
15:28
pasting the required java home path here so you can find here so actually uh this is a put the
15:36
Java home actually I should write this one as Java home at hadup hyphen env dot
15:41
sh so this particular shell program has to be updated with the Java home path
15:48
so we have done that one and we have got the Java home path by just writing
15:53
the Java home dollar Java home we have written that one so getting the path
15:57
and we have done the pasting there now run the final command to set the set
16:03
up the hadup okay so we'll be going for this name note format will be going for the name note format so let us go
16:11
for that section now so yes we have done this now we shall go for this name note format so
16:22
copying and pasting it here so name note format is taking place yes it has got pasted
16:31
so formatting has been done so let me write these lines how to start the Hadoop so we're
16:41
supposed to issue it should be written in capital letters so dollar
16:47
hadup underscore installs slash sbin slash start hyphen all dot sH so this is the there's a
16:56
shell program you are supposed to execute you can find that Hadoop is now is getting initiated I should go for yes
17:10
so we're going to see what are the processes are running so here you can find
17:23
that node manager data node name node secondary name node we're having the
17:30
resource manager so these these are the respective processes are running in the
17:34
background so that means my hardube is on now let me open this one in the browser
17:46
so the command is local host colon 5 0070 so if you just issue this one in the
17:54
browser you can find that this particular hadoop has got so respective
17:59
GUI view we're getting here so in this way we have shown you that how to install
18:04
this hardup here so in the browser we are going to write local host colon 50070
18:10
to get the hardup overview page on so throughout this demonstration we have
18:16
shown you that how to install hardup on our system thanks for watching this video
#Programming
#Software