Amit Kumar
Amit Kumar

Reputation: 178

Exception while submitting spark application in yarn mode

Exception : java.lang.NoSuchMethodError: org.apache.http.client.utils.URLEncodedUtils.parse(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/util/List;

Upvotes: 1

Views: 1159

Answers (1)

Igor Berman
Igor Berman

Reputation: 1532

This is case of library versions collisions. You should check few things: what is your runtime classpath, especially check libraries from hadoop instalation. What libraries you bring with your fat-jar if any. What libraries you add with --jar option. You also should check what libraries spark depends on. Everything should be consistent, but your error hints that you built your app jar with 1 version but in runtime there is another version

Upvotes: 1

Related Questions