maps master servers (maps1001.eqiad.wmnet and maps2001.codfw.wmnet) have both openjdk 7 and openjdk 8 installed. It seems that openjdk 8 is pulled by cassandra, and 7 pulled by osmosis. Osmosis should be able to run fine on openjdk 8.
The minimal step is to ensure that java alternatives are set to openjdk 8. We probably need to repackage osmosis to replace the "default-jre-headless" dependency by "java-runtime".