What CDH version is your installed cluster, and what version are you compiling/bundling with your application jar?
The method specifically that its trying to call on the client-side is a new one in CDH 5.12.0. However, given that its not finding that method yet referencing it, it appears that you may be bundling an older or newer (depending on what version your cluster runs) CDH/Hadoop dependencies with your application jar which is not a good idea (the platform provides these by default on its classpath).
Does an inbuilt example work normally? Try with:
hadoop org.apache.hadoop.examples.WordCount <in-dir> <out-dir>
P.s. Ensure you use and reference CDH dependencies in your project for Apache Hadoop (hadoop-client), not the upstream ones. The guide to do this is at https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_vd_cdh5_maven_repo.html