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
• 11,380 points
• 3,826 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, 2020 by MD
• 95,460 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
• 31,583 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
• 69,180 points
• 5,307 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,830 points
• 2,009 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,620 points
• 4,930 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,350 points
• 2,219 views
+2 votes
1 answer
0 votes
2 answers

How to set properties for secondary namenode in Hadoop?

Secondary NameNode in HDFS Secondary NameNode in Hadoop ...READ MORE

answered Mar 31, 2020 in Big Data Hadoop by anonymous
• 7,232 views
0 votes
1 answer

How to upload files in Hadoop Cluster?

Hi@akhtar, To upload a file in Hadoop Cluster, ...READ MORE

answered Sep 25, 2020 in Big Data Hadoop by MD
• 95,460 points
• 3,231 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP