version 2.6.2 from hadoop:hadoop-mapreduce-client-core cannot be used together with guava new versions (I tried 17.0 - 19.0 ), since the guava StopWatch cannot be accessed (by calling IllegalAccessError above)
using hadoop-mapreduce-client-core latest version - 2.7.2 (in which they do not use guava StopWatch in the above method, but use org.apache.hadoop.util.StopWatch ), solved the problem with two additional dependencies that were are necessary
compile('org.apache.hadoop:hadoop-mapreduce-client-core:2.7.2') {force = true} compile('org.apache.hadoop:hadoop-common:2.7.2') {force = true} // required for org.apache.hadoop.util.StopWatch compile('commons-io:commons-io:2.4') {force = true} // required for org.apache.commons.io.Charsets that is used internally
Note: there are two org.apache.commons.io packages: commons-io: commons-io (ours here) and org.apache.commons: commons-io (old, 2007). be sure to include the correct one.
source share