티스토리 뷰

공부

[sbt] sbt-assembly (fat jar)

승가비 2023. 5. 16. 00:14
728x90
# project/plugins.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.1.1")
# build.sbt
assemblyMergeStrategy in assembly := {
  case PathList("META-INF", xs @ _*) => MergeStrategy.discard
  case x => MergeStrategy.first
}
sbt clean compile assembly
jar tf asdf.jar

https://stackoverflow.com/questions/28459333/how-to-build-an-uber-jar-fat-jar-using-sbt-within-intellij-idea

 

How to build an Uber JAR (Fat JAR) using SBT within IntelliJ IDEA?

I'm using SBT (within IntelliJ IDEA) to build a simple Scala project. I would like to know what is the simplest way to build an Uber JAR file (aka Fat JAR, Super JAR). I'm currently using SBT but...

stackoverflow.com

https://andres.jaimes.net/scala/how-to-create-a-fat-jar/

 

How to create a self-contained jar file (fat jar) using sbt

In this article I'm going to describe the process of creating a fat jar for a Scala project using sbt.

andres.jaimes.net

https://stackoverflow.com/questions/32859316/include-dependencies-in-jar-using-sbt-package

 

Include Dependencies in JAR using SBT package

Apparently project dependencies are not being packaged into the jar generated by: sbt package How can dependencies be included?

stackoverflow.com

https://www.baeldung.com/jar-file-get-class-names

 

---

INFO metastore: Trying to connect to metastore with URI thrift://ip-172-31-39-192.ap-south-1.compute.internal:9083
WARN Hive: Failed to access metastore. This class should not accessed in runtime.
org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
    at org.apache.hadoop.hive.ql.metadata.Hive.getAllDatabases(Hive.java:1236)

 

libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.4.5" % "provided"

https://stackoverflow.com/questions/63439816/aws-emr-spark-use-glue-as-hive-metastore

 

Aws Emr Spark use glue as hive metastore?

Hi I have hive external table which uses aws glue as data-catalog.The glue catalog is accessible to emr. I have checked it via hive console. But when I try to access hive table through scala progra...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[js] sleep single thread  (0) 2023.05.16
[pypi] seunggabi_core_python  (0) 2023.05.16
[shell] replace file (awk)  (0) 2023.05.15
[aws] glacier `restore-object.sh`  (0) 2023.05.12
[aws] cli check version  (0) 2023.05.12
댓글