The reported class exists in two jars ->
This error is fixed by removing the hadoop-client-minicluster-3.3.6.jar from spark-3.5.0-bin-hadoop3/jars directory
The weird thing is this is not causing any problem on other servers but on one server.
How do i find existence of reported class in jars: -
find . -name "*.jar" -print | while read jar; do
if jar tf "$jar" | grep -q "org/apache/hadoop/yarn/server/webproxy/amfilter/AmIpFilter.class"; then
echo "$jar"
fi
done