title: Can't pipe Output of Hadoop Command
body: <p>I want to run the following command:</p>
  <pre><code> hadoop fs -copyToLocal FILE_IN_HDFS | ssh REMOTE_HOST &quot;dd of=TARGET_FILE&quot;
  </code></pre>
  <p>However, when I try, all it does, is create an empty file on the target host and copy it to my local home drive, instead of copying it to the remote location.</p>
  <blockquote>
  <p>$ hadoop fs -copyToLocal FILE_IN_HDFS | ssh REMOTE_HOST &quot;dd of=test.jar&quot;</p>
  <p>0+0 Datensätze ein</p>
  <p>0+0 Datensätze aus</p>
  <p>0 Bytes (0 B) kopiert, 1,10011 s, 0,0 kB/s</p>
  </blockquote>
  <p>I cannot think of any reason, why this command would behave in this way.
  Is this some Java-ism that I'm missing here, or am I actually doing it wrong?</p>