In order to explore NiFi clustering, and NiFi site-to-site protocol, I decided that I could use a minimal installation – as I’m really just exploring the behaviour of NiFi itself, I don’t need to have any Hadoop environment running as well. To this end, my thought was that I could get the flexibility to just play around that I need by building a minimal Centos/7 virtual machine, running in VirtualBox. The plan was to have little more than a Java 8 SDK and NiFi installed on this, and then I would clone copies of it which would be modified to be independent nodes in a cluster. At the time of writing this is still in progress, but I thought it was worth capturing some information about how I proceeded to get my VM prepared.
There are a handful of requirements for this VM:
- It needs a static IP (so that I can assign different static IPs to the clones, later)
- It needs to be able to reach out to the broader internet, in order to pull down OS updates and similar
- I need to be able to ssh to it from my desktop
- Different instances of the VM need to be able to reach each other easily
- A Java 8 JVM is needed