-
Notifications
You must be signed in to change notification settings - Fork 9.2k
YARN-10314. YarnClient throws NoClassDefFoundError for WebSocketException with only shaded client jars #2075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
@aajisaka @steveloughran @jojochuang @ayushtkn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that jetty-client and jetty-http are shaded as well because jetty websocket-client depends on them.
websocket-client depends on jetty-xml, too. Should we shade jetty-xml or not?
https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-websocket/websocket-client/pom.xml#L25
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jetty-servlet and jetty-security are brought by YARN-8778. jetty-client, jetty-http and jetty-xml are brought by HADOOP-16152. The patch of HADOOP-16152 looks excluding them on purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I ran following on hadoop dist built by |
…tion with only shaded client jars
8c0899f to
66f7ddd
Compare
Thanks @iwasakims for verifying. |
|
I ran the above command and verified the patch fixed the issue. |
|
💔 -1 overall
This message was automatically generated. |
ayushtkn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanx @vinayakumarb for the fix.
I verified the fix in my same Hive code and it now works with your changes :-)
+1
iwasakims
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I got no issue on running the job on minicluster with the patch.
$ HADOOP_CLASSPATH=share/hadoop/tools/lib/junit-4.12.jar bin/mapred minicluster -format -nnport 8020 -nnhttpport 9870 -rmport 8032
$ java -classpath etc/hadoop:share/hadoop/common/lib/*:share/hadoop/client/*:share/hadoop/mapreduce/hadoop-mapreduce-examples-3.4.0-SNAPSHOT.jar org.apache.hadoop.examples.QuasiMonteCarlo -Dyarn.resourcemanager.address=localhost:8032 1 100
|
Thanks @aajisaka @iwasakims and @ayushtkn for reviews. |
…tion with only shaded client jars (#2075)
…tion with only shaded client jars (#2075)
…tion with only shaded client jars (apache#2075) (cherry picked from commit fc4ebb0) Conflicts: hadoop-client-modules/hadoop-client-minicluster/pom.xml hadoop-client-modules/hadoop-client-runtime/pom.xml Change-Id: I36f64efb911a16b865a6b4856bd0f8d595af1c97
…tion with only shaded client jars (apache#2075)
No description provided.