I'm upgrading spark 2.1.1 to 2.2.1 and we had hadoop of 2.2.0. After changing spark 2.1.1 , I had to change hadoop version 2.7.2. Then it started throwing the following execption.
java.lang.IllegalAccessError: tried to access method com.google.common.base.Stopwatch.<init>()V from class org.apache.hadoop.mapreduce.lib.input.FileInputFormat
In our pom.xml we already have a version of guava.
So I have added guava to exclusion list with no luck. I still get the same issue while running Junit (com.intellij.rt.junit.JUnitStarter.main)
Any help would be very much appreciated