Installing Hadoop for Single Node Cluster
3K views
Nov 18, 2024
Installing Hadoop for Single Node Cluster 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 Hadoop for single node cluster and
0:06
you shall explain these steps one by one into further detailing and also you
0:10
can do the same on your system. So let us start with this installation of Hadoop for
0:16
single node cluster. So before studying at first we are going to discuss three
0:21
terminologies. We are going to discuss them one by one. Now at first we are going
0:27
for the installation of SSH and R sync but before going for that we'll be discussing three terminologies. The first one is the
0:35
secure shell that is SSH what is that. Then we shall go for R sync, that is a remote sync and
0:42
the last one is the pass phrase. So, let us go for the respective definitions. So is this
0:49
SSH is a protocol for cryptographic network for operating network services securely over an
0:58
unsecured network. So, that is a protocol for cryptographic network for operating network. that is the definition of SSH
1:02
That means it is a protocol for cryptographic network for operating network services securely on an unsecured network
1:12
Next one is the remote sync, that is the R sync. So is a remote and local file synchronization tool
1:19
So sometimes it may happen that the two files, which is at the local and at the remote
1:24
the file content may have got changed. Then it is not transferring the full file
1:29
but it is transferring that portion of the file where the updates were done
1:33
So depending upon that the remote sync will work and obviously that will have the less amount of data transfer So it uses an algorithm that minimizes the amount of data copied by moving the portions of
1:47
the files that have got some changes. Next one is a pass phrase
1:53
So a pass phrase is a sequence of words or other texts used to control the access of one
1:59
computer system. And this particular computer system or program are also on data
2:05
A passphrase is similar to a password in usage but it generally required for the added security of our data
2:14
So these are the three terminologies are there. Now let us go step by step one by one for the installation of Hadoop for single node cluster
2:25
So here we're having two operations are to be done. So first one is the install SSH and R sync and then you shall go for SSH without passphrase
2:35
setup. So, to do this one, we require to issue these two commands, that is pseudo-ap-t-hyphen
2:42
get install SSH, then pseudo-a-T-h-h-hfin-get install R-Sync. So, these two commands are
2:49
to be executed to install SSH and R-Sync on our system. These two commands were executing
2:55
from the dollar prompt. So, SSH without parse, phrase, setup. So the command will be
3:03
s s h hyphen key jane minus t r s a after that we are supposed to press enter for three times
3:11
without entering anything so three times enter is to be pressed then we shall go for cat then s s dot ss h slash id underscore rsa dot pub So this particular file is there under the home path this particular file we are doing the CAT means where it is printing
3:31
the content of the file, but not, we are not printing the content of the file on the console
3:36
We are redirecting it to this respective file in this particular folder existing
3:41
So, this command has to be executed. Then SSH, local host. So, these two commands are to be executed after pressing enter three times issuing this command
3:51
Now, open the browser. So in the Linux we'll be having one browser, open the browser and go to this particular link
4:01
So this link has been created, has been given here, so just copy this particular link and type
4:07
this particular link at the URL of that browser and then click on the highlighted link
4:13
So here you can find if you put this particular link. link on the browser URL, this web page will get opened and this particular web page is
4:21
having this particular file that is the Hadoop-2.4.1.tard.g. So this is a file which has
4:29
to be highlighted here and it has to be clicked there. Now open up the terminal. To open up
4:38
the terminal we are supposed to go for Control Alter T and then create a directory called the
4:45
Hadoop at the home directory. So, how to create this directory? Just issue the command MKDIR Hadoop
4:51
So, just issue this command, MKDIR Hadoop. Then one directory will get opened
4:57
Now edit the slash ETC slash profile file and add the following lines So profile file is existing under the folder that is slash ETC slash
5:07
So under this folder there is one file, that is a profile file where these lines are to be written
5:14
You can open this file in G-Edit and then we can type these lines and then save and exit from
5:19
the G-Edit. And then to make it effective onto the system, whatever you have typed extra, just execute
5:26
this file dot slash ETC slash profile. So in this way you can execute the file. So, whatever the
5:32
changes you did in the profile file, the corresponding changes will be obtained onto the system
5:39
Now, copy the downloaded Hadoop, that is a Hadoop, hyda-2.4.1.org.org. So, the file which
5:48
we downloaded from the respective URL, which I showed you earlier, into the Hadoop directory
5:53
and then go to this directory and using terminal and then enter the downloaded tar
6:00
So, just go to the download folder where you downloaded there and then copy those files
6:06
and then now put those files under the Hadoop folder and follow the lines to go to the Hadoop directory
6:13
So just go to the Hadoop folder and the files which were copied from the downloaded folder
6:18
to the Hadoop folder now execute TAR XZF for the Hadoop folder. Now execute tar x zf for the untoward operation
6:24
So, tar xzf and then Hadoop start. So the file which was copied from the downloaded folder to the Hadoop folder, those
6:32
turd.gd files will be untoward here and this much you are going to do for this single
6:38
node cluster installation on Hadoop. Thanks for watching this video
#Programming
#Software