Introduction This article will cover how to query Postgresql from Spark, using Scala. To know more about Scala, check out any of the previous Scala articles. Spark PostgreSQL Dependencies Below, find dependencies needed to add to the build.sbt file. libraryDependencies += “org.postgresql” % “postgresql” % “42.2.5”libraryDependencies += “org.apache.spark” %% “spark-mllib” % sparkVersion % Provided To … Read morePostgresql from Spark, how to query?
Introduction to Scala Methods In order to understand this article, one should understand Scala Variables. After learning about Scala Variables, you can learn about Scala Methods. What is a method? A method, sometimes called a function, in computer programming, is a black box which takes input(s), executes one or more operations, and finally yields an output … Read moreScala Methods – Syntax, Declaration, Use case, Examples