You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "yuqi1129 (via GitHub)" <gi...@apache.org> on 2024/08/15 07:30:11 UTC

[PR] [#4525] improvement(catalog-hadoop): Shrink Hadoop catalog binary package size. [gravitino]

yuqi1129 opened a new pull request, #4535:
URL: https://github.com/apache/gravitino/pull/4535

   
   
   ### What changes were proposed in this pull request?
   
   Remove some unused dependencies to reduce hadoop catalog package size to 44MB
   
   ### Why are the changes needed?
   
   Reduce the size of the total release package. 
   
   Fix: #4525 
   
   ### Does this PR introduce _any_ user-facing change?
   
   N/A.
   
   ### How was this patch tested?
   
   Exist UT and IT.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4525] improvement(catalog-hadoop): Shrink Hadoop catalog binary package size to 44MB. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #4535:
URL: https://github.com/apache/gravitino/pull/4535#discussion_r1734752564


##########
catalogs/catalog-hadoop/build.gradle.kts:
##########
@@ -91,6 +97,12 @@ tasks {
     from("build/libs") {
       exclude("slf4j-*.jar")
       exclude("guava-*.jar")
+      exclude("curator-*.jar")
+      exclude("netty-*.jar")
+      exclude("snappy-*.jar")
+      exclude("zookeeper-*.jar")
+      exclude("jetty-*.jar")
+      exclude("javax.servlet-*.jar")

Review Comment:
   done.
   ![image](https://github.com/user-attachments/assets/ad45fca1-fbe2-428f-a521-1d0fa1b0d509)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4525] improvement(catalog-hadoop): Shrink Hadoop catalog binary package size to 44MB. [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4535:
URL: https://github.com/apache/gravitino/pull/4535#issuecomment-2309948129

   @yuqi1129 , can you please all the jars are you excluded?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4525] improvement(catalog-hadoop): Shrink Hadoop catalog binary package size to 44MB. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #4535:
URL: https://github.com/apache/gravitino/pull/4535#issuecomment-2311455006

   
   > I guess some jars like jetty may not be needed, maybe we can also exclude them.
   
   Okay, let me give it a try. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4525] improvement(catalog-hadoop): Shrink Hadoop catalog binary package size to 44MB. [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4535:
URL: https://github.com/apache/gravitino/pull/4535#issuecomment-2311453581

   I guess some jars like jetty may not be needed, maybe we can also exclude them.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4525] improvement(catalog-hadoop): Shrink Hadoop catalog binary package size to 44MB. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #4535:
URL: https://github.com/apache/gravitino/pull/4535#issuecomment-2310414783

   > @yuqi1129 , can you please list all the jars are you excluded?
   
   Yeah.
   
   The following picture are all jars after optimization. 
   ![image](https://github.com/user-attachments/assets/2bfd5516-8176-4c3a-b5c4-be52f1543c30)
   
   The problem is that many jars have the same name as the server library directory but have different versions. We cannot evaluate a result if we exclude them directly, so I am hesitant to do so. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4525] improvement(catalog-hadoop): Shrink Hadoop catalog binary package size to 44MB. [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #4535:
URL: https://github.com/apache/gravitino/pull/4535#discussion_r1732354061


##########
catalogs/catalog-hadoop/build.gradle.kts:
##########
@@ -91,6 +97,12 @@ tasks {
     from("build/libs") {
       exclude("slf4j-*.jar")
       exclude("guava-*.jar")
+      exclude("curator-*.jar")
+      exclude("netty-*.jar")
+      exclude("snappy-*.jar")
+      exclude("zookeeper-*.jar")
+      exclude("jetty-*.jar")
+      exclude("javax.servlet-*.jar")

Review Comment:
   Looks like some jetty libraries still exist in your screenshot, can you please check again.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4525] improvement(catalog-hadoop): Shrink Hadoop catalog binary package size to 44MB. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #4535:
URL: https://github.com/apache/gravitino/pull/4535#issuecomment-2311717881

   After another round of optimization, the final package size is about 30M. More information can be seen below:
   ![image](https://github.com/user-attachments/assets/fdb61241-ad6b-4842-9cfc-b778560cbf92)
   <img width="1415" alt="image" src="https://github.com/user-attachments/assets/c023998a-15e0-49da-8bc7-bd9c45b808c6">
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4525] improvement(catalog-hadoop): Shrink Hadoop catalog binary package size to about 30MB. [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #4535:
URL: https://github.com/apache/gravitino/pull/4535


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org