You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "rmannibucau (via GitHub)" <gi...@apache.org> on 2025/12/05 21:11:06 UTC

[PR] Deploy the assembly as an artifact [spark]

rmannibucau opened a new pull request, #53351:
URL: https://github.com/apache/spark/pull/53351

   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
     2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
     4. Be sure to keep the PR description updated to reflect all changes.
     5. Please write your PR title to summarize what this PR proposes.
     6. If possible, provide a concise example to reproduce the issue for a faster review.
     7. If you want to add a new configuration, please read the guideline first for naming configurations in
        'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
     8. If you want to add or modify an error type or message, please read the guideline first in
        'common/utils/src/main/resources/error/README.md'.
   -->
   
   ### What changes were proposed in this pull request?
   
   Re-enable assembly artifacts  - not that I'm not 100% sure of release process so maybe I missed something.
   
   
   ### Why are the changes needed?
   
   Being able to download spark distro (ideally any flavor but the base one is the most important) enables to provide custom distro with prepackaged bundles (like Apache Iceberg for ex).
   `--packages` option can be tricky on some env or with some deps.
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   No zip published, nothing breaks.
   
   
   ### How was this patch tested?
   
   Not tested in release process.
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Nop.
   


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3639382549

   Could you give me the specific link of that part from Apache Spark website?
   > the assembly is what is proposed on apache spark website


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3674066722

   It doesn't make sense to me because Apache Spark Standalone Cluster has the full distribution already to launch `Spark Master` and `Spark Worker` JVM. What you need is to deploy only your application, not a custom Apache Spark again.
   
   > No, I'm more trying to do a custom distro to use on local machine of ops to interact with a Spark Cluster - but I need to add a bunch of jars and props.
   
   FYI, Apache Spark provides official `Apache K8s Operator` here.
   - https://github.com/apache/spark-kubernetes-operator/
   - https://artifacthub.io/packages/helm/spark-kubernetes-operator/spark-kubernetes-operator/


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3638515480

   Let me close this because this is a great regression from Apache Spark community perspective. We can continue our discussion on the closed PR.
   > This would be a great enhancement to the release


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "rmannibucau (via GitHub)" <gi...@apache.org>.
rmannibucau commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3626738277

   @dongjoon-hyun hello, can you guide me on how you do the releases so I can attach the tgz/zip to the deployment properly please? This would be a great enhancement to the release


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #53351: [WIP] Deploy the assembly as an artifact
URL: https://github.com/apache/spark/pull/53351


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "rmannibucau (via GitHub)" <gi...@apache.org>.
rmannibucau commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3677934639

   @dongjoon-hyun 
   
   > It doesn't make sense to me because Apache Spark Standalone Cluster has the full distribution already to launch Spark Master and Spark Worker JVM. What you need is to deploy only your application, not a custom Apache Spark again.
   
   This is exactly the point to have a custom distribution, kind of include the application inside it.
   
   Why do you have spark shell in spark distribution? It is an application so must not be there from your statement, this is exactly the same.
   
   Ultimately I do not want to have to rely on the internet or a random network config (think enterprise) to download the application so I want to bundle it upfront.
   
   > FYI, Apache Spark provides official Apache K8s Operator
   
   This is what i'm using for most applicative use cases but I need the custom distro case for human interaction (spark sql) - once again just to make it simple.
   
   `--packages` and all friends relying on ivy are not stable enough and too poorly configurable (excludes are a pain for ex) and having to download spark and then the libraries is pointless.
   
   Look at apache iceberg case, you just need the jars to use it with Apache Spark SQL Shell, why can't we make a distribution with the application prebundled to make it easier. Will also enable to customize some library version (parquet) which are conflicting and enforces you to use userClassPathFirst which has other side effects.
   
   So yes, this is needed to cover all usages even if most automated usages are, as you say, done through other ways.
   
   Side note: just out of curiosity, why do you fight that much for something trivial to do? Is there a blocker in the release to deploy the zip/targz? We do it in plenty of apache projects and every is happy.
   


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "rmannibucau (via GitHub)" <gi...@apache.org>.
rmannibucau commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3682048176

   @dongjoon-hyun ok, let step back cause for me application can be interactive or not but you differentiate both very strictly in your answer so let's only focus on interactive case please (sql shell).
   
   How launching `./bin/spark-whatever` I can do a `SELECT * from my_catalog.my_table` out of the box - submitting an application defeats the purpose of providing any distribution there?


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3638577819

   Personally, I don't recommend `assembly` because I believe `assembly` feature has not been maintained properly since 2.0.0.


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "rmannibucau (via GitHub)" <gi...@apache.org>.
rmannibucau commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3640762476

   @dongjoon-hyun this is what I'm referring https://spark.apache.org/downloads.html (you know, latest and previous are not using the same link and archives.apache.org are not considered stable so both cases are broken to consume the zip/tgz).
   
   > I thought you are trying to build a far jar like Apache Spark 1.6.x. Did I understand your question correctly?
   
   
   No, I'm more trying to do a custom distro to use on local machine of ops to interact with a Spark Cluster - but I need to add a bunch of jars and props.


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3679606370

   No, you don't need to do that for your applications., @rmannibucau .
   > This is exactly the point to have a custom distribution, kind of include the application inside it.
   
   Please submit your application according to the Apache Spark community guideline.
   - https://spark.apache.org/docs/latest/submitting-applications.html
   
   For the following question, `Spark Shell` is a part of Apache Spark Interactive Environment, not an application.
   > Why do you have spark shell in spark distribution? It is an application so must not be there from your statement, this is exactly the same.
   
   Let's talk about the applications (including yours). Since it should be built and deployed independently, you can see that it's only `1.5MB` in `spark-4.1.0-bin-hadoop3/examples/jars` directory instead of `spark-4.1.0-bin-hadoop3/jars`, @rmannibucau . You need to build like `spark-examples_2.13-4.1.0.jar` independently and provide via `submitting-applications.html`.
   ```
   $ ls -alh spark-4.1.0-bin-hadoop3/examples/jars
   total 3296
   drwxr-xr-x@ 4 dongjoon  staff   128B Dec 11 23:32 .
   drwxr-xr-x@ 4 dongjoon  staff   128B Dec 11 23:32 ..
   -rw-r--r--@ 1 dongjoon  staff    79K Dec 11 23:32 scopt_2.13-3.7.1.jar
   -rw-r--r--@ 1 dongjoon  staff   1.5M Dec 11 23:32 spark-examples_2.13-4.1.0.jar
   ```


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "rmannibucau (via GitHub)" <gi...@apache.org>.
rmannibucau commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3657700646

   @dongjoon-hyun any hope we work on that issue so the assembly is consummable with maven dependency plugin "natively"? Happy to adjust the PR once I know how you do release it (if manual it is fine to keep it closed and just add it in the release steps for me if you do prefer)


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [WIP] Deploy the assembly as an artifact [spark]

Posted by "rmannibucau (via GitHub)" <gi...@apache.org>.
rmannibucau commented on PR #53351:
URL: https://github.com/apache/spark/pull/53351#issuecomment-3639302516

   @dongjoon-hyun the assembly is what is proposed on apache spark website download so spark didnt drop anything, just dropped the automotion and central publication which is negative from an user standpoint and leads to issues in downstream usages and automotion since the download urls are not stable (it would be from central.
   
   Also note that from a security standpoint it is not worse than all apache spark distro (from the tgz of the download area to the docker image) _by design_.
   
   So overall I don't see why not fixing the convenient deliverable fro mmy window, will help the community and not hurt spark more than it is today since the bundles are archives automatically anyway and must be "immutable" (in the spirit since nothing is never immutable).
   
   Can you please revise it since it doesn't impact spark project more than having to push the binary(ies) on nexus?
   


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org