-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* clean up and formatting * formatting testcases * upgraded to scala 2.11.8 * update readme * Clean up .gitignore file, remove tf folder inside test folder * Rename spark-tf-core to core, and update all references * Remove core module, add License file and make pom changes * Renaming namespace, update all files with new namespace * Fix custom schema, correct pom * update readme * update readme * add sbt build files * Add conversion from mvn to sbt (#15) * Add classifier to bring in correct shaded jar and class * Add classifier to bring in correct shaded jar and class (#16) * Add travis.yml file * Refactor travis file * Refactor travis file * Update README.md * Add Travis support to sbt branch (#17) * Add classifier to bring in correct shaded jar and class * Add travis.yml file * Refactor travis file * Refactor travis file * Update README.md * Cleanup * Remove central1 dependency in sbt and sudo requirement from travis.yml (#18) * Add classifier to bring in correct shaded jar and class * Add travis.yml file * Refactor travis file * Refactor travis file * Update README.md * Cleanup * SBT working, Cleaned up (#19) * Add conversion from mvn to sbt * Clean up for sbt * Add exclude jars to build.sbt and update readme * use filterNot * Refactor to use filterNot (#20) * Add classifier to bring in correct shaded jar and class * Add travis.yml file * Refactor travis file * Refactor travis file * Update README.md * Cleanup * use filterNot * Add sbt-spark-package plugin support
- Loading branch information
1 parent
72e9343
commit e7d123e
Showing
6 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ target | |
tf-sandbox | ||
spark-warehouse/ | ||
metastore_db/ | ||
project/project/ | ||
test-output.tfr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
language: scala | ||
|
||
# Cache settings here are based on latest SBT documentation. | ||
cache: | ||
directories: | ||
- $HOME/.ivy2/cache | ||
- $HOME/.sbt/boot/ | ||
|
||
before_cache: | ||
# Tricks to avoid unnecessary cache updates | ||
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete | ||
- find $HOME/.sbt -name "*.lock" -delete | ||
|
||
scala: | ||
- 2.11.8 | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
script: | ||
- sbt ++$TRAVIS_SCALA_VERSION clean publish-local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
scalaVersion in Global := "2.11.8" | ||
|
||
def ProjectName(name: String,path:String): Project = Project(name, file(path)) | ||
|
||
resolvers in Global ++= Seq("https://tap.jfrog.io/tap/public" at "https://tap.jfrog.io/tap/public" , | ||
"https://tap.jfrog.io/tap/public-snapshots" at "https://tap.jfrog.io/tap/public-snapshots" , | ||
"https://repo.maven.apache.org/maven2" at "https://repo.maven.apache.org/maven2" ) | ||
|
||
val `junit_junit` = "junit" % "junit" % "4.12" | ||
|
||
val `org.apache.hadoop_hadoop-yarn-api` = "org.apache.hadoop" % "hadoop-yarn-api" % "2.7.3" | ||
|
||
val `org.apache.spark_spark-core_2.11` = "org.apache.spark" % "spark-core_2.11" % "2.1.0" | ||
|
||
val `org.apache.spark_spark-sql_2.11` = "org.apache.spark" % "spark-sql_2.11" % "2.1.0" | ||
|
||
val `org.apache.spark_spark-mllib_2.11` = "org.apache.spark" % "spark-mllib_2.11" % "2.1.0" | ||
|
||
val `org.scalatest_scalatest_2.11` = "org.scalatest" % "scalatest_2.11" % "2.2.6" | ||
|
||
val `org.tensorflow_tensorflow-hadoop` = "org.tensorflow" % "tensorflow-hadoop" % "1.0-01232017-SNAPSHOT" | ||
|
||
|
||
spName := "spark-tensorflow-connector" | ||
|
||
sparkVersion := "2.1.0" | ||
|
||
sparkComponents ++= Seq("sql", "mllib") | ||
|
||
spIgnoreProvided := true | ||
|
||
version := "1.0-SNAPSHOT" | ||
|
||
name := "spark-tensorflow-connector" | ||
|
||
organization := "org.trustedanalytics" | ||
|
||
libraryDependencies in Global ++= Seq(`org.tensorflow_tensorflow-hadoop` classifier "shaded-protobuf", | ||
`org.scalatest_scalatest_2.11` % "test" , | ||
`org.apache.spark_spark-sql_2.11` % "provided" , | ||
`org.apache.spark_spark-mllib_2.11` % "test" classifier "tests", | ||
`org.apache.spark_spark-core_2.11` % "provided" , | ||
`org.apache.hadoop_hadoop-yarn-api` % "provided" , | ||
`junit_junit` % "test" ) | ||
|
||
assemblyExcludedJars in assembly := { | ||
val cp = (fullClasspath in assembly).value | ||
cp filterNot {x => List("spark-tensorflow-connector-1.0-SNAPSHOT.jar", | ||
"tensorflow-hadoop-1.0-01232017-SNAPSHOT-shaded-protobuf.jar").contains(x.data.getName)} | ||
} | ||
|
||
licenses := Seq("Apache License 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=0.13.13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resolvers += "bintray-spark-packages" at "https://dl.bintray.com/spark-packages/maven/" | ||
|
||
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3") | ||
|
||
addSbtPlugin("org.spark-packages" % "sbt-spark-package" % "0.2.5") |