Skip to content

Commit

Permalink
update use of octal
Browse files Browse the repository at this point in the history
  • Loading branch information
tgravescs committed Apr 25, 2014
1 parent 3ca9b79 commit d8b6620
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ private[spark] class EventLoggingListener(
private val logBaseDir = conf.get("spark.eventLog.dir", "/tmp/spark-events").stripSuffix("/")
private val name = appName.replaceAll("[ :/]", "-").toLowerCase + "-" + System.currentTimeMillis
val logDir = logBaseDir + "/" + name
val LOG_FILE_PERMISSIONS: FsPermission = FsPermission.createImmutable(0770: Short)
val LOG_FILE_PERMISSIONS: FsPermission =
FsPermission.createImmutable(Integer.parseInt("770", 8).toShort: Short)

private val logger =
new FileLogger(logDir, conf, hadoopConfiguration, outputBufferSize, shouldCompress,
Expand Down

0 comments on commit d8b6620

Please sign in to comment.