title: What is the function of hadoop -jar command?
body: <p>I have created a java program that queries hadoop FileSystem and copies some files to local machine as such :</p>
  
  <pre><code>fs.copyToLocalFile(true, fiInputFile, localOutputPath, true);
  </code></pre>
  
  <p>This program does not have any mapreduce jobs.</p>
  
  <p>I intend to execute it with the hadoop -jar myJar.jar command on the name node. Will this jar be executed also on the slave nodes?</p>