Advertisement
hivefans

build.sbt

Aug 6th, 2020
2,783
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.80 KB | None | 0 0
  1. // spark读取kafka json嵌套数组数据  
  2. name := "scaladev"
  3.  
  4. version := "0.1"
  5.  
  6. scalaVersion := "2.11.12"
  7.  
  8. val sparkVersion = "2.3.0"
  9.  
  10. libraryDependencies ++= Seq(
  11.   "joda-time" % "joda-time" % "2.3",
  12.   "org.joda" % "joda-convert" % "1.6",
  13.   "org.apache.spark" %% "spark-core" % sparkVersion,
  14.   "org.apache.spark" %% "spark-sql" % sparkVersion,
  15.   "org.apache.spark" %% "spark-mllib" % sparkVersion,
  16.   "org.apache.spark" %% "spark-streaming" % sparkVersion,
  17.   "mysql" % "mysql-connector-java" % "5.1.6",
  18.   "org.apache.hive.hcatalog" % "hive-hcatalog-core" % "2.1.1"
  19.  
  20. )
  21. libraryDependencies += "org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.3.0"
  22. libraryDependencies += "org.apache.spark" % "spark-sql-kafka-0-10_2.11" % "2.3.0"
  23. libraryDependencies += "com.alibaba" % "fastjson" % "1.2.39"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement