Skip to content

Commit f5cad4e

Browse files
pwendellScrapCodes
authored andcommitted
Add Scala 2.11 docs
1 parent 210d7e1 commit f5cad4e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/building-spark.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -Phive -Phive-thriftserver -Dskip
112112
mvn -Pyarn -Phive -Phive-thriftserver-0.12.0 -Phadoop-2.4 -Dhadoop.version=2.4.0 -Phive -Phive-thriftserver -DskipTests clean package
113113
{% endhighlight %}
114114

115+
# Building for Scala 2.11
116+
To produce a Spark package compiled with Scala 2.11, use the `-Pscala-2.11` profile:
117+
118+
mvn -Pyarn -Phadoop-2.4 -Pscala-2.11 -DskipTests clean package
119+
120+
Scala 2.11 support in Spark is experimental and does not support a few features.
121+
Specifically, Spark's external Kafka library and JDBC component are not yet
122+
supported in Scala 2.11 builds.
123+
115124
# Spark Tests in Maven
116125

117126
Tests are run by default via the [ScalaTest Maven plugin](http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin).

project/SparkBuild.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ object SparkBuild extends PomBuild {
100100
"conjunction with environment variable.")
101101
v.split("(\\s+|,)").filterNot(_.isEmpty).map(_.trim.replaceAll("-P", "")).toSeq
102102
}
103-
if(profiles.exists(_.contains("scala-"))) {
103+
if (profiles.exists(_.contains("scala-"))) {
104104
profiles
105105
} else {
106106
println("Enabled default scala profile")

0 commit comments

Comments
 (0)