Skip to content
Snippets Groups Projects
Commit c86c9760 authored by Andrew Or's avatar Andrew Or
Browse files

[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 <andrewor14@gmail.com>

Closes #2776 from andrewor14/fix-yarn-alpha and squashes the following commits:

ec94752 [Andrew Or] Fix compilation error for 2.0.*-alpha
parent e5be4de7
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ private[spark] class Client(
* ApplicationReport#getClientToken is renamed `getClientToAMToken` in the stable API.
*/
override def getClientToken(report: ApplicationReport): String =
Option(report.getClientToken).getOrElse("")
Option(report.getClientToken).map(_.toString).getOrElse("")
}
object Client {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment