Getting Error on sc.esRDD ES-Hadoop 5.2.2 Spark version 2.1.0

Your ES-Hadoop artifact is the Scala 2.10 compatibility jar. The version numbers for the spark artifact are of the format elasticsearch-spark-{$sparkMajorMinorVersionNoDots}_{$scalaVersion}-{$esHadoopVersion}.jar. You will need to use elasticsearch-spark-20_2.11-5.2.2.jar instead of the _2.10 version.