Created
July 7, 2015 00:40
-
-
Save marcovivero/1a808837354adf6caefe 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