Skip to content
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

Create hoodie-presto bundle jar. fixes #567 #571

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

bhasudha
Copy link
Contributor

Added hoodie-presto-bundle module under packaging/ . Tested this jar for presto queries on both copy-on-write and merge-on-read tables. Please let me know what you think!

@CLAassistant
Copy link

CLAassistant commented Feb 13, 2019

CLA assistant check
All committers have signed the CLA.


<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if we should just reuse the hadoop jars from Presto runtime as-is?

They are not shaded below and thus could bring in new jars that could conflict with ones already presto uses?

Copy link
Contributor

@n3nash n3nash Feb 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Additionally, even if the current presto versions runs fine, upgrades may cause issues since the runtime dependencies may change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the org.apache.hadoop* jars are excluded from shading already - cd78935#diff-9b589d19949c0d8c4a89834d2d4d80b2R169 but I will check for other jars too.

Exclude common dependencies that are available in Presto
<exclude>org.apache.hive:*</exclude>
<exclude>org.apache.derby:derby</exclude>
<!--Already a dependency in presto-hive connector-->
<exclude>org.apache.thrift:*</exclude>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excluded thrift since its available in Presto.

<!--Already a dependency in presto-hive connector-->
<exclude>org.apache.thrift:*</exclude>
<!--Provided by aws-java-sdk-core dependency in presto-hive connector-->
<exclude>org.apache.httpcomponents:*</exclude>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same. This is also available in Presto. So excluding it here.

@bhasudha
Copy link
Contributor Author

I ensured either the dependencies are relocated in this bundle or are excluded (in which case Presto will bring in these dependencies). I was able to re-run the same queries with this new jar.

@vinothchandar
Copy link
Member

lgtm.. thanks for the contribution..

@vinothchandar vinothchandar merged commit 75c7a26 into apache:master Feb 25, 2019
@vinothchandar
Copy link
Member

@bhasudha can you please update the docs as well after you successfully deploy the bundle

vinishjail97 added a commit to vinishjail97/hudi that referenced this pull request Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants