title: putting a remote file into hadoop without copying it to local disk
body: <p>I am writing a shell script to put data into hadoop as soon as they are generated. I can ssh to my master node, copy the files to a folder over there and then put them into hadoop. I am looking for a shell command to get rid of copying the file to the local disk on master node. to better explain what I need, here below you can find what I have so far:</p>
  
  <p>1) copy the file to the master node's local disk:</p>
  
  <pre><code>scp test.txt username@masternode:/folderName/
  </code></pre>
  
  <p>I have already setup SSH connection using keys. So no password is needed to do this.</p>
  
  <p>2) I can use ssh to remotely execute the hadoop put command:</p>
  
  <pre><code>ssh username@masternode "hadoop dfs -put /folderName/test.txt hadoopFolderName/"
  </code></pre>
  
  <p>what I am looking for is how to pipe/combine these two steps into one and skip the local copy of the file on masterNode's local disk.</p>
  
  <p>thanks</p>
  
  <p>In other words, I want to pipe several command in a way that I can</p>