Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can a docker image with maven and Hadoop work in pipelines?

Thomas Humphries
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2020

Struggling to get a docker image to work in bitbucket pipelines where we want Hadoop HDFS on the image (required for the unit tests)

The simplest start for us was to test we could build a custom image with maven 3.6.3 and JDK 8 (match our dev maven / prod JDK) and see if we could get pipelines to run the build with that - it worked fine.

Then we added HDFS to the image, single node configuration (just for unit testing 1 node is all it needs).   The image performs the basic install of HDFS, then the namenode format and start-dfs commands are running from the pipeline step.

It all seems to go well, then after the dfs is started we can see (using JPS) the namenode isn't running like we would expect, then the build starts and the first test fails when it can't see the hdfs server at localhost:9000.

There are no memory warnings, network warnings or anything else we might expect.  The docker image runs fine on local machines.

We have experimented with moving the start command from the pipelines.yml to the image, but get the same result.

Open to ideas of deploying HDFS in different ways - we started with these at it seemed (at the time) the simplest way of achieving what we want.

Any assistance greatly appreciated, especially pointers to relevant documentation!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events