I have some shell commands that would get dynamically generated in my scala script, how can I run them inside the scala script?
Code snippet below:
var filename = xxxxxx
filename = "This File"
import sys.process._
"hdfs dfs -rm " + filename
Literally I want to run shell command: hdfs dfs -rm "This File"
Thank you very much.