diff options
author | Sean Owen <sowen@cloudera.com> | 2014-04-25 14:17:38 -0700 |
---|---|---|
committer | Aaron Davidson <aaron@databricks.com> | 2014-04-25 14:18:58 -0700 |
commit | 784b2a613cb6b1ccffb6e1f9ca71bba65964f8cd (patch) | |
tree | a6a83743d24853f7852e76135bca1483b8c88dcd /yarn | |
parent | a0912a802c1c620e4e6de31bd8228e9aebc4c57f (diff) | |
download | spark-784b2a613cb6b1ccffb6e1f9ca71bba65964f8cd.tar.gz spark-784b2a613cb6b1ccffb6e1f9ca71bba65964f8cd.tar.bz2 spark-784b2a613cb6b1ccffb6e1f9ca71bba65964f8cd.zip |
SPARK-1607. HOTFIX: Fix syntax adapting Int result to Short
Sorry folks. This should make the change for SPARK-1607 compile again. Verified this time with the yarn build enabled.
Author: Sean Owen <sowen@cloudera.com>
Closes #556 from srowen/SPARK-1607.2 and squashes the following commits:
e3fe7a3 [Sean Owen] Fix syntax adapting Int result to Short
(cherry picked from commit df6d81425bf3b8830988288069f6863de873aee2)
Signed-off-by: Aaron Davidson <aaron@databricks.com>
Diffstat (limited to 'yarn')
-rw-r--r-- | yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala b/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala index eb95d78431..f2be8217a2 100644 --- a/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala +++ b/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala @@ -60,10 +60,10 @@ trait ClientBase extends Logging { // Staging directory is private! -> rwx-------- val STAGING_DIR_PERMISSION: FsPermission = - FsPermission.createImmutable(Integer.parseInt("700", 8): Short) + FsPermission.createImmutable(Integer.parseInt("700", 8).toShort) // App files are world-wide readable and owner writable -> rw-r--r-- val APP_FILE_PERMISSION: FsPermission = - FsPermission.createImmutable(Integer.parseInt("644", 8): Short) + FsPermission.createImmutable(Integer.parseInt("644", 8).toShort) // TODO(harvey): This could just go in ClientArguments. def validateArgs() = { |