Skip to content

Commit

Permalink
Minor. Fixed bug in SparkApp that merges user YARN tags and Livy YARN…
Browse files Browse the repository at this point in the history
… tags incorrectly.

Closes apache#193
  • Loading branch information
zjffdu authored and alex-the-man committed Sep 20, 2016
1 parent 4e85c49 commit 91058d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object SparkApp {
livyConf: LivyConf,
sparkConf: Map[String, String]): Map[String, String] = {
if (livyConf.isRunningOnYarn()) {
val userYarnTags = sparkConf.get(uniqueAppTag).map("," + _).getOrElse("")
val userYarnTags = sparkConf.get(SPARK_YARN_TAG_KEY).map("," + _).getOrElse("")
val mergedYarnTags = uniqueAppTag + userYarnTags
sparkConf ++ Map(
SPARK_YARN_TAG_KEY -> mergedYarnTags,
Expand Down

0 comments on commit 91058d2

Please sign in to comment.