After going throught the steps of installing the Spark 2.2 on all nodes, I'm getting Unsupported major.minor version 52.0 when running spark2-submit.
The CDH version is 5.12
Java 1.8 is installed in /usr/java/jdk1.8.0_144
All hosts have the Java Home Directory line modified in CM.
JAVA_HOME is set on the nodes where I run the spark2-submit line (it's not set on the worker nodes but I didn't get that it should from the installation steps).
Furthermore, spark2-shell works without issues, gateway roles are set on the nodes.
Spark 2.2.1 stand alone, installed on the same node works without issues, with the same jar that does not work on spark2-submit.
I might have missed something but I checked and I can't find what it might be. If I need to post additional info please let me know. Thank you