How to install Hadoop in Ubuntu?

0 votes
Hi. I am new to hadoop and want to install on hadoop on Ubuntu. Can some one help me with the steps?
Feb 19 in Big Data Hadoop by Raghav
158 views

1 answer to this question.

0 votes

Hey. Follow these steps to install hadoop.

First you need to download Hadoop files. You can download it by running the following command in terminal:

$ wget http://mirrors.estointernet.in/apache/hadoop/common/hadoop-3.1.2/hadoop-3.1.2.tar.gz

Next, you will have to extract the Hadoop files:

$ tar -xvf hadoop-3.1.2.tar.gz

Now, you will have to add path to the Hadoop files in the .bashrc file:

$ nano .bashrc

And then add these entries in the file:

export HADOOP_HOME=$HOME/hadoop-3.1.2

export HADOOP_CONF_DIR=$HOME/hadoop-3.1.2/etc/hadoop

export HADOOP_MAPRED_HOME=$HOME/hadoop-3.1.2

export HADOOP_COMMON_HOME=$HOME/hadoop-3.1.2

export HADOOP_HDFS=$HOME/hadoop-3.1.2

export YARN_HOME=$HOME/hadoop-3.1.2

export PATH=$PATH:$HOME/hadoop-3.1.2/bin

Save the file (Ctrl+O and press Enter) and then exit (Ctrl+X)

And then run

$ source .bashrc

Hadoop is installed. To verify, run the below command and you should see a similar output:

$ hadoop version

answered Feb 19 by Omkar
• 67,660 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to install Hadoop in Ubuntu?

Follow the steps as mentioned in the ...READ MORE

answered May 17, 2018 in Big Data Hadoop by nitinrawat895
• 10,710 points
47 views
0 votes
1 answer

How to install Hadoop on Ubuntu?

You can refer to this blog by ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by nitinrawat895
• 10,710 points
366 views
0 votes
1 answer

How to install Hadoop on Ubuntu?

You can manually create a file hadoop-env.sh ...READ MORE

answered Jul 5 in Big Data Hadoop by ravikiran
• 4,560 points
41 views
0 votes
0 answers

How to run Hadoop in Docker containers?

I want to incorporate Hadoop in Docker ...READ MORE

Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 10,710 points
92 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,710 points
3,303 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,710 points
391 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
16,272 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
1,186 views
0 votes
1 answer

How to install Zookeeper in Ubuntu?

There are two ways to install Zookeeper: You ...READ MORE

answered Feb 20 in Big Data Hadoop by Omkar
• 67,660 points
454 views
0 votes
3 answers

How to specify KeyValueTextInputFormat Separator in Hadoop-.20 api?

conf.set("key.value.separator.in.input.line", ","); Job job = new J ...READ MORE

answered Dec 4, 2018 in Big Data Hadoop by Rio
213 views