Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rssanders3/ddddf12e58fa813f7fbf1b043c9d1079 to your computer and use it in GitHub Desktop.

Select an option

Save rssanders3/ddddf12e58fa813f7fbf1b043c9d1079 to your computer and use it in GitHub Desktop.
val sparkConf = new SparkConf()
.setAppName("App")
.set("spark.yarn.maxAppAttempts", "1")
.set("spark.yarn.am.attemptFailuresValidityInterval", "2h")
val ssc = new StreamingContext(sparkConf, Seconds(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment