Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unix_shell> ls -la
- unix_shell> hadoop fs -ls /user/hadoop/temp
- unix_shell> s3-dist-cp --src ./abc.txt --dest s3://bucket/folder/
- import scala.sys.process._
- val cmd_1 = "ls -la"
- val cmd_2 = "hadoop fs -ls /user/hadoop/temp/"
- val cmd_3 = "/usr/bin/s3-dist-cp --src /tmp/sample.txt --dest s3://bucket/folder/"
- val cmd_4 = "s3-dist-cp --src /tmp/sample.txt --dest s3://bucket/folder/"
- val exitCode_1 = (stringToProcess(cmd_1)).! // works fine and produces result
- val exitCode_2 = (stringToProcess(cmd_2)).! // works fine and produces result
- val exitCode_3 = (stringToProcess(cmd_3)).! // **it just hangs, yielding nothing**
- val exitCode_4 = (stringToProcess(cmd_4)).! // **it just hangs, yielding nothing**
- --jars hdfs:///user/hadoop/s3-dist-cp.jar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement