gpt4 book ai didi

scala - sbt 程序集文档中的 "already part of the container?"是什么意思

转载 作者:行者123 更新时间:2023-12-03 23:02:32 29 4
gpt4 key购买 nike

我在 sbt assembly 尝试打包我的多项目 spark 作业时遇到重复数据删除错误。我查看了 sbt 程序集文档,它说

If you're trying to exclude JAR files that are already part of the container (like Spark), consider scoping the dependent library to "provided" configuration:

但是“已经是容器的一部分”是什么意思?我已经复制了下面的完整链接。

https://github.com/sbt/sbt-assembly#excluding-jars-and-files

最佳答案

这意味着特定的目标节点(容器,如 Spark)已经拥有所有需要的 jar,不需要在程序集中包含相同的 jar。

这就是provided范围的意思,即在运行环境中提供了一个特定的库,因此不要将它包含在最终的jar中,只需引用它即可。

关于scala - sbt 程序集文档中的 "already part of the container?"是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55212495/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com