MapReduce and Design Patterns - Installing JDK and JRE for Hadoop
4K views
Oct 18, 2024
MapReduce and Design Patterns - Installing JDK and JRE for Hadoop https://www.tutorialspoint.com/market/index.asp Get Extra 10% OFF on all courses, Ebooks, and prime packs, USE CODE: YOUTUBE10
View Video Transcript
0:00
In this video we are going to discuss installing JDK and JRE for Hadoop and we shall mention
0:06
step by step that what are the different steps to be followed one after another for the
0:11
proper installation of JTK and JRE for Hadoop and also to test that whether it has got
0:18
loaded successfully or not. So just watch all the steps and this video will be also assisted with one practical demonstration
0:26
for your better understanding. So, to download JDK, please follow the link
0:33
So, here the link is given. Accept the license agreement option and then go for the Linux 64 with version and ending
0:43
with Tard.g. So this particular file is to be selected. So you can see after going to this particular link, this page will come up
0:53
We shall go for the accept license agreement. Then you shall select this respective version because it is Linux x 64
0:59
and tar.g.z should be the extension of the file. How to download JRE on Linux
1:07
So, in the previous one, we downloaded only the JDK, but we are now supposed to download
1:11
the JRE. So now we are going for this respective link. This page will come up
1:17
Accept license agreement is to be selected. So, accept the license agreement and go to the Linux X-64, J-R-E download, ending with
1:26
the file name, ending with the extension. TAR.GZ. So, we have selected this one because it is Linux x64 version
1:36
Open up the terminal by pressing Control Alter T. In the Ubuntu just press Control
1:42
Alter and T, the terminal will get open. Create a Java folder at slash user slash local
1:49
using root permission. So, it will ask for the password for the Ubuntu root system
1:55
And now the command will be pseudo mkDIR. minus p slash user slash local slash java so this folder is to be created now copy and paste the
2:08
downloaded jdk and jrr ddd from the download location that is a download folder to the newly
2:17
created java directory so the default folder will be download but also you can download it
2:23
in some other folder so from that very particular folder to the newly created java directory
2:29
these files are to be transferred there. So, now copy and paste the downloaded JDK and
2:34
GAD, both the two files with extension Tart.g.z into the current directory. So, how do
2:41
that one? So, if you go to the download folder, so CD download and then pseudo-CP minus
2:47
this is the respective file and this is the respective destination folder. And similarly, we are
2:52
going to do the same for the JDK also. Now go to the Java folder and enter the JDK
2:59
and G. So, for that you are supposed to go to that folder
3:03
So, CD slash user slash local slash Java, then pseudo tar x, v, z, that is our GDK acts
3:12
dot tar dot j and similarly we are doing the same for the GRI file also 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
3:30
So how to open that file which will be going for pseudo, that is a G edit, that is the editor
3:37
and then slash ETC slash profile is the file name. Slash ETC is the path. So now write these lines into the profile
3:45
So, these are the lines are to be written in the profile document
3:49
Say at the last you are putting all these lines, mentioned, maintaining the lowercase and
3:54
uppercase letters. So you can pause the video and you can write all these lines onto the slash ETC slash
4:01
profile file. Now write these lines onto the terminal one by one
4:07
So these are the lines are to be written onto the terminal. That is, you are coming out from this G-Edit software after saving it obviously
4:15
and then you are going to write these lines onto the terminal prompt
4:21
Now write these lines onto the terminal one by one. So these are the separate, more lines are there
4:27
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:36
For the different versions, you need to edit the version details in the lines
4:41
So here you can find here we are using this jrd1. 8.0.171. So, this version was compatible in my system, but if I are using some new or
4:53
other Java versions or GRI versions, the versions are to be updated accordingly. And just
5:01
you just go to this user local Java folder. You'll be getting the respective folders
5:05
are there and accordingly the commands are to be changed here. Now refresh the profile to take
5:13
up the changes whatever we have done. So, now let us run the profile file so that the changes
5:20
whatever we did in the profile file should get reflected onto the system. So, to do that one
5:26
we are going for dot slash et-c slash profile. Then please reboot your system. So, reboot
5:32
option will be there. Just go for the rebooting of your system. To check whether the Java
5:36
is installed correctly or not on your system, paste the command in your terminal and if it returns
5:43
the Java version, then Java is installed correctly. So, now you can type this command
5:49
So, there is a Java minus version. Now, if you see that outputs are coming, that means your Java has got loaded successfully
5:57
on your system. So you see, we're going for this reboot and then after coming up on opening one terminal
6:03
we can go for this writing this Java hyphen version. If the Java version is coming correctly, that means your Java has got loaded successfully
6:13
So now let us go for one practical demonstration to give you the idea that how the things
6:18
are taking place and we'll be following all the steps as we have mentioned here one by one
6:23
for your better understanding. So here is the demonstration for you. In this video we are going to install JTK and GRI
6:31
So at first we are going to copy the path of the JTK and also we are having the path for the JRI link You can find that we are having the path for JTK jdk we having the path for jrd so these two paths we are going to copy and we are going to paste
6:46
onto the browser for the downloading and then we shall create one directory under user local
6:53
so the directory name will be java then we shall do the rest operation so let me go for the
6:58
copy of this jdk download link going for this paste and go
7:06
accept license and selecting the Linux 64 so this is the file you are going to
7:14
download save and okay so now it is getting downloaded onto my download
7:21
folder copying the other link for gree opening another tab paste and go
7:31
similarly again we are going for accept license agreement then for this Linux 64 where x64 we are selecting this version and save okay so two files
7:45
are in are getting downloaded onto my download folder so two files have got
7:55
downloaded we are opening one terminal here so these are terminal going for the next step so you are going to create one folder Java under user slash local
8:14
now you shall come to the downloads folder then you shall copy this grd file that is a grrr start dot ttr
8:26
and also the jtk start dot ttd so these two files we are going to copy onto the java folder
8:33
and then we shall extract these two files so we're coming down to this user local Java folder
8:39
now so now we are going for this pseudo tar xvz f so we are going for the extraction
8:48
of the gdg file and also doing the same also doing the same for this so here you can find
8:57
that we are going for this pseudo tar xv z f jtk start dot
9:03
R dot GJ so in this way you were extracting the JDK file and similarly you are
9:09
extracting the GRI file so they will get extracted and they will create their own
9:13
folders so they will create their own folders and the respective files will be
9:17
there so in two separate folders they have got extracted now we shall go for
9:28
this pseudo G edit slash it isc slash profile file so we shall come at the end we shall create a space and here we're going to copy here
9:42
we're going to copy these are the paths we are going to copy here you see this is
9:46
that a path so export Java home then the path for this Java and then export
9:52
gd home and then path they are to be updated and then export path so these are the five lines we doing the copy here and now we shall go for the paste onto that slash ETC slash profile file
10:14
So before going for the paste at first we're going to go into this user local and the respective Java folder
10:24
So if you go for this LS you can find that here we're going to go into this user local and the respective Java folder
10:27
we're having two g files there is a jdk file that is a dot tt dj and jr e file that is dot ttr dot gz and after
10:36
getting extracted we have got two folders that is a jdk 1.8.0 underscore 181 and g re
10:43
one dot 8.0 underscore 181 so these two are the folders so this folder paths are to be
10:52
mentioned here in our the respective home path for this whatever you are going to update onto the ETC folder it is a profile file so
11:02
that's why this particular names are required so I'm just checking them and now we
11:08
shall go for yes so these are the names are there I'm just going for the
11:15
highlighting so going for the copy again so now going for the paste
11:27
So let me make this one 181 because we had that one one eight one here you can check
11:33
that it so this is my 181 so 171 has to be replaced by 181 so I've done the required
11:41
updates I've done the required updates here so this is very vital going for the
11:47
save closing that terminal going for the save and close and then we shall go
11:57
for some alternative setup to updates the alternative to set up the Java so before
12:06
that let me execute the profile so here also I need to do some changes here
12:15
so we're supposed to execute all the six commands that is a pseudo update hyphen
12:21
alternatives so all the six commands are to be executed but before going to do
12:25
so let me make this one one seven one is going to get replaced by one eight one as I
12:30
told you the respective a folder name so I'm making the changes here then I shall go
12:38
for a copy and then I shall go for this terminal I shall go for the paste now I
12:44
shall go for the second line I shall copying the second line pasting it onto this
12:50
terminal similarly I shall be doing the same for the rest lines
12:55
now I shall check whether the Java has got installed properly or not
13:05
let me check the version of the Java and it shows that it has got loaded properly
13:12
so in this way how to load this Java install this Java onto our system that has
13:20
been demonstrated properly thanks for watching this video
#Computer Education
#Java (Programming Language)
#Programming