Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. unix_shell> ls -la
  2. unix_shell> hadoop fs -ls /user/hadoop/temp
  3. unix_shell> s3-dist-cp --src ./abc.txt --dest s3://bucket/folder/
  4.  
  5. import scala.sys.process._
  6.  
  7. val cmd_1 = "ls -la"
  8. val cmd_2 = "hadoop fs -ls /user/hadoop/temp/"
  9. val cmd_3 = "/usr/bin/s3-dist-cp --src /tmp/sample.txt --dest s3://bucket/folder/"
  10. val cmd_4 = "s3-dist-cp --src /tmp/sample.txt --dest s3://bucket/folder/"
  11.  
  12. val exitCode_1 = (stringToProcess(cmd_1)).! // works fine and produces result
  13. val exitCode_2 = (stringToProcess(cmd_2)).! // works fine and produces result
  14. val exitCode_3 = (stringToProcess(cmd_3)).! // **it just hangs, yielding nothing**
  15. val exitCode_4 = (stringToProcess(cmd_4)).! // **it just hangs, yielding nothing**
  16.  
  17. --jars hdfs:///user/hadoop/s3-dist-cp.jar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement