Skip to content

Instantly share code, notes, and snippets.

val path : String = {
import scala.sys.process._
val x : String = "/pio/hadoop/hadoop-2.5.2/bin/hdfs dfs -ls /data/dab/prod-view" #|
"tail -1" !!
x.replace("\n", "").split(" ").takeRight(1)(0)
}