zeppelin icon indicating copy to clipboard operation
zeppelin copied to clipboard

[ZEPPELIN-5249]. Update to thrift 0.14.2

Open PrarthiJain opened this issue 4 years ago • 27 comments
trafficstars

What is this PR for?

• This PR is to upgrade thrift to 0.14.2

What type of PR is it?

• [Improvement]

Todos

• [ ] - Task

What is the Jira issue?

• https://issues.apache.org/jira/browse/ZEPPELIN-5249

How should this be tested?

• CI pass

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

PrarthiJain avatar Apr 08 '21 12:04 PrarthiJain

@prabhjyotsingh @VipinRathor @zjffdu, Could you please help in reviewing? Thanks.

PrarthiJain avatar Apr 08 '21 12:04 PrarthiJain

Please remove your changes in the zeppelin-web submodule. I closed your JIRA ticket because it duplicates another one. Please change your PR title and link in your PR text.

Maybe we can remove the System.exit(0) for a clean shutdown of the Zeppelin interpreter. It would be nice if you could test this. See https://issues.apache.org/jira/browse/ZEPPELIN-5249

Reamer avatar Apr 08 '21 12:04 Reamer

This PR also affects #4072, which still uses the old Thrift version.

Reamer avatar Apr 09 '21 08:04 Reamer

Thanks, @Reamer. Could you please help with the steps to test for a successful shutdown of the Zeppelin interpreter?

PrarthiJain avatar Apr 09 '21 10:04 PrarthiJain

Thanks, @Reamer. Could you please help with the steps to test for a successful shutdown of the Zeppelin interpreter?

After #4072 has been merged, I can help you,

Reamer avatar Apr 09 '21 11:04 Reamer

@Reamer The checks are unexpectedly failing. Could you please help with this, along with the code review? Thank you.

PrarthiJain avatar Apr 30 '21 06:04 PrarthiJain

CI is currently broken. Please rebase after #4107 is merged.

Reamer avatar May 03 '21 14:05 Reamer

#4107 was merged. Please rebase to current master.

Reamer avatar May 05 '21 09:05 Reamer

Please take a look at the Cassandra interpreter. I think the following stack trace relates to your change.

WARN  [07:27:58,378][] org.apache.cassandra.db.SystemKeyspace@:getLocalHostId No host ID found, created 729402a1-a3b2-482a-aeb7-7238ab0f53ff (Note: This should happen exactly once per node). 
Exception (java.lang.NoClassDefFoundError) encountered during startup: org/apache/thrift/transport/TFramedTransport$Factory
java.lang.NoClassDefFoundError: org/apache/thrift/transport/TFramedTransport$Factory
	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:435)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:620)
	at org.cassandraunit.utils.EmbeddedCassandraServerHelper.lambda$startEmbeddedCassandra$1(EmbeddedCassandraServerHelper.java:152)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.apache.thrift.transport.TFramedTransport$Factory
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
	... 6 more

Reamer avatar May 11 '21 10:05 Reamer

ping @PrarthiJain

zjffdu avatar May 15 '21 04:05 zjffdu

@Reamer @zjffdu @prabhjyotsingh. I have uploaded a new patch with thrift dependency addition. We can remove that later on the 4.0 version upgrade. Let me know your thoughts. Thanks.

PrarthiJain avatar May 17 '21 09:05 PrarthiJain

It looks like cause spark/flink tests fail

zjffdu avatar May 17 '21 15:05 zjffdu

@Reamer @zjffdu @prabhjyotsingh, The build failed with Could not resolve dependencies for...from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: .... Could you please help? Thanks.

PrarthiJain avatar May 26 '21 07:05 PrarthiJain

@PrarthiJain I also notice that today, I am looking into this issue, will keep you updated

zjffdu avatar May 26 '21 07:05 zjffdu

@PrarthiJain I made a hotfix for the CI, please rebase your PR and trigger the CI again.

zjffdu avatar May 27 '21 05:05 zjffdu

Thanks @zjffdu

PrarthiJain avatar May 27 '21 14:05 PrarthiJain

@PrarthiJain Could you check the failed test ? AFAIK, frontend / test-selenium-with-spark-module-for-spark-2-3 and core / jdbcIntegrationTest-and-unit-test-of-Spark-2-4-with-Scala-2-11 has flaky tests, others should be successful.

zjffdu avatar Jun 09 '21 12:06 zjffdu

It seems the Alluxio Interpreter Test is failing, should be fixed with- #2900.

PrarthiJain avatar Jun 10 '21 10:06 PrarthiJain

@PrarthiJain What about other failed tests ?

zjffdu avatar Jun 11 '21 03:06 zjffdu

@zjffdu Those were succeeded after re-triggering on my forked repo. However, I think I don't have permission to re-trigger and check the failed tests here. Do I need to upload a new patch again? Thanks.

PrarthiJain avatar Jun 11 '21 08:06 PrarthiJain

@PrarthiJain You can do a force push to trigger the CI

zjffdu avatar Jun 11 '21 08:06 zjffdu

@PrarthiJain AlluxioInterpreterTest is failed https://github.com/apache/zeppelin/pull/4089/checks?check_run_id=2801927837

zjffdu avatar Jun 16 '21 07:06 zjffdu

Thrift 0.14.2 has been released. This version also fixed a regression in the Java library. Maybe we should wait for this version.

Reamer avatar Jun 18 '21 07:06 Reamer

ping @PrarthiJain

zjffdu avatar Jun 26 '21 07:06 zjffdu

@Reamer @zjffdu @prabhjyotsingh, I have updated the patch. Could you please help to review it? Thanks.

PrarthiJain avatar Jul 15 '21 08:07 PrarthiJain

@Reamer @zjffdu @prabhjyotsingh, I have updated the patch. Could you please help to review it? Thanks.

I think your problems with updating the Thrift version are due to the ugly use of the interpreter shade jar.

https://github.com/apache/zeppelin/blob/0ec89755d3155c254bdf33cb7e9603f10708af65/zeppelin-interpreter-parent/pom.xml#L35-L46

I am trying to solve the problem in my interpreter_shade branch. . But the changes depend on an update of the shade-plugin (https://github.com/apache/maven-shade-plugin/pull/100 or https://github.com/apache/maven-shade-plugin/pull/105) because Intellji does not use the shading jars IDEA-93855 correctly.

Reamer avatar Jul 19 '21 08:07 Reamer

Thanks, @Reamer. Sure will wait till the next release of maven-shade-plugin

PrarthiJain avatar Jul 26 '21 05:07 PrarthiJain