Skip to content

Commit c86c976

Browse files
committed
[HOTFIX] Fix compilation error for Yarn 2.0.*-alpha
This was reported in https://issues.apache.org/jira/browse/SPARK-3445. There are API differences between the 0.23.* and the 2.0.*-alpha branches that are not accounted for when this code was introduced. Author: Andrew Or <[email protected]> Closes apache#2776 from andrewor14/fix-yarn-alpha and squashes the following commits: ec94752 [Andrew Or] Fix compilation error for 2.0.*-alpha
1 parent e5be4de commit c86c976

File tree

1 file changed

+1
-1
lines changed
  • yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn

1 file changed

+1
-1
lines changed

yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/Client.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private[spark] class Client(
122122
* ApplicationReport#getClientToken is renamed `getClientToAMToken` in the stable API.
123123
*/
124124
override def getClientToken(report: ApplicationReport): String =
125-
Option(report.getClientToken).getOrElse("")
125+
Option(report.getClientToken).map(_.toString).getOrElse("")
126126
}
127127

128128
object Client {

0 commit comments

Comments
 (0)