hivefans

build.sbt

Aug 6th, 2020
1,775
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×