Created
July 7, 2015 00:39
-
-
Save marcovivero/2dc60ede6c25842539f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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