Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    Checking the parallel, I think it nearly so many as xargs, although also its syntax is nearly so complex, if you use for complex tasks. For easy tasks, it is much simpler. Commented Aug 17, 2017 at 17:38
  • GNU Parallel is built to be switch compatible with xargs. Commented Aug 18, 2017 at 6:01
  • 1
    based on this answer we used while read remote_file; do echo "$remote_file $target_folder"; done < files.txt | xargs -n 2 -P 10 hdfs dfs -get which worked great at downloading hundreds of files in half the time. Commented Sep 10, 2020 at 14:15
  • @simbo1905 Thank you very much! It is very nice to hear. Commented Sep 10, 2020 at 14:25