We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a7402e commit 3d65b35Copy full SHA for 3d65b35
core/src/main/scala/org/apache/spark/executor/ProcfsMetricsGetter.scala
@@ -75,8 +75,7 @@ private[spark] class ProcfsMetricsGetter(procfsDir: String = "/proc/") extends L
75
// https://docs.oracle.com/javase/9/docs/api/java/lang/ProcessHandle.html
76
val cmd = Array("bash", "-c", "echo $PPID")
77
val out = Utils.executeAndGetOutput(cmd)
78
- val pid = Integer.parseInt(out.split("\n")(0))
79
- return pid;
+ Integer.parseInt(out.split("\n")(0))
80
}
81
catch {
82
case e: SparkException =>
0 commit comments