Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6166#discussion_r30455916
  
    --- Diff: 
yarn/src/main/scala/org/apache/spark/scheduler/cluster/YarnClusterSchedulerBackend.scala
 ---
    @@ -53,4 +62,61 @@ private[spark] class YarnClusterSchedulerBackend(
           logError("Application attempt ID is not set.")
           super.applicationAttemptId
         }
    +
    +  override def getDriverLogUrls: Option[Map[String, String]] = {
    +    var yarnClientOpt: Option[YarnClient] = None
    +    var driverLogs: Option[Map[String, String]] = None
    +    val appId: String = applicationId()
    +    if (appId == null) {
    --- End diff --
    
    This will never be `null` (see `SchedulerBackend.scala`). If you want to do 
this check you'd have to explicitly check the value in `sc.getConf`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to