[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
This commit is contained in:
parent
e5be4de7bc
commit
c86c976037
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue