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:17:38 -0700 |
commit | df6d81425bf3b8830988288069f6863de873aee2 (patch) | |
tree | 711ffe63de63304465cf0313f04d418b9c6f993d | |
parent | 8aaef5c75624b48806a05943454f7b72f3ca1bdc (diff) | |
download | spark-df6d81425bf3b8830988288069f6863de873aee2.tar.gz spark-df6d81425bf3b8830988288069f6863de873aee2.tar.bz2 spark-df6d81425bf3b8830988288069f6863de873aee2.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
-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() = { |