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,950 points
411 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
• 56,480 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
11,052 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,030 points
921 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
189 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
533 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,320 points
177 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 in Big Data Hadoop by anonymous
246 views
0 votes
1 answer

How to upload files in Hadoop Cluster?

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

answered 1 day ago in Big Data Hadoop by MD
• 56,480 points
30 views