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

Support hadoop 3.1.1 #296

Open
wants to merge 2 commits into
base: release-v2.3.2_0.11.0
Choose a base branch
from
Open
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
27 changes: 19 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ coverageHighlighting := {
else true
}

artifactName := { (sv: ScalaVersion, module: ModuleID, artifact: Artifact) =>
artifact.name + "_" + "2.11" + "-" + module.revision + "_" + "hadoop3.1.1" + "." + artifact.extension
}

scalastyleSources in Compile ++= {unmanagedSourceDirectories in Compile}.value
scalastyleSources in Test ++= {unmanagedSourceDirectories in Test}.value

Expand Down Expand Up @@ -195,16 +199,23 @@ libraryDependencies ++= excludeJpountz(


lazy val miniClusterDependencies = excludeJavaxServlet(Seq(
"org.apache.hadoop" % "hadoop-hdfs" % "2.8.3" % "compile,test" classifier "" classifier "tests",
"org.apache.hadoop" % "hadoop-common" % "2.8.3" % "compile,test" classifier "" classifier "tests" ,
"org.apache.hadoop" % "hadoop-client" % "2.8.3" % "compile,test" classifier "" classifier "tests" ,
"org.apache.hadoop" % "hadoop-mapreduce-client-jobclient" % "2.8.3" % "compile,test" classifier "" classifier "tests",
"org.apache.hadoop" % "hadoop-yarn-server-tests" % "2.8.3" % "compile,test" classifier "" classifier "tests",
"org.apache.hadoop" % "hadoop-yarn-server-web-proxy" % "2.8.3" % "compile,test" classifier "" classifier "tests",
"org.apache.hadoop" % "hadoop-minicluster" % "2.8.3" % "compile,test"))

"org.apache.hadoop" % "hadoop-hdfs" % "3.1.1" % "compile,test" classifier "" classifier "tests",
"org.apache.hadoop" % "hadoop-common" % "3.1.1" % "compile,test" classifier "" classifier "tests" ,
"org.apache.hadoop" % "hadoop-client" % "3.1.1" % "compile,test" classifier "" classifier "tests" ,
"org.apache.hadoop" % "hadoop-mapreduce-client-jobclient" % "3.1.1" % "compile,test" classifier "" classifier "tests",
"org.apache.hadoop" % "hadoop-yarn-server-tests" % "3.1.1" % "compile,test" classifier "" classifier "tests",
"org.apache.hadoop" % "hadoop-yarn-server-web-proxy" % "3.1.1" % "compile,test" classifier "" classifier "tests",
"org.apache.hadoop" % "hadoop-minicluster" % "3.1.1" % "compile,test"))
libraryDependencies ++= miniClusterDependencies

dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-core" % "2.6.7"
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.6.7"
dependencyOverrides += "com.fasterxml.jackson.module" % "jackson-module-scala_2.11" % "2.6.7"
libraryDependencies += "org.apache.hive" % "hive-common" % "3.1.1"

excludeDependencies += "org.spark-project.spark" % "hive-exec"

scalacOptions ++= Seq("-deprecation", "-unchecked")

pomIncludeRepository := { x => false }
Expand Down