Installing JDK and JRE for Hadoop
2K views
Nov 18, 2024
Installing JDK and JRE for Hadoop Watch more Videos at https://www.tutorialspoint.com/videotutorials/index.htm Lecture By: Mr. Arnab Chakraborty, Tutorials Point India Private Limited
View Video Transcript
0:00
In this video we are discussing installing JTK and J.R.E for Hadoop
0:05
So, you'll be discussing this step by step and you are supposed to follow them the order
0:10
in which we'll be discussing and also this video will be assisted with one practical demonstration
0:16
so that you can fill that how to run the commands and what are the different steps to be done
0:21
how the outputs are coming so that you can verify that your Java has got loaded successfully
0:26
So here is the respective discussion for you. So, to download JDK, please follow the link
0:34
So, here the link is given. Accept the license agreement option and then go for the Linux 64 width version and ending
0:45
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:54
We shall go for the accept license agreement. Then you shall select this respective version because it is Linux
0:59
x64 and tart.g.z should be the extension of the file. How to download gRE on Linux
1:09
So, in the previous one, we downloaded only the JDK, but we are now supposed to download
1:13
the JRE. So, now we are going for this respective link. This page will come up
1:18
Accept license agreement is to be selected. So, accept the license agreement and go to the
1:24
Linux x64, jrdy download, ending with the file name, ending. with the extension t-ar dot gz. So, we have selected this one because it is Linux x64 version
1:38
Open up the terminal by pressing Control Alter T. In the Ubuntu just press Control
1:44
Alter and T, the terminal will get open. Create a Java folder at slash user slash local using
1:51
root permission. So it will ask for the password for the Ubuntu root system and now the
1:58
command will be pseudo mkdiar minus p slash user slash local slash java so this folder is to be created
2:07
now copy and paste the downloaded jdk and jr e tt dot j z from the download location that is a download
2:17
folder to the newly created java directory so the default folder will be download but also
2:23
you can download it in some other folder so from that very particular folder
2:28
to the newly created Java directory, these files are to be transferred there
2:33
So, now copy and paste the downloaded JDK and GED, both the two files with extension
2:38
tart dot ed into the current directory. So, how do that one
2:43
So, if you go to the download folder, so CD download and then pseudo-CP minuser
2:49
this is a respective file and this is the respective destination folder. And similarly, we are going to do the same for the JDK also
2:56
Now go to the Java folder and enter the JDK and GRE files
3:02
So, for that you are supposed to go to that folder. So, CD slash user slash local slash Java, then pseudo tar xVZ that is our GDK start dot
3:14
tar dot GZ 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:32
So how to open that file which will be going for pseudo, that is a G edit, that is the editor
3:38
and then slash ETC slash profile is the file name. Slash ETC is the path
3:44
So now write this lines in. the profile document. So, these are the lines are to be written in the profile document
3:51
Say at the last you are putting all these lines, mention, maintaining the lowercase and
3:56
uppercase letters. So you can pause the video and you can write all these lines onto
4:00
the slash ETC slash profile file. Now write these lines onto the terminal one by one. So these
4:09
are the lines are to be written onto the terminal. That is, you are coming out from this
4:14
G-edit software after saving it obviously and then you are going to write this lines onto the
4:20
terminal prompt. Now write these lines onto the terminal one by one
4:26
So these are the separate more lines are there. They are to be typed in this order and maintaining this syntax
4:33
If you are using the same Java version, the given lines will work fine
4:38
For the different versions, you need to edit the version details in the lines
4:43
So, here you can find here we are using this GRD 1.8.0 underscore 171
4:51
So, this version was compatible in my system, but if I are using some new or other Java
4:56
versions or GRD versions, the versions are to be updated accordingly. And just you just go to this user local Java folder
5:05
You'll be getting the respective folders are there and accordingly the commands are to be changed here
5:13
Now refresh the profile to take up the changes whatever we have done
5:18
So, now let us run the profile file so that the changes whatever we did in the profile
5:23
file should get reflected onto the system. So, to do that one, we are going for dot slash ety slash profile
5:31
Then please reboot your system. So, reboot option will be there. Just go for the rebooting of your system
5:37
To check whether the Java is installed correctly or not on your system, paste the command
5:42
in your terminal and if it returns the Java version, then Java is installed correctly
5:49
So, now you can type this command. So, there is a Java minus version. Now, if we see that
5:55
outputs are coming, that means that your Java has got loaded successfully on your system
5:59
So, you see, we're going for this reboot. And then after coming up, on opening one terminal
6:05
we can go for this, we can go for this writing this Java hyphen version. If the Java version
6:11
is coming correctly, that means your Java has got loaded successfully. So, now let us go for one practical demonstration to give you the idea that how the things
6:19
are taking place and will be following all the steps as we have mentioned here, one by one
6:25
for your better understanding. So, here is the demonstration for you. In this video, we are going to install JDK and GRI
6:33
So at first we are going to copy the path of the JDK and also we are having the path for the GID link you can find that we are having the path for jdk we 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
6:52
directory under user local so the directory name will be java then we shall do the rest operations so let me go for the copy of this jdk download link
7:02
going for this paste and go accept license and selecting the Linux 64 so this is the file you are going to
7:16
download save and okay so now it is getting downloaded onto my download folder
7:23
copying the other link for g re opening another tab paste and go
7:32
Similarly again we are going for accept license agreement then for this Linux 64
7:39
we're X 64 we are selecting this version and save okay so two files are in
7:47
are getting downloaded onto my download folder so two files have got downloaded
8:02
So this is the terminal. Going for the next step, so you are going to create one folder, Java under user slash local
8:16
Now you shall come to the downloads folder. Then you shall copy this gRE file that is the gyrr start.t.g
8:28
And also the jtk start dot td. So these two files we are going to copy onto the Java folder and then we shall extract
8:37
these two files so we're coming down to this user local Java folder now so now
8:42
we are going for this pseudo tar xv z f so we are going for the extraction of the
8:51
gRI zip file and also doing the same also doing the same for this so here you can find
8:58
that we are going for this pseudo tar xV zf JTK start dot tar dot JZ so in this way you are extracting the JDK file and
9:10
similarly we are extracting the GRD file so they will get extracted and they will
9:14
create their own folders so they will create their own folders and the
9:18
respective files will be there so in two separate folders they have got
9:26
extracted now we shall go for this pseudo GED it slash it is slash profile file so we shall come at the end we shall create a space and here we're
9:39
going to copy here we're going to copy these are the paths we are going to copy here you see
9:47
these are the path so export java home then the path for this jrba home and then export jrd home
9:54
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:26
So if you go for this LS you can find that here we are having two g files there is a jdk file that is a dot tt dot gz and jr e file that is dot ttd
10:36
and after getting extracted we have got two folders that is a jdk 1.8.0 underscore 181 and
10:45
g re e.m. 8.0 underscore 181 so these two are the folders so this folder paths are to be
10:54
mentioned here in our the respective home path of for this whatever you are going to update onto the ETC folder it is a profile file so
11:04
that's why this particular names are required so I'm just checking them and now we shall go for
11:13
yes so these are the names are there I'm just going for the highlighting
11:21
so going for the copy again so now going for the paste
11:28
So let me make this one 181 because we had that one 181 here you can check that
11:35
it's so this is my 181 so 171 has to be replaced by 181 so I've done the required
11:42
updates I've done the required updates here so this is very vital going for the
11:49
save closing that terminal going for the save and close and then we should
11:58
go for some alternative setup to updates the alternative to set up the Java so before
12:08
that let me execute the profile so here also I need to do some changes here
12:16
so we're supposed to execute all the six commands that is a pseudo update hyphen
12:23
alternatives so all the six commands are to be executed but before going to do
12:27
so let me make this one one seven one is going to get replaced by one eight one as I
12:32
told you the respective a folder name so I'm making the changes here then I
12:39
shall go for a copy and then I shall go for this terminal I shall go for the
12:43
paste now I shall go for the second line I shall copying the second line
12:49
pasting it onto this terminal similarly I shall be doing the same for the
12:55
rest lines now i shall check whether the java has got installed properly or not let me check the version of the java
13:11
and it shows that it has got loaded properly so in this way how to load this java install this
13:19
java onto our system that has been demonstrated properly thanks for watching this video
#Computer Education
#Java (Programming Language)
#Programming