How to run Hadoop in Docker containers?

0 votes
I want to incorporate Hadoop in Docker containers, please tell me the easiest way that works best in production environment.
Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 10,840 points
239 views

1 answer to this question.

+1 vote

Hi,

You can run Hadoop in Docker container.

Follow the below steps one by one

  • Install Docker 

$ yum install docker-ce 
  • Start Docker Service​

$  systemctl start docker
  • Load Docker Images

$ docker load -i -t centos:latest
  • Now, You have to bind java & hadoop files to your docker image.

$ docker run -it --name mydvd -v (copy the path of java folder):/dvd1 -v (copy the path of hadoop folder:/dvd2 centos:latest
  • Now you can find your java and hadoop folder in docker image as dvd1 and dvd2.

  • Now, install java and set all the environment variables in .bashrc file.

Hope this will help you

Thank You

answered Jan 24 by MD
• 2,750 points

Related Questions In Big Data Hadoop

0 votes
7 answers

How to run a jar file in hadoop?

I used this command to run my ...READ MORE

answered Dec 10, 2018 in Big Data Hadoop by Dasinto
7,588 views
0 votes
1 answer

How to run Java file in Hadoop?

Try this: hadoop fs -cat hdfs:///user/hadoop/values.txt READ MORE

answered Dec 12, 2018 in Big Data Hadoop by Omkar
• 68,940 points
496 views
0 votes
1 answer

How to run Nutch in Hadoop installed in pseudo-distributed mode

Make sure you have built Nutch from ...READ MORE

answered Jan 24, 2019 in Big Data Hadoop by Frankie
• 9,810 points
101 views
0 votes
1 answer

How to run Hadoop 2.1.0 in Windows System?

Same problem but with recent Hadoop v. ...READ MORE

answered Sep 11, 2019 in Big Data Hadoop by ravikiran
• 4,600 points
86 views
0 votes
1 answer

How to checkout Hadoop 2.6.0 from git

Clone the following Git repository: git clone git ...READ MORE

answered Apr 23, 2018 in Big Data Hadoop by kurt_cobain
• 9,310 points
115 views
0 votes
1 answer
0 votes
2 answers
0 votes
1 answer

Can I run Hadoop with Docker for both DEV and PROD environments?

Hi, Yes, you can run Hadoop with Docker ...READ MORE

answered Jan 24 in Big Data Hadoop by MD
• 2,750 points
43 views