Skip to content

Instantly share code, notes, and snippets.

@marcovivero
Created July 7, 2015 00:40
Show Gist options
  • Save marcovivero/1a808837354adf6caefe to your computer and use it in GitHub Desktop.
Save marcovivero/1a808837354adf6caefe to your computer and use it in GitHub Desktop.
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)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment