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
1,823 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,440 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
25,659 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,210 points
3,413 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
772 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
1,859 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,390 points
621 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
3,647 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,440 points
1,826 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