Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/npe error #537

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ project/plugins/project/
# Scala-IDE specific
.scala_dependencies
.worksheet
.bsp

src/main/scala/com/*
35 changes: 30 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,37 @@ libraryDependencies ++= Seq(
)

libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % "provided",
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
"org.apache.spark" %% "spark-mllib" % sparkVersion % "provided",
"com.holdenkarau" %% "spark-testing-base" % s"3.5.1_1.5.3" % "test" intransitive(),
"org.scala-lang" % "scala-library" % scalaVersion.value % "compile"
"org.apache.spark" %% "spark-core" % sparkVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion,
"org.apache.spark" %% "spark-mllib" % sparkVersion ,
"com.holdenkarau" %% "spark-testing-base" % s"3.5.0_1.4.7" % "test" intransitive(),
"org.scala-lang" % "scala-library" % scalaVersion.value
)
// https://mvnrepository.com/artifact/software.amazon.awssdk/s3
libraryDependencies += "software.amazon.awssdk" % "s3" % "2.25.23"

libraryDependencies += "com.upplication" % "s3fs" % "2.2.2"

// https://mvnrepository.com/artifact/org.apache.spark/spark-sql-kafka-0-10
libraryDependencies += "org.apache.spark" %% "spark-sql-kafka-0-10" % "3.5.1"


// https://mvnrepository.com/artifact/org.apache.spark/spark-hive
libraryDependencies += "org.apache.spark" %% "spark-hive" % "3.5.1"

// https://mvnrepository.com/artifact/org.apache.spark/spark-streaming
libraryDependencies += "org.apache.spark" %% "spark-streaming" % "3.5.1"

// https://mvnrepository.com/artifact/org.scala-lang/scala-reflect
libraryDependencies += "org.scala-lang" % "scala-reflect" % "2.12.19"

// https://mvnrepository.com/artifact/com.typesafe.scala-logging/scala-logging
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.5"

// https://mvnrepository.com/artifact/org.typelevel/cats-kernel
libraryDependencies += "org.typelevel" %% "cats-kernel" % "2.10.0"

libraryDependencies += "org.zouzias" %% "spark-lucenerdd" % "0.4.0"

// Read version in code from build.sbt
lazy val root = (project in file(".")).
Expand Down
298 changes: 0 additions & 298 deletions scalastyle-config.xml

This file was deleted.

3 changes: 3 additions & 0 deletions src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ lucenerdd {
// Use 'disk' to store the index in Java's temp directory
// Otherwise the index will be stored in memory
// Do not use memory, see http://lucene.apache.org/core/7_5_0/core/org/apache/lucene/store/RAMDirectory.html
// store.mode = "s3"
// store.s3.index.bucket = "lucene-kashyap"
// store.s3.taxonomy.bucket = "lucene-kashyap-taxonomy"
store.mode = "disk"
store.mode = ${?LUCENERDD_INDEX_STORE_MODE}

Expand Down
Loading