sbt assembly build.sbt content
// import sbt._
// import sbt.Keys._
// import java.io.File
// import AssemblyKeys._ name := "nd4s_2.10" + "-0.6.0" scalaVersion := "2.10.4" version := "0.1.0-SNAPSHOT" // resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/" // resolvers += "Typesafe" at "https://repo.typesafe.com/typesafe/releases/" libraryDependencies ++= Seq(
// "org.apache.spark" %% "spark-mllib_2.10" % "1.5.1" % Provided ,
// "org.apache.spark" %% "spark-core_2.10" % "1.5.1" % Provided
// ("com.github.nearbydelta" %% "deepspark" % "1.2.0" )
"org.nd4j" % "nd4j-native-platform" % "0.6.0",
"org.nd4j" % "nd4s_2.10" % "0.6.0"
// ("org.json4s" % "json4s-jackson_2.10" % "3.3.0" )
)
// libraryDependencies += "com.github.nearbydelta" %% "deepspark" % "1.2.0"
// libraryDependencies += "org.json4s" % "json4s-jackson_2.10" % "3.3.0" assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false) assemblyMergeStrategy in assembly := {
case PathList(ps @ _*) if ps.last endsWith ".properties" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".class" => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
// val libraryDependencies = "org.json4s" % "json4s-jackson_2.10" % "3.3.0" % "provided"
// libraryDependencied ++= Seq(
// ("org.json4s" % "json4s-jackson_2.12.0-M4" % "3.3.0" % "provided").
// exclude("org.scala-lang", "scala-library")
// ) // libraryDependencies ++= Seq(
// ("org.json4s" % "json4s-jackson_2.12.0-M4" % "3.3.0" % "provided").
// exclude("org.scala-lang", "scala-library")
// ) // resolvers += "Apache repo" at "https://repository.apache.org/content/repositories/releases" // assemblySettings // mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) => {
// case x => val oldStrategy = old(x) if (oldStrategy == MergeStrategy.deduplicate) MergeStrategy.discard else oldStrategy
// }
// }
project/assembly.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3")
sbt assembly build.sbt content的更多相关文章
- build.sbt的定义格式
一个简单的build.sbt文件内容如下: name := "hello" // 项目名称 organization := "xxx.xxx.xxx" // 组 ...
- SBT Assembly - Deduplicate error & Exclude error
sbt assembly java.lang.RuntimeException: deduplicate: different file contents found in the following ...
- sbt assembly a fat jar for spark-submit cluster model
在用spark-submit提交作业时,用sbt package打包好的jar程序,可以很好的运行在client模式,当在cluster模式, 一直报错:Exception in thread &qu ...
- Error while importing sbt project:--创建sbt项目导入文件出错
错误截图如下: Error while importing sbt project: List([info] Loading global plugins from C:\Users\RYJ\.sbt ...
- sbt 以及 IDEA sbt 插件安装配置教程(转)
1. 在Windows中安装sbt 下载 官网: http://www.scala-sbt.org/ github: https://github.com/sbt/sbt/releases/downl ...
- sbt打包error(sbt.librarymanagement.ResolveException: unresolved dependency: org.apache.spark#spark-streaming;2.3.1: not found)
解决方法: 修改simple.sbt文件: cd /usr/local/spark/myapp/TestStream vim simple.sbt 切记:中间相连部分两个百分号一定要写上
- Spark(3) - External Data Source
Introduction Spark provides a unified runtime for big data. HDFS, which is Hadoop's filesystem, is t ...
- 服务器上搭建spark开发环境
1.安装相应的软件 (1)安装jdk 下载地址:http://www.Oracle.com/technetwork/java/javase/downloads/index.html (2)安装scal ...
- 编译安装spark 1.5.x(Building Spark)
原文连接:http://spark.apache.org/docs/1.5.0/building-spark.html · Building with build/mvn · Building a R ...
随机推荐
- loj 1036(dp)
题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=25913 思路:易证存在一条从左上角到右下角的折线,沿着格子边缘的. ...
- LoadRunner参数化之数据生成方式
一般需要使用多条数据来完成实际事务的时候,需要参数化.而使用参数化可以方便实现很多实际事务,记得在哪里看到过,参数化是比C函数更高级的函数. 参数化的方法 先来个最常见的LR示例的登录脚本: Acti ...
- python特殊函数 __cmp__
__cmp__ 对 int.str 等内置数据类型排序时,Python的 sorted() 按照默认的比较函数 cmp 排序,但是,如果对一组 Student 类的实例排序时,就必须提供我们自己的特殊 ...
- WPF datagrid 动态增加列
DataGrid动态增加列 <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.m ...
- AndroidTips:解决Dialog全屏显示以及Dialog显示自动弹出输入法
继承实现一个dialog,并在onCreate里面做处理. @Override protected void onCreate(Bundle savedInstanceState) { s ...
- for的冒泡排序练习题
这是一个冒泡排序的方法,请汲取其中的思想.有一组数: 1,2,3,4,5,6请将这组数用降序排列.我们可以将数组里面的数两两相比,如果第二个数比第一个数大,那么将第二个数值与第一个数值交换,然后让其循 ...
- junit单元测试中私有方法测试
1.单元测试可以对系统逻辑进行每个单元模块的测试. 2.单元测试也可以作为回归测试的依据,可以避免升级完善功能时引入问题. 3.单元测试要求将代码写的更清晰,更易于测试. 4.有时单元测试需要测试私有 ...
- Python基础5- 运算符
Python的运算符和其他语言的类似,主要有:算术运算符.比较运算符.逻辑运算符.赋值运算符.成员运算符.位运算符 ----------------------------------------算术 ...
- Codeforces 629C Famil Door and Brackets(DP)
题目大概说给一个长m的括号序列s,要在其前面和后面添加括号使其变为合法的长度n的括号序列,p+s+q,问有几种方式.(合法的括号序列当且仅当左括号总数等于右括号总数且任何一个前缀左括号数大于等于右括号 ...
- Codeforces 607B Zuma(区间DP)
题目大概说,有n个颜色的宝石,可以消除是回文串的连续颜色序列,问最少要几下才能全部消除. 自然想到dp[i][j]表示序列i...j全部消除的最少操作数 有几种消除的方式都能通过枚举k(i<=k ...