Skip to content

Commit 0102f3d

Browse files
committed
Replace octal literals, removed in Scala 2.11, with hex literals
1 parent dd681f5 commit 0102f3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ trait ClientBase extends Logging {
5959
private val distCacheMgr = new ClientDistributedCacheManager()
6060

6161
// Staging directory is private! -> rwx--------
62-
val STAGING_DIR_PERMISSION: FsPermission = FsPermission.createImmutable(0700: Short)
62+
val STAGING_DIR_PERMISSION: FsPermission = FsPermission.createImmutable(0x1C0: Short) // 0700
6363
// App files are world-wide readable and owner writable -> rw-r--r--
64-
val APP_FILE_PERMISSION: FsPermission = FsPermission.createImmutable(0644: Short)
64+
val APP_FILE_PERMISSION: FsPermission = FsPermission.createImmutable(0x1A4: Short) // 0644
6565

6666
// TODO(harvey): This could just go in ClientArguments.
6767
def validateArgs() = {

0 commit comments

Comments
 (0)