File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,15 @@ mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -Phive -Phive-thriftserver -Dskip
112112mvn -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
117126Tests are run by default via the [ ScalaTest Maven plugin] ( http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin ) .
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments