Installing JDK and JRE for Hadoop
4K views
Nov 18, 2024
Installing JDK and JRE for Hadoop
View Video Transcript
0:00
In this video we are discussing installing JDK and JRE for Hadoop
0:06
So, let us go for step by step process. So, to download JDK, please follow the link
0:15
So here the link is given, accept the license agreement option and then go for the Linux
0:23
64 width version and ending with TAR. So, this particular file is to be selected
0:31
So, you can see after going to this particular link this page will come up
0:35
We shall go for the accept license agreement. Then you shall select this respective version because it is Linux x64 and tar. .g
0:43
should be the extension of the file. How to download GRE on Linux
0:50
So in the previous one we downloaded only the JDK, but we are now supposed to download
0:54
the GRI. So now we are going for this respective link. page will come up. Accept license agreement is to be selected. So, accept the license agreement
1:04
and go to the Linux X-64, Geary download, ending with the file name, ending with the extension
1:12
TAR dot GZ. So, we have selected this one because it is Linux X-64 version. Open up the terminal
1:20
by pressing Control Altar T. In the Ubuntu just press Control, Altar and T, the terminal
1:26
will get open, create a Java folder at slash user slash local using root permission
1:33
So it will ask for the password for the Ubuntu root system
1:38
And now the command will be pseudo mkdiar minus p slash user slash local slash Java
1:46
So this folder is to be created. Now copy and paste the downloaded JDK and jr e tard.g
1:55
from the download location that is a download folder to the newly created java directory so the
2:02
default folder will be download but also you can download it in some other folder so from that
2:07
very particular folder to the newly created java directory these files are to be transferred
2:13
there so now copy and paste the downloaded jdk and gd both the two files with extension tt dot
2:20
gz into the current directory so how to do that one so if you if you if you
2:25
go to the download folder so cd download and then pseudo cp minus sir these are respective file
2:31
and this are respective destination folder and similarly we are going to do the same for the
2:36
jdk also now go to the java folder and enter the jdk and jrd files so for that you are supposed
2:44
to go to that folder so cd slash user slash local slash java then pseudo tar xv that is our jdk start
2:55
TAR .G and similarly we are doing the same for the GRI file also
3:00
Just these commands are to be executed one by one. Now go to the slash ETC slash profile and edit the profile using the lines mentioned below So how to open that file which will be going for pseudo that is the G that is the editor and then slash ETC slash profile is the file name
3:23
Slash ETC is the path. So now write these lines into the profile document. So these are the
3:29
lines are to be written in the profile document. Say at the last you are putting all these
3:34
lines, mention, maintaining the lower-case and uppercase letters. So you can pause the video
3:39
and you can write all these lines onto the slash ETC slash profile file
3:45
Now write these lines onto the terminal one by one. So these are the lines are to be written onto the terminal
3:53
That is, you are coming out from this G-Edit software after saving it, obviously
3:58
and then you are going to write these lines onto the terminal prompt
4:04
Now write these lines onto the terminal one by one. So, these are the separate, more lines are there
4:10
They are to be typed in this order and maintaining this syntax. If you are using the same Java version, the given lines will work fine
4:18
For the different versions, you need to edit the version details in the lines
4:24
So, here you can find here we are using this JRE1.8.0 underscore 171
4:31
So this version was compatible in my system. But if I are using some new or other Java version
4:37
or GRE versions, the versions are to be updated accordingly. And just you just go to this user local Java folder
4:46
You'll be getting the respective folders are there and accordingly the commands are to be
4:51
changed here. Now refresh the profile to take up the changes whatever we have done
4:59
So now let us run the profile file so that the changes whatever we did in the profile
5:04
file should get reflected onto the system. So, to do that one, we are going for dot slash ATC slash profile
5:12
Then please reboot your system. So, reboot option will be there. Just go for the rebooting of your system
5:18
To check whether the Java is installed correctly or not on your system
5:22
paste the command in your terminal. And if it returns the Java version, then Java is installed correctly
5:30
So, now you can type this command. So, there is a Java minus version
5:35
Now, if we see that outputs are coming, that means that your Java has got loaded successfully
5:39
on your system. So, you see, we're going for this reboot and then after coming up on opening one terminal
5:45
we can go for this, we can go for this writing this Java hyphen version
5:51
If the Java version is coming correctly, that means your Java has got loaded successfully
5:56
So now let us go for one practical demonstration to give you the idea that how the things
6:00
are taking place and we'll be following all the steps as we have mentioned here
6:05
one by one for your better understanding so here is the demonstration for you
6:09
in this video we are going to install jdk and gdr so at first we are going to copy the path of the
6:18
jdk and also we're having the path for the jrr link you can find that we are having the path for
6:23
jdk we are having the path for jr so these two paths we are going to copy and we are going to paste onto the browser for the downloading and then we shall create one directory under user local so the directory name will be Java then
6:38
we shall do the rest operations so let me go for the copy of this JDK download
6:43
link going for this paste and go accept license and selecting the Linux 64 so this is
6:56
a file you are going to download save and okay so now it is getting downloaded onto my download
7:03
folder copying the other link for gree opening another tab paste and go similarly again we're
7:15
going for accept license agreement then for this linux 64 where x64 we are selecting this version
7:23
and save okay so two files are in are getting downloaded onto my download folder
7:35
so two files have got downloaded we are opening one terminal here so these are
7:45
the next step so you are going to create one folder Java under user slash local
7:53
now you shall come to the downloads folder then you shall copy this grrrr
8:05
file that is a grr start dot ttr and also the jtk start dot ttd so these two files
8:13
we are going to copy onto the java folder and then we shall extract these two files
8:18
so we're coming down to this user local java folder now so now we're now we're
8:23
are going for this pseudo tar xv zf so we are going for the extraction of the g rdg file
8:33
and also doing the same also doing the same for this so here you can find that we are
8:39
going for this pseudo tar xv z f jtk start dot tar dot gz so in this way you are extracting the
8:50
jdk file and similarly you are extracting the grrr file so this so they will get extracted and they will create their own folders so they will create their
8:58
own folders and the respective files will be there so in two separate folders they have got
9:07
extracted now we shall go for this uh pseudo g edit slash etc slash profile file so we shall come at the
9:17
end we shall create a space and here we're going to copy
9:23
here we're going to copy these are the paths we are going to copy here you see
9:28
these are the path so export Java home then the path for this Java and then export
9:34
JRE home and then path they are to be updated and then export path so these are the
9:40
five lines we doing the copy here and now we shall go for the paste onto that slash ETC slash profile file so before going for the paste
9:58
at first we're going to go into this user local and the respective Java folder so if you go for this
10:08
LS you can find that here we're having two G files there is a JDK file that is a
10:14
a dot ttt dot g and jr e file that is dot dot dot jj and after getting extracted we have got two folders
10:21
that is a j tk 1.8.0 underscore 181 and jere 1.8.0 underscore 181 so these two are the folders
10:32
so this folder paths are to be mentioned here in our the respective home path for this
10:39
whatever you are going to update onto the it is a folder it is it is
10:44
profile file so that's why this particular names are required so i'm just checking them and now we shall
10:50
go for yes so these are the names are there i'm just going for the highlighting
11:02
so going for the copy again so now going for the paste so let me make this one one hit one because we had that one
11:14
181 here you can check that it so this is my 181 so 171 has to be replaced by
11:22
181 so I've done the required updates I've done the required updates here so this is
11:27
very vital going for the save closing that terminal going for the save and
11:34
close and then we shall go for some alternative setup to updates the alternative to
11:44
set up the Java so before that let me execute the profile so here also I need to do
11:55
some changes here so we're supposed to execute all the six commands that is a
12:02
pseudo update hyphen alternatives so all the six commands are to be executed but
12:07
before going to do so let me make this one 171 is going to get replaced by
12:11
one eight one as I told you the a folder name so I'm making the changes here then I shall go for a copy and
12:21
then I shall go for this terminal I shall go for the paste now I shall go for
12:27
the second line I shall copying the second line pasting it onto this terminal
12:33
similarly I shall be doing the same for the rest lines I shall check whether the Java has got installed properly or not
12:50
Let me check the version of the Java and it shows that it has got loaded properly
12:55
So in this way how to load this Java, install this Java onto our system that has been
13:02
demonstrated properly. Thanks for watching this video
#Java (Programming Language)
#Operating Systems
#Programming