File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ object SharkBuild extends Build {
40
40
DEFAULT_HADOOP_VERSION
41
41
42
42
43
+ // Whether to build Shark with Yarn support
44
+ val YARN_ENABLED = scala.util.Properties .envOrNone(" SHARK_YARN" ) match {
45
+ case None => false
46
+ case Some (v) => v.toBoolean
47
+ }
48
+
43
49
// Whether to build Shark with Tachyon jar.
44
50
val TACHYON_ENABLED = false
45
51
@@ -123,6 +129,7 @@ object SharkBuild extends Build {
123
129
" junit" % " junit" % " 4.10" % " test" ,
124
130
" net.java.dev.jets3t" % " jets3t" % " 0.7.1" ,
125
131
" com.novocode" % " junit-interface" % " 0.8" % " test" ) ++
132
+ (if (YARN_ENABLED ) Some (" org.apache.spark" %% " spark-yarn" % SPARK_VERSION ) else None ).toSeq ++
126
133
(if (TACHYON_ENABLED ) Some (" org.tachyonproject" % " tachyon" % " 0.3.0-SNAPSHOT" excludeAll(excludeKyro, excludeHadoop) ) else None ).toSeq
127
134
)
128
135
@@ -135,6 +142,7 @@ object SharkBuild extends Build {
135
142
mergeStrategy in assembly := {
136
143
case m if m.toLowerCase.endsWith(" manifest.mf" ) => MergeStrategy .discard
137
144
case m if m.toLowerCase.matches(" meta-inf.*\\ .sf$" ) => MergeStrategy .discard
145
+ case " META-INF/services/org.apache.hadoop.fs.FileSystem" => MergeStrategy .concat
138
146
case " reference.conf" => MergeStrategy .concat
139
147
case _ => MergeStrategy .first
140
148
}
You can’t perform that action at this time.
0 commit comments