-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-3124] Fix the jar version conflict in uber-jar #2035
[SPARK-3124] Fix the jar version conflict in uber-jar #2035
Conversation
QA tests have started for PR 2035 at commit
|
QA tests have started for PR 2035 at commit
|
@@ -1172,8 +1172,13 @@ | |||
<dependency> | |||
<groupId>org.apache.zookeeper</groupId> | |||
<artifactId>zookeeper</artifactId> | |||
<version>${zookeeper.version}</version> |
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.
There should not be modified.
We should modify the file sql/hive-thriftserver/pom.xml
<dependency>
<groupId>org.spark-project.hive</groupId>
<artifactId>hive-cli</artifactId>
<version>${hive.version}</version>
<exclusions>
<exclusion>
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
</exclusion>
</exclusions>
</dependency>
QA tests have finished for PR 2035 at commit
|
QA tests have finished for PR 2035 at commit
|
7d9e366
to
182b52b
Compare
QA tests have started for PR 2035 at commit
|
QA tests have finished for PR 2035 at commit
|
test this please. |
QA tests have started for PR 2035 at commit
|
QA tests have finished for PR 2035 at commit
|
test this please |
I commented on the JIRA - but this is likely better solved by a dependency in the hive build, not changing around core dependencies. |
QA tests have started for PR 2035 at commit
|
QA tests have finished for PR 2035 at commit
|
81fc0d7
to
ade1ae0
Compare
@@ -65,6 +65,7 @@ class HiveThriftServer2Suite extends FunSuite with BeforeAndAfterAll with TestUt | |||
val command = | |||
s"""../../sbin/start-thriftserver.sh | |||
| --master local | |||
| --hiveconf hive.root.logger=INFO,console |
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.
Make sure the hive test will be triggered.
@pwendell I've updated the jira. You are right, it works well with hadoop 2.3, but failed under hadoop-2.0.0-mr1-cdh4.3.0, which I am working with. |
QA tests have started for PR 2035 at commit
|
I was trying to update the |
QA tests have finished for PR 2035 at commit
|
It passed the unit test in my local. |
test this please |
QA tests have started for PR 2035 at commit
|
I think we need to modify this file: <dependency>
<groupId>org.spark-project.hive</groupId>
<artifactId>hive-cli</artifactId>
<version>${hive.version}</version>
<exclusions>
<exclusion>
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
</exclusion>
</exclusions>
</dependency> |
QA tests have finished for PR 2035 at commit
|
I pulled the latest master and only update the That's why I changed the |
Sorry for the confusing, I've removed the |
|
Exactly, I did the same test under hadoop-2.3, it plays well, but not for hadoop.version=2.0.0-mr1-cdh4.3.0. Probably the maven exclusion rule are not well configured for the earlier released hadoop. |
@chenghao-intel, what is the status of this? Can you update this PR? |
ade1ae0
to
f96ec21
Compare
QA tests have started for PR 2035 at commit
|
@@ -108,6 +108,7 @@ class HiveThriftServer2Suite extends FunSuite with Logging { | |||
logError(s"Failed to start Hive Thrift server within $timeout", cause) | |||
case _ => | |||
} | |||
|
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.
Minor change for triggering the HQL testing.
@marmbrus this PR will fix method signature exception for the earlier released hadoop version in the uber-jar (like 2.0.0-mr1-cdh4.3.0), and it's harmless for current trunk(which is based on hadoop 2.3.0 for unit test). I created this PR just in case someone making uber-jar with different hadoop version other than default, which may causes runtime exception, like what I did. |
QA tests have finished for PR 2035 at commit
|
retest this please. |
QA tests have started for PR 2035 at commit
|
QA tests have finished for PR 2035 at commit
|
test this please |
QA tests have started for PR 2035 at commit
|
LGTM |
QA tests have finished for PR 2035 at commit
|
QA tests have started for PR 2035 at commit
|
Tests timed out after a configured wait of |
QA tests have started for PR 2035 at commit
|
QA tests have finished for PR 2035 at commit
|
<exclusion> | ||
<groupId>org.jboss.netty</groupId> | ||
<artifactId>netty</artifactId> | ||
</exclusion> |
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.
When building against Hadoop-2.0.2, I found that only this dependency exclusion (not the additional one you included below) was necessary to get past the error you mentioned.
thanks, closing this PR. |
Co-authored-by: Liang-Chi Hsieh <[email protected]>
Both netty-3.2.2.Final.jar and netty-3.6.6.Final.jar are flatten into the assembly package, however, the class(NioWorker) signature difference leads to the failure in launching sparksql CLI/ThriftServer.
And also a tiny bug found in
CLISuite
&HiveThriftServer2Suite
after fixing the duplicated netty jar.