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