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, 2019 in Big Data Hadoop by Raghav
318 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, 2019 by Omkar
• 69,030 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,950 points
86 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,950 points
547 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, 2019 in Big Data Hadoop by ravikiran
• 4,600 points
76 views
0 votes
1 answer

How to run Hadoop in Docker containers?

Hi, You can run Hadoop in Docker container. Follow ...READ MORE

answered Jan 24 in Big Data Hadoop by MD
• 55,060 points
404 views
+1 vote
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,950 points
5,840 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,950 points
872 views
+1 vote
11 answers

hadoop fs -put command?

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

answered Dec 7, 2018 in Big Data Hadoop by Aditya
36,701 views
–1 vote
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,320 points
2,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, 2019 in Big Data Hadoop by Omkar
• 69,030 points
2,162 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 ...READ MORE

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